1
0
Fork 0
VideoPlayer/src/qml/Items/CustomMenuItem.qml

28 lines
636 B
QML
Raw Normal View History

import QtQuick 2.0
2018-12-22 14:13:53 +00:00
import QtQuick.Controls 2.3
import Qt.labs.settings 1.0
MenuItem {
2018-10-24 19:49:05 +01:00
id: menuItem
implicitHeight: 20
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 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"
}
}