mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Add borders to layer view slider handles
And all other sliders, of which we have exactly 0. Contributes to issue CURA-4148.
This commit is contained in:
parent
02e96f510a
commit
9d910be212
2 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2015 Ultimaker B.V.
|
// Copyright (c) 2017 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the AGPLv3 or higher.
|
// Cura is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
|
@ -487,6 +487,8 @@ Item
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
radius: parent.handleRadius
|
radius: parent.handleRadius
|
||||||
color: parent.upperHandleColor
|
color: parent.upperHandleColor
|
||||||
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
|
border.color: UM.Theme.getColor("slider_handle_border")
|
||||||
|
|
||||||
visible: slider.layersVisible
|
visible: slider.layersVisible
|
||||||
|
|
||||||
|
@ -526,6 +528,8 @@ Item
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
radius: parent.handleRadius
|
radius: parent.handleRadius
|
||||||
color: parent.lowerHandleColor
|
color: parent.lowerHandleColor
|
||||||
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
|
border.color: UM.Theme.getColor("slider_handle_border")
|
||||||
|
|
||||||
visible: slider.layersVisible
|
visible: slider.layersVisible
|
||||||
|
|
||||||
|
|
|
@ -769,7 +769,9 @@ QtObject {
|
||||||
width: Theme.getSize("slider_handle").width;
|
width: Theme.getSize("slider_handle").width;
|
||||||
height: Theme.getSize("slider_handle").height;
|
height: Theme.getSize("slider_handle").height;
|
||||||
color: control.hovered ? Theme.getColor("slider_handle_hover") : Theme.getColor("slider_handle");
|
color: control.hovered ? Theme.getColor("slider_handle_hover") : Theme.getColor("slider_handle");
|
||||||
radius: Theme.getSize("slider_handle").width/2;
|
border.width: Theme.getSize("default_lining").width
|
||||||
|
border.color: control.hovered ? Theme.getColor("slider_handle_hover_border") : Theme.getColor("slider_handle_border")
|
||||||
|
radius: Theme.getSize("slider_handle").width / 2; //Round.
|
||||||
Behavior on color { ColorAnimation { duration: 50; } }
|
Behavior on color { ColorAnimation { duration: 50; } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue