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-12-04 17:21:36 +0300
committerGhostkeeper <rubend@tutanota.com>2018-12-04 17:21:36 +0300
commitb5bb3232f384a950db57eb4d20450aaa6e81cbac (patch)
treea5a73c16a218ef3464eff41847afae4a229f6a82 /resources/qml/Toolbar.qml
parent9c75f3fe0f1cce610f9f9236d2af074cb49e5baf (diff)
parent5255bca9ddc3502e8ad9b87dc91fbb193e86c474 (diff)
Merge branch 'ui_rework_4_0' into CURA-5876-Configuration_dropdown
Conflicts: resources/qml/ActionPanel/OutputProcessWidget.qml -> Due to removed theme entry.
Diffstat (limited to 'resources/qml/Toolbar.qml')
-rw-r--r--resources/qml/Toolbar.qml27
1 files changed, 16 insertions, 11 deletions
diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml
index e019714abe..1e335472d4 100644
--- a/resources/qml/Toolbar.qml
+++ b/resources/qml/Toolbar.qml
@@ -115,6 +115,7 @@ Item
}
radius: UM.Theme.getSize("default_radius").width
color: UM.Theme.getColor("lining")
+ visible: extrudersModel.items.length > 1
}
Column
@@ -131,8 +132,7 @@ Item
id: extruders
width: childrenRect.width
height: childrenRect.height
- property var _model: Cura.ExtrudersModel { id: extrudersModel }
- model: _model.items.length > 1 ? _model : 0
+ model: extrudersModel.items.length > 1 ? extrudersModel : 0
delegate: ExtruderButton
{
@@ -144,13 +144,18 @@ Item
}
}
+ Cura.ExtrudersModel
+ {
+ id: extrudersModel
+ }
+
UM.PointingRectangle
{
- id: panelBorder;
+ id: panelBorder
- anchors.left: parent.right;
- anchors.leftMargin: UM.Theme.getSize("default_margin").width;
- anchors.top: base.top;
+ anchors.left: parent.right
+ anchors.leftMargin: UM.Theme.getSize("default_margin").width
+ anchors.top: base.top
anchors.topMargin: base.activeY
z: buttons.z - 1
@@ -161,14 +166,14 @@ Item
{
if (panel.item && panel.width > 0)
{
- return Math.max(panel.width + 2 * UM.Theme.getSize("default_margin").width);
+ return Math.max(panel.width + 2 * UM.Theme.getSize("default_margin").width)
}
else
{
return 0;
}
}
- height: panel.item ? panel.height + 2 * UM.Theme.getSize("default_margin").height : 0;
+ height: panel.item ? panel.height + 2 * UM.Theme.getSize("default_margin").height : 0
opacity: panel.item && panel.width > 0 ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
@@ -186,11 +191,11 @@ Item
{
id: panel
- x: UM.Theme.getSize("default_margin").width;
- y: UM.Theme.getSize("default_margin").height;
+ x: UM.Theme.getSize("default_margin").width
+ y: UM.Theme.getSize("default_margin").height
source: UM.ActiveTool.valid ? UM.ActiveTool.activeToolPanel : ""
- enabled: UM.Controller.toolsEnabled;
+ enabled: UM.Controller.toolsEnabled
}
}