mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Use Cura.Menu instead of UM.Menu
Same as the previous commit. Use the specialised variant provided by Cura instead of the generic one of UM CURA-8683
This commit is contained in:
parent
3130ea0f74
commit
babf3043f8
6 changed files with 8 additions and 10 deletions
|
@ -2,20 +2,18 @@
|
|||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.3
|
||||
|
||||
import UM 1.1 as UM
|
||||
import UM 1.5 as UM
|
||||
|
||||
//
|
||||
// Menu with Cura styling.
|
||||
//
|
||||
Menu
|
||||
UM.Menu
|
||||
{
|
||||
id: menu
|
||||
padding: 0
|
||||
|
||||
implicitWidth: UM.Theme.getSize("setting_control").width
|
||||
width: Math.max.apply(Math, Object.values(contentChildren).map(function(c) { return c.width }))
|
||||
|
||||
background: Rectangle {
|
||||
color: UM.Theme.getColor("setting_control")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue