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:
authorGhostkeeper <rubend@tutanota.com>2018-11-26 15:43:20 +0300
committerGhostkeeper <rubend@tutanota.com>2018-11-26 15:43:20 +0300
commit826044da7e89b3e2b857db0ab5196862876b58bc (patch)
tree315f8e8a94c386606d8f4797ce8d4c9445f00652 /plugins/PrepareStage/PrepareMenu.qml
parent4c26262054877c502e9244d06df9c2dce138c365 (diff)
parent81c776213a07fd8849f642faad11e8e8801c5f13 (diff)
Merge branch 'ui_rework_4_0' into CURA-5876-Configuration_dropdown
Conflicts: plugins/PrepareStage/PrepareMenu.qml: Some indentation change caused it to misalign the diffs, thinking it couldn't merge two of the same lines which actually weren't the same lines. resources/qml/Menus/ConfigurationMenu/QuickConfigurationSelector.qml: This file was deleted in my branch. I'm holding for the new version.
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r--plugins/PrepareStage/PrepareMenu.qml100
1 files changed, 44 insertions, 56 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml
index 6b241e1da2..0f059506dc 100644
--- a/plugins/PrepareStage/PrepareMenu.qml
+++ b/plugins/PrepareStage/PrepareMenu.qml
@@ -24,74 +24,62 @@ Item
Item
{
anchors.horizontalCenter: parent.horizontalCenter
- width: openFileButtonBackground.width + itemRowBackground.width
+ width: openFileButtonBackground.width + itemRow.width + UM.Theme.getSize("default_margin").width
height: parent.height
- Rectangle
+ RowLayout
{
- id: itemRowBackground
- radius: UM.Theme.getSize("default_radius").width
+ id: itemRow
- color: UM.Theme.getColor("toolbar_background")
+ anchors.left: openFileButtonBackground.right
+ anchors.leftMargin: UM.Theme.getSize("default_margin").width
- width: itemRow.width + UM.Theme.getSize("default_margin").width
+ width: Math.round(0.9 * prepareMenu.width)
height: parent.height
+ spacing: 0
- anchors.left: openFileButtonBackground.right
- anchors.leftMargin: UM.Theme.getSize("default_margin").width
+ Cura.MachineSelector
+ {
+ id: machineSelection
+ z: openFileButtonBackground.z - 1 //Ensure that the tooltip of the open file button stays above the item row.
+ headerCornerSide: Cura.RoundedRectangle.Direction.Left
+ Layout.minimumWidth: UM.Theme.getSize("machine_selector_widget").width
+ Layout.maximumWidth: UM.Theme.getSize("machine_selector_widget").width
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ }
- RowLayout
+ // Separator line
+ Rectangle
{
- id: itemRow
+ height: parent.height
+ width: UM.Theme.getSize("default_lining").width
+ color: UM.Theme.getColor("lining")
+ }
- anchors.centerIn: parent
+ Cura.ConfigurationMenu
+ {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelectorItem.width - 2 * UM.Theme.getSize("default_lining").width
+ }
- width: 0.9 * prepareMenu.width
+ // Separator line
+ Rectangle
+ {
height: parent.height
- spacing: 0
-
- Cura.MachineSelector
- {
- id: machineSelection
- z: openFileButtonBackground.z - 1 //Ensure that the tooltip of the open file button stays above the item row.
- Layout.minimumWidth: UM.Theme.getSize("machine_selector_widget").width
- Layout.maximumWidth: UM.Theme.getSize("machine_selector_widget").width
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
-
- // Separator line
- Rectangle
- {
- height: parent.height
- width: UM.Theme.getSize("default_lining").width
- color: UM.Theme.getColor("lining")
- }
-
- Cura.ConfigurationMenu
- {
- Layout.fillHeight: true
- Layout.fillWidth: true
- Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelectorItem.width - 2 * UM.Theme.getSize("default_lining").width
- }
-
- // Separator line
- Rectangle
- {
- height: parent.height
- width: UM.Theme.getSize("default_lining").width
- color: UM.Theme.getColor("lining")
- }
-
- Item
- {
- id: printSetupSelectorItem
- // This is a work around to prevent the printSetupSelector from having to be re-loaded every time
- // a stage switch is done.
- children: [printSetupSelector]
- height: childrenRect.height
- width: childrenRect.width
- }
+ width: UM.Theme.getSize("default_lining").width
+ color: UM.Theme.getColor("lining")
+ }
+
+ Item
+ {
+ id: printSetupSelectorItem
+ // This is a work around to prevent the printSetupSelector from having to be re-loaded every time
+ // a stage switch is done.
+ children: [printSetupSelector]
+ height: childrenRect.height
+ width: childrenRect.width
}
}