mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08: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
@ -26,27 +26,6 @@ Item
|
|||||||
width: openFileButtonBackground.width + itemRowBackground.width
|
width: openFileButtonBackground.width + itemRowBackground.width
|
||||||
height: parent.height
|
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
|
Rectangle
|
||||||
{
|
{
|
||||||
id: itemRowBackground
|
id: itemRowBackground
|
||||||
@ -73,7 +52,7 @@ Item
|
|||||||
Cura.MachineSelector
|
Cura.MachineSelector
|
||||||
{
|
{
|
||||||
id: machineSelection
|
id: machineSelection
|
||||||
z: openFileButton.z - 1
|
z: openFileButtonBackground.z - 1
|
||||||
|
|
||||||
Layout.minimumWidth: 240
|
Layout.minimumWidth: 240
|
||||||
Layout.maximumWidth: 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…
x
Reference in New Issue
Block a user