@@ -32,8 +32,6 @@ Item {
32 readonly property double sliderHeight: units.gu(8)
32 readonly property double sliderHeight: units.gu(8)
33 readonly property double gap: units.gu(1)
33 readonly property double gap: units.gu(1)
34 readonly property color sliderMainColor: "#b2b2b2"
34 readonly property color sliderMainColor: "#b2b2b2"
35− readonly property color green: "#38b44a"
36− readonly property color red: "#df382c"
37 readonly property color sliderBGColor: "#f4f4f4"
35 readonly property color sliderBGColor: "#f4f4f4"
38 readonly property double halfWay: mouseArea.drag.maximumX / 2
36 readonly property double halfWay: mouseArea.drag.maximumX / 2
@@ -67,13 +65,15 @@ Item {
67 width: parent.width
65 width: parent.width
68 height: sliderHeight
66 height: sliderHeight
69 color: sliderBGColor
67 color: sliderBGColor
71 UbuntuShape {
70 UbuntuShape {
72 id: leftShape
71 id: leftShape
73 anchors.top: parent.top
72 anchors.top: parent.top
74 anchors.left: parent.left
73 anchors.left: parent.left
75 anchors.margins: gap
74 anchors.margins: gap
76− color: red
75+ color: UbuntuColors.red
78 state: "normal"
78 state: "normal"
79 height: units.gu(6)
79 height: units.gu(6)
@@ -121,12 +121,15 @@ Item {
121 objectName: "slider"
121 objectName: "slider"
122 anchors.top: parent.top
122 anchors.top: parent.top
123 anchors.margins: gap
123 anchors.margins: gap
125 Component.onCompleted: {
126 Component.onCompleted: {
126− x = halfWay
127+ xBehavior.enabled = true
129 Behavior on x {
130 Behavior on x {
130 UbuntuNumberAnimation {
133 UbuntuNumberAnimation {
131 duration: UbuntuAnimation.FastDuration
134 duration: UbuntuAnimation.FastDuration
132 easing.type: Easing.OutBounce
135 easing.type: Easing.OutBounce
@@ -191,7 +194,8 @@ Item {
191 anchors.top: parent.top
194 anchors.top: parent.top
192 anchors.right: parent.right
195 anchors.right: parent.right
193 anchors.margins: gap
196 anchors.margins: gap
194− color: green
197+ color: UbuntuColors.green
198+ borderSource: "none"
196 state: "normal"
200 state: "normal"
197 height: units.gu(6)
201 height: units.gu(6)