Change default sizes of menu

CURA-8928
This commit is contained in:
Jaime van Kessel 2022-02-21 11:58:21 +01:00
parent d88f7d4267
commit beae4f28f7
3 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,7 @@ UM.Menu
id: menu id: menu
padding: 0 padding: 0
implicitWidth: UM.Theme.getSize("setting_control").width implicitWidth: UM.Theme.getSize("menu").width
delegate: Cura.MenuItem {} delegate: Cura.MenuItem {}
background: Rectangle background: Rectangle

View File

@ -13,7 +13,8 @@ UM.MenuItem
{ {
id: menuItem id: menuItem
implicitHeight: UM.Theme.getSize("setting_control").height + UM.Theme.getSize("narrow_margin").height implicitHeight: UM.Theme.getSize("menu").height + UM.Theme.getSize("narrow_margin").height
implicitWidth: UM.Theme.getSize("menu").width
opacity: enabled ? 1.0 : 0.5 opacity: enabled ? 1.0 : 0.5
arrow: UM.RecolorImage arrow: UM.RecolorImage

View File

@ -188,6 +188,8 @@
"secondary": [240, 240, 240, 255], "secondary": [240, 240, 240, 255],
"secondary_shadow": [216, 216, 216, 255], "secondary_shadow": [216, 216, 216, 255],
"text_lighter": [108, 108, 108, 255],
"icon": [8, 7, 63, 255], "icon": [8, 7, 63, 255],
"primary_button": [25, 110, 240, 255], "primary_button": [25, 110, 240, 255],
@ -639,6 +641,7 @@
"message_action_button": [0, 2.5], "message_action_button": [0, 2.5],
"message_image": [15.0, 10.0], "message_image": [15.0, 10.0],
"message_type_icon": [2, 2], "message_type_icon": [2, 2],
"menu": [18, 2],
"infill_button_margin": [0.5, 0.5], "infill_button_margin": [0.5, 0.5],