@@ -32,8 +32,6 @@ Item {
3232 readonly property double sliderHeight: units.gu(8)
3333 readonly property double gap: units.gu(1)
3434 readonly property color sliderMainColor: "#b2b2b2"
35− readonly property color green: "#38b44a"
36− readonly property color red: "#df382c"
3735 readonly property color sliderBGColor: "#f4f4f4"
3836 readonly property double halfWay: mouseArea.drag.maximumX / 2
3937
@@ -67,13 +65,15 @@ Item {
6765 width: parent.width
6866 height: sliderHeight
6967 color: sliderBGColor
68+ borderSource: "none"
7069
7170 UbuntuShape {
7271 id: leftShape
7372 anchors.top: parent.top
7473 anchors.left: parent.left
7574 anchors.margins: gap
76− color: red
75+ color: UbuntuColors.red
76+ borderSource: "none"
7777
7878 state: "normal"
7979 height: units.gu(6)
@@ -121,12 +121,15 @@ Item {
121121 objectName: "slider"
122122 anchors.top: parent.top
123123 anchors.margins: gap
124+ x: halfWay
124125
125126 Component.onCompleted: {
126− x = halfWay
127+ xBehavior.enabled = true
127128 }
128129
129130 Behavior on x {
131+ id: xBehavior
132+ enabled: false
130133 UbuntuNumberAnimation {
131134 duration: UbuntuAnimation.FastDuration
132135 easing.type: Easing.OutBounce
@@ -191,7 +194,8 @@ Item {
191194 anchors.top: parent.top
192195 anchors.right: parent.right
193196 anchors.margins: gap
194− color: green
197+ color: UbuntuColors.green
198+ borderSource: "none"
195199
196200 state: "normal"
197201 height: units.gu(6)