mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:15:53 +08:00
Style menu bar according to theme
CURA-8688
This commit is contained in:
parent
82173c5766
commit
a3a5b613ae
@ -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…
x
Reference in New Issue
Block a user