mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Style menu bar according to theme
CURA-8688
This commit is contained in:
parent
82173c5766
commit
a3a5b613ae
1 changed files with 21 additions and 1 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue