2018-12-22 14:07:44 +00:00
|
|
|
import QtQuick 2.0
|
2018-12-22 14:13:53 +00:00
|
|
|
import QtQuick.Controls 2.3
|
2018-11-01 18:51:55 +00:00
|
|
|
import Qt.labs.settings 1.0
|
2018-10-24 14:24:32 +01:00
|
|
|
|
|
|
|
MenuItem {
|
2018-10-24 19:49:05 +01:00
|
|
|
id: menuItem
|
|
|
|
implicitHeight: 20
|
2018-10-24 14:24:32 +01:00
|
|
|
|
2018-10-24 19:49:05 +01:00
|
|
|
contentItem: Text {
|
|
|
|
text: menuItem.text
|
|
|
|
opacity: 1
|
|
|
|
color: menuItem.highlighted ? "#5a50da" : "white"
|
|
|
|
horizontalAlignment: Text.AlignLeft
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
elide: Text.ElideRight
|
2020-04-24 17:06:14 +01:00
|
|
|
font {
|
|
|
|
family: appearance.fontName
|
|
|
|
bold: menuItem.highlighted
|
|
|
|
}
|
2018-10-24 19:49:05 +01:00
|
|
|
}
|
2018-10-24 14:24:32 +01:00
|
|
|
|
2018-10-24 19:49:05 +01:00
|
|
|
background: Rectangle {
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors.fill: parent
|
2018-10-24 19:49:05 +01:00
|
|
|
opacity: 1
|
|
|
|
color: menuItem.highlighted ? "#c0c0f0" : "transparent"
|
|
|
|
}
|
|
|
|
}
|