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