moment/src/gui/Base/HMenuItem.qml

34 lines
786 B
QML
Raw Normal View History

2019-12-19 07:46:16 -04:00
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import QtQuick.Controls 2.12
MenuItem {
id: menuItem
spacing: theme.spacing
2019-08-21 16:23:22 -04:00
leftPadding: spacing
rightPadding: leftPadding
topPadding: spacing / 1.75
bottomPadding: topPadding
height: visible ? implicitHeight : 0
2020-03-15 17:52:31 -04:00
icon.color: theme.icons.colorize
background: HButtonBackground {
button: menuItem
buttonTheme: theme.controls.menuItem
2020-06-23 09:09:30 -04:00
useFocusLine: false
}
contentItem: HButtonContent {
id: contentItem
button: menuItem
buttonTheme: theme.controls.menuItem
2019-08-21 16:23:22 -04:00
label.horizontalAlignment: Label.AlignLeft
}
readonly property alias iconItem: contentItem.icon
readonly property alias label: contentItem.label
}