Consistently use Cura.Menu and Cura.MenuItem

Some of these were using the built-in Menu and MenuItem, causing the menus to appear in different sizes.

Contributes to issue CURA-8688.
This commit is contained in:
Ghostkeeper 2022-02-15 16:19:39 +01:00
parent 52ff67c1eb
commit e552383863
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
6 changed files with 9 additions and 14 deletions

View file

@ -20,13 +20,12 @@ Item
{
id: applicationMenu
width: parent.width
FileMenu {}
height: UM.Theme.getSize("context_menu").height
background: Item {}
FileMenu {}
EditMenu {}
ViewMenu {}
background: Rectangle {}
SettingsMenu
{
//On MacOS, don't translate the "Settings" word.
@ -38,13 +37,9 @@ Item
//- https://doc.qt.io/qt-5/qmenubar.html#qmenubar-as-a-global-menu-bar
title: (Qt.platform.os == "osx") ? "&Settings" : catalog.i18nc("@title:menu menubar:toplevel", "&Settings")
}
ExtensionMenu { id: extensionMenu }
PreferencesMenu {}
HelpMenu {}
}