mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Move OpenFile button to be instantiated left so it's tooltip doesn't get messed up
CURA-5785
This commit is contained in:
parent
878b743232
commit
fcfe95c7d0
1 changed files with 21 additions and 22 deletions
|
@ -26,27 +26,6 @@ Item
|
|||
width: openFileButtonBackground.width + itemRowBackground.width
|
||||
height: parent.height
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: openFileButtonBackground
|
||||
height: UM.Theme.getSize("stage_menu").height
|
||||
width: UM.Theme.getSize("stage_menu").height
|
||||
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
color: UM.Theme.getColor("toolbar_background")
|
||||
Button
|
||||
{
|
||||
id: openFileButton
|
||||
text: catalog.i18nc("@action:button", "Open File")
|
||||
iconSource: UM.Theme.getIcon("load")
|
||||
style: UM.Theme.styles.toolbar_button
|
||||
tooltip: ""
|
||||
action: Cura.Actions.open
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: itemRowBackground
|
||||
|
@ -73,7 +52,7 @@ Item
|
|||
Cura.MachineSelector
|
||||
{
|
||||
id: machineSelection
|
||||
z: openFileButton.z - 1
|
||||
z: openFileButtonBackground.z - 1
|
||||
|
||||
Layout.minimumWidth: 240
|
||||
Layout.maximumWidth: 240
|
||||
|
@ -118,5 +97,25 @@ Item
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: openFileButtonBackground
|
||||
height: UM.Theme.getSize("stage_menu").height
|
||||
width: UM.Theme.getSize("stage_menu").height
|
||||
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
color: UM.Theme.getColor("toolbar_background")
|
||||
Button
|
||||
{
|
||||
id: openFileButton
|
||||
text: catalog.i18nc("@action:button", "Open File")
|
||||
iconSource: UM.Theme.getIcon("load")
|
||||
style: UM.Theme.styles.toolbar_button
|
||||
tooltip: ""
|
||||
action: Cura.Actions.open
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue