on xenial help sign in
Tweak colors of slider
commit940e1fc535febd7c93871e6e56389ef6b3b6ffc6 authorMichael Terry <michael.terry@canonical.com> dateFri 9 Jan 2015, 16:41 (12 years ago) parentd38d8b7
1 file changed+5−6
qml/Tutorial/Slider.qml+5−6
qml/Tutorial/Slider.qml+5−6
@@ -34,6 +34,7 @@ Item {
3434
3535 QtObject {
3636 id: d
37+ readonly property color trayColor: "#424141"
3738 readonly property real margin: units.gu(0.5)
3839 readonly property real arrowSize: root.height - margin * 2
3940 readonly property real dotSize: units.dp(1)
@@ -45,8 +46,7 @@ Item {
4546 implicitHeight: units.gu(6.5)
4647
4748 Rectangle {
48− color: "black"
49− opacity: 0.4
49+ color: d.trayColor
5050 anchors.fill: parent
5151 anchors.rightMargin: clipBox.width - 1
5252 }
@@ -63,8 +63,7 @@ Item {
6363 width: parent.height / 2
6464
6565 Rectangle {
66− color: "black"
67− opacity: 0.4
66+ color: d.trayColor
6867 anchors.top: parent.top
6968 anchors.bottom: parent.bottom
7069 anchors.right: parent.right
@@ -77,8 +76,8 @@ Item {
7776 id: target
7877 width: d.arrowSize
7978 height: d.arrowSize
80− color: "black"
81− chevronOpacity: 0.2
79+ color: "#73000000"
80+ chevronOpacity: 0.52
8281 anchors.right: parent.right
8382 anchors.rightMargin: d.margin
8483 anchors.verticalCenter: parent.verticalCenter