Add background to application menu

CURA-8683
This commit is contained in:
Jaime van Kessel 2022-01-11 11:16:40 +01:00
parent 6cde2d028b
commit 29c9322fc8

View file

@ -14,7 +14,7 @@ import "../Dialogs"
Item Item
{ {
id: menu id: menu
width: applicationMenu.width width: parent.width
height: applicationMenu.height height: applicationMenu.height
Component Component
@ -46,12 +46,15 @@ Item
MenuBar MenuBar
{ {
id: applicationMenu id: applicationMenu
width: parent.width
delegate: menuBarComponent delegate: menuBarComponent
FileMenu {} FileMenu {}
EditMenu {} EditMenu {}
ViewMenu {} ViewMenu {}
background: Rectangle {}
SettingsMenu SettingsMenu
{ {
//On MacOS, don't translate the "Settings" word. //On MacOS, don't translate the "Settings" word.
@ -78,7 +81,7 @@ Item
// Definition of other components that are linked to the menus // Definition of other components that are linked to the menus
// ############################################################################################### // ###############################################################################################
/*WorkspaceSummaryDialog WorkspaceSummaryDialog
{ {
id: saveWorkspaceDialog id: saveWorkspaceDialog
property var args property var args
@ -101,11 +104,6 @@ Item
} }
} }
UM.ExtensionModel
{
id: curaExtensions
}
// ############################################################################################### // ###############################################################################################
// Definition of all the connections // Definition of all the connections
// ############################################################################################### // ###############################################################################################
@ -141,5 +139,5 @@ Item
curaExtensions.callExtensionMethod("Toolbox", "launch") curaExtensions.callExtensionMethod("Toolbox", "launch")
curaExtensions.callExtensionMethod("Toolbox", "setViewCategoryToMaterials") curaExtensions.callExtensionMethod("Toolbox", "setViewCategoryToMaterials")
} }
}*/ }
} }