@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17−import QtQuick 2.0
17+import QtQuick 2.3
18import Ubuntu.Components 1.1
18import Ubuntu.Components 1.1
19import QtGraphicalEffects 1.0
19import QtGraphicalEffects 1.0
@@ -29,14 +29,14 @@ Item {
30 property string leftIconName
30 property string leftIconName
31 property string rightIconName
31 property string rightIconName
32− readonly property double sliderHeight: 6
32+ readonly property double sliderHeight: units.gu(6)
33 readonly property double gap: units.gu(1)
33 readonly property double gap: units.gu(1)
34 readonly property double halfWay: mouseArea.drag.maximumX / 2
34 readonly property double halfWay: mouseArea.drag.maximumX / 2
36 Rectangle {
36 Rectangle {
37 id: gradient
37 id: gradient
38 width: parent.width * 5
38 width: parent.width * 5
39− height: units.gu(sliderHeight)
39+ height: sliderHeight
40 visible: false
40 visible: false
41 LinearGradient {
41 LinearGradient {
42 anchors.fill: parent
42 anchors.fill: parent
@@ -67,7 +67,7 @@ Item {
68 color: "black"
68 color: "black"
69 width: parent.width
69 width: parent.width
70− height: units.gu(sliderHeight)
70+ height: sliderHeight
71 borderSource: "none"
71 borderSource: "none"
72 visible: false
72 visible: false
@@ -83,7 +83,7 @@ Item {
84 ShaderEffect {
84 ShaderEffect {
85 width: parent.width
85 width: parent.width
86− height: units.gu(sliderHeight)
86+ height: sliderHeight
87 property variant mask: effectSourceMask
87 property variant mask: effectSourceMask
88 property variant gradient: effectSourceGradient
88 property variant gradient: effectSourceGradient
89 vertexShader: "
89 vertexShader: "