diff options
author | Jaime van Kessel <nallath@gmail.com> | 2018-11-13 18:59:02 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2018-11-13 18:59:02 +0300 |
commit | 12c296241436acf72fd171f00e914be74ffd3ba7 (patch) | |
tree | 4d3e621a0ce11da1f35215e1ee57ca5173c50f3b /plugins/PrepareStage/PrepareMenu.qml | |
parent | a9fdd455ebf39dbc66f592324ebcca08620ed14e (diff) |
Update the look & feel of openButton to the new design
CURA-5785
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r-- | plugins/PrepareStage/PrepareMenu.qml | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml index c7164eb490..3c7235a26f 100644 --- a/plugins/PrepareStage/PrepareMenu.qml +++ b/plugins/PrepareStage/PrepareMenu.qml @@ -23,19 +23,30 @@ Item Item { anchors.horizontalCenter: parent.horizontalCenter - width: openFileButton.width + itemRowBackground.width + width: openFileButtonBackground.width + itemRowBackground.width height: parent.height - Button + Rectangle { - id: openFileButton - text: catalog.i18nc("@action:button", "Open File") - iconSource: UM.Theme.getIcon("load") - style: UM.Theme.styles.tool_button - tooltip: "" - action: Cura.Actions.open + 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 @@ -46,7 +57,7 @@ Item width: itemRow.width + UM.Theme.getSize("default_margin").width height: parent.height - anchors.left: openFileButton.right + anchors.left: openFileButtonBackground.right anchors.leftMargin: UM.Theme.getSize("default_margin").width RowLayout @@ -57,6 +68,7 @@ Item width: 0.9 * prepareMenu.width height: parent.height + spacing: 0 Cura.MachineSelector { |