1
0
Fork 0
VideoPlayer/src/qml/Items/CustomMenuItem.qml
2020-04-24 17:06:14 +01:00

28 lines
636 B
QML

import QtQuick 2.0
import QtQuick.Controls 2.3
import Qt.labs.settings 1.0
MenuItem {
id: menuItem
implicitHeight: 20
contentItem: Text {
text: menuItem.text
opacity: 1
color: menuItem.highlighted ? "#5a50da" : "white"
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
font {
family: appearance.fontName
bold: menuItem.highlighted
}
}
background: Rectangle {
anchors.fill: parent
opacity: 1
color: menuItem.highlighted ? "#c0c0f0" : "transparent"
}
}