Style menu bar according to theme

CURA-8688
This commit is contained in:
casper 2022-03-01 12:09:27 +01:00
parent 82173c5766
commit a3a5b613ae

View file

@ -21,7 +21,27 @@ Item
id: applicationMenu
width: parent.width
height: UM.Theme.getSize("context_menu").height
background: Rectangle {}
background: Rectangle {
color: UM.Theme.getColor("background_1")
}
delegate: MenuBarItem
{
id: menuBarItem
contentItem: UM.Label
{
text: menuBarItem.text
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
}
background: Rectangle
{
color: menuBarItem.highlighted ? UM.Theme.getColor("background_2") : "transparent"
}
}
FileMenu {}
EditMenu {}