mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:46:05 +08:00
Adds an idle-state for the layerview slider
When there is no model, the layerview slider goes back into the idle state fixes #128
This commit is contained in:
parent
81aa047ae3
commit
608283f5f4
@ -389,7 +389,7 @@ QtObject {
|
|||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: maxValueLabel
|
id: maxValueLabel
|
||||||
visible: UM.LayerView.getLayerActivity ? true : false
|
visible: UM.LayerView.getLayerActivity && Printer.getPlatformActivity ? true : false
|
||||||
text: control.maximumValue + 1
|
text: control.maximumValue + 1
|
||||||
font: control.maximumValue > 998 ? UM.Theme.fonts.small : UM.Theme.fonts.default
|
font: control.maximumValue > 998 ? UM.Theme.fonts.small : UM.Theme.fonts.default
|
||||||
transformOrigin: Item.BottomLeft
|
transformOrigin: Item.BottomLeft
|
||||||
@ -399,7 +399,7 @@ QtObject {
|
|||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: minValueLabel
|
id: minValueLabel
|
||||||
visible: UM.LayerView.getLayerActivity ? true : false
|
visible: UM.LayerView.getLayerActivity && Printer.getPlatformActivity ? true : false
|
||||||
text: '1'
|
text: '1'
|
||||||
font: control.maximumValue > 998 ? UM.Theme.fonts.small : UM.Theme.fonts.default
|
font: control.maximumValue > 998 ? UM.Theme.fonts.small : UM.Theme.fonts.default
|
||||||
transformOrigin: Item.BottomLeft
|
transformOrigin: Item.BottomLeft
|
||||||
@ -416,7 +416,7 @@ QtObject {
|
|||||||
Behavior on color { ColorAnimation { duration: 50; } }
|
Behavior on color { ColorAnimation { duration: 50; } }
|
||||||
Label {
|
Label {
|
||||||
id: valueLabel
|
id: valueLabel
|
||||||
visible: UM.LayerView.getLayerActivity ? true : false
|
visible: UM.LayerView.getLayerActivity && Printer.getPlatformActivity ? true : false
|
||||||
text: control.value + 1
|
text: control.value + 1
|
||||||
anchors.bottom: layerSliderControl.bottom
|
anchors.bottom: layerSliderControl.bottom
|
||||||
anchors.right: layerSliderControl.left
|
anchors.right: layerSliderControl.left
|
||||||
|
Loading…
x
Reference in New Issue
Block a user