Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2018-11-13 18:31:48 +0300
committerJaime van Kessel <nallath@gmail.com>2018-11-13 18:32:24 +0300
commitb83175a380e170a71e8b6cdfae0235a4777e9c44 (patch)
tree6b44dec7a2c1679b8dc2b56e5a7c666a6e7c5467 /plugins/PrepareStage/PrepareMenu.qml
parent20e2f317de0507ec889baa5dc30cf48277165bdb (diff)
Add rounded corners to stage menus
CURA-5785
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r--plugins/PrepareStage/PrepareMenu.qml72
1 files changed, 43 insertions, 29 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml
index 9fd8747e28..7006545204 100644
--- a/plugins/PrepareStage/PrepareMenu.qml
+++ b/plugins/PrepareStage/PrepareMenu.qml
@@ -23,7 +23,7 @@ Item
Item
{
anchors.horizontalCenter: parent.horizontalCenter
- width: openFileButton.width + UM.Theme.getSize("default_margin").width + itemRow.width
+ width: openFileButton.width + itemRowBackground.width
height: parent.height
Button
@@ -36,45 +36,59 @@ Item
action: Cura.Actions.open
}
- RowLayout
+ Rectangle
{
- id: itemRow
+ id: itemRowBackground
+ radius: UM.Theme.getSize("default_radius").width
+ border.width: UM.Theme.getSize("default_lining").width
+ border.color: UM.Theme.getColor("lining")
+ color: UM.Theme.getColor("toolbar_background")
+
+ width: itemRow.width + UM.Theme.getSize("default_margin").width
+ height: parent.height
anchors.left: openFileButton.right
anchors.leftMargin: UM.Theme.getSize("default_margin").width
- width: 0.9 * prepareMenu.width
- height: parent.height
-
- Cura.MachineSelector
+ RowLayout
{
- id: machineSelection
- z: openFileButton.z - 1
+ id: itemRow
- Layout.minimumWidth: 240
- Layout.maximumWidth: 240
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
+ anchors.centerIn: parent
- Cura.QuickConfigurationSelector
- {
- Layout.fillHeight: true
- Layout.fillWidth: true
- Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelector.width
- }
+ width: 0.9 * prepareMenu.width
+ height: parent.height - 2 * UM.Theme.getSize("default_lining").width
- Cura.PrintSetupSelector
- {
- id: printSetupSelector
+ Cura.MachineSelector
+ {
+ id: machineSelection
+ z: openFileButton.z - 1
+
+ Layout.minimumWidth: 240
+ Layout.maximumWidth: 240
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ }
+
+ Cura.QuickConfigurationSelector
+ {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelector.width
+ }
+
+ Cura.PrintSetupSelector
+ {
+ id: printSetupSelector
- onShowTooltip: prepareMenu.showTooltip(item, location, text)
- onHideTooltip: prepareMenu.hideTooltip()
+ onShowTooltip: prepareMenu.showTooltip(item, location, text)
+ onHideTooltip: prepareMenu.hideTooltip()
- Layout.minimumWidth: 460
- Layout.maximumWidth: 460
- Layout.fillWidth: true
- Layout.fillHeight: true
+ Layout.minimumWidth: 460
+ Layout.maximumWidth: 460
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ }
}
}
}