From 608283f5f42bcc057f0751a811d1922f22ed6fde Mon Sep 17 00:00:00 2001 From: Tamara Hogenhout Date: Fri, 10 Jul 2015 19:28:19 +0200 Subject: [PATCH] Adds an idle-state for the layerview slider When there is no model, the layerview slider goes back into the idle state fixes #128 --- resources/themes/cura/styles.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/themes/cura/styles.qml b/resources/themes/cura/styles.qml index e40552cd32..e7794746f5 100644 --- a/resources/themes/cura/styles.qml +++ b/resources/themes/cura/styles.qml @@ -389,7 +389,7 @@ QtObject { } Label { id: maxValueLabel - visible: UM.LayerView.getLayerActivity ? true : false + visible: UM.LayerView.getLayerActivity && Printer.getPlatformActivity ? true : false text: control.maximumValue + 1 font: control.maximumValue > 998 ? UM.Theme.fonts.small : UM.Theme.fonts.default transformOrigin: Item.BottomLeft @@ -399,7 +399,7 @@ QtObject { } Label { id: minValueLabel - visible: UM.LayerView.getLayerActivity ? true : false + visible: UM.LayerView.getLayerActivity && Printer.getPlatformActivity ? true : false text: '1' font: control.maximumValue > 998 ? UM.Theme.fonts.small : UM.Theme.fonts.default transformOrigin: Item.BottomLeft @@ -416,7 +416,7 @@ QtObject { Behavior on color { ColorAnimation { duration: 50; } } Label { id: valueLabel - visible: UM.LayerView.getLayerActivity ? true : false + visible: UM.LayerView.getLayerActivity && Printer.getPlatformActivity ? true : false text: control.value + 1 anchors.bottom: layerSliderControl.bottom anchors.right: layerSliderControl.left