mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 16:18:58 +08:00
Update the look & feel of openButton to the new design
CURA-5785
This commit is contained in:
parent
a9fdd455eb
commit
12c2962414
@ -23,19 +23,30 @@ Item
|
|||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: openFileButton.width + itemRowBackground.width
|
width: openFileButtonBackground.width + itemRowBackground.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Button
|
Rectangle
|
||||||
{
|
{
|
||||||
id: openFileButton
|
id: openFileButtonBackground
|
||||||
text: catalog.i18nc("@action:button", "Open File")
|
height: UM.Theme.getSize("stage_menu").height
|
||||||
iconSource: UM.Theme.getIcon("load")
|
width: UM.Theme.getSize("stage_menu").height
|
||||||
style: UM.Theme.styles.tool_button
|
|
||||||
tooltip: ""
|
radius: UM.Theme.getSize("default_radius").width
|
||||||
action: Cura.Actions.open
|
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
|
||||||
@ -46,7 +57,7 @@ Item
|
|||||||
width: itemRow.width + UM.Theme.getSize("default_margin").width
|
width: itemRow.width + UM.Theme.getSize("default_margin").width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
anchors.left: openFileButton.right
|
anchors.left: openFileButtonBackground.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
RowLayout
|
RowLayout
|
||||||
@ -57,6 +68,7 @@ Item
|
|||||||
|
|
||||||
width: 0.9 * prepareMenu.width
|
width: 0.9 * prepareMenu.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
Cura.MachineSelector
|
Cura.MachineSelector
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user