Update LayerView slider according to new style

CURA-4212
This commit is contained in:
Lipu Fei 2017-09-11 11:10:42 +02:00
parent b2eead7736
commit 96678b11ca
2 changed files with 7 additions and 6 deletions

View file

@ -346,7 +346,7 @@ Item
property real minimumRangeHandleSize: UM.Theme.getSize("slider_handle").width / 2 property real minimumRangeHandleSize: UM.Theme.getSize("slider_handle").width / 2
property real trackThickness: UM.Theme.getSize("slider_groove").width property real trackThickness: UM.Theme.getSize("slider_groove").width
property real trackRadius: trackThickness / 2 property real trackRadius: trackThickness / 2
property real trackBorderWidth: UM.Theme.getSize("default_lining").width property real trackBorderWidth: UM.Theme.getSize("default_lining").width / 2
property color upperHandleColor: UM.Theme.getColor("slider_handle") property color upperHandleColor: UM.Theme.getColor("slider_handle")
property color lowerHandleColor: UM.Theme.getColor("slider_handle") property color lowerHandleColor: UM.Theme.getColor("slider_handle")
property color rangeHandleColor: UM.Theme.getColor("slider_groove_fill") property color rangeHandleColor: UM.Theme.getColor("slider_groove_fill")
@ -474,8 +474,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.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("slider_handle_border") //border.color: UM.Theme.getColor("slider_handle_border")
visible: slider.layersVisible visible: slider.layersVisible

View file

@ -188,8 +188,9 @@
"slider_groove": [245, 245, 245, 255], "slider_groove": [245, 245, 245, 255],
"slider_groove_border": [127, 127, 127, 255], "slider_groove_border": [127, 127, 127, 255],
"slider_groove_fill": [127, 127, 127, 255], "slider_groove_fill": [127, 127, 127, 255],
"slider_handle": [32, 166, 219, 255], "slider_handle": [0, 0, 0, 255],
"slider_handle_hover": [77, 182, 226, 255], "slider_handle_hover": [77, 182, 226, 255],
"slider_handle_border": [39, 44, 48, 255],
"slider_text_background": [255, 255, 255, 255], "slider_text_background": [255, 255, 255, 255],
"checkbox": [255, 255, 255, 255], "checkbox": [255, 255, 255, 255],
@ -334,8 +335,8 @@
"scrollbar": [0.75, 0.5], "scrollbar": [0.75, 0.5],
"slider_groove": [0.5, 0.5], "slider_groove": [0.3, 0.3],
"slider_handle": [1.5, 1.5], "slider_handle": [1.0, 1.0],
"slider_layerview_size": [1.0, 22.0], "slider_layerview_size": [1.0, 22.0],
"slider_layerview_background": [4.0, 0.0], "slider_layerview_background": [4.0, 0.0],
"slider_layerview_margin": [1.0, 1.0], "slider_layerview_margin": [1.0, 1.0],