@@ -16,7 +16,6 @@
17import QtQuick 2.3
17import QtQuick 2.3
18import Ubuntu.Components 1.1
18import Ubuntu.Components 1.1
19−import QtGraphicalEffects 1.0
22 id: swipeToAct
21 id: swipeToAct
@@ -34,18 +33,17 @@ Item {
34 readonly property double halfWay: mouseArea.drag.maximumX / 2
33 readonly property double halfWay: mouseArea.drag.maximumX / 2
36 UbuntuShape {
35 UbuntuShape {
37 width: parent.width
37 width: parent.width
38 height: sliderHeight
38 height: sliderHeight
39 color: "#f4f4f4"
39 color: "#f4f4f4"
47 UbuntuShape {
41 UbuntuShape {
48 id: leftShape
42 id: leftShape
43+ anchors.top: parent.top
44+ anchors.left: parent.left
51 name: "normal"
49 name: "normal"
@@ -93,16 +91,46 @@ Item {
97− id: leftSpacer
95+ anchors.verticalCenter: parent.verticalCenter
98− width: (row.width - (leftShape.width + slider.width + rightShape.width + 4 * row.spacing)) / 2
96+ anchors.right: slider.left
97+ anchors.rightMargin: units.gu(1.5)
98+ spacing: -units.gu(1)
101+ height: units.gu(2.5)
103+ UbuntuNumberAnimation on opacity {
106+ loops: Animation.Infinite
107+ duration: UbuntuAnimation.SleepyDuration
108+ easing.type: Easing.Linear
99− height: units.gu(4)
113+ height: units.gu(2.5)
100− opacity: 0
114+ color: "#b2b2b2"
115+ UbuntuNumberAnimation on opacity {
118+ loops: Animation.Infinite
119+ duration: UbuntuAnimation.SleepyDuration
120+ easing.type: Easing.Linear
103 UbuntuShape {
125 UbuntuShape {
104 id: slider
126 id: slider
105 objectName: "slider"
127 objectName: "slider"
128+ anchors.top: parent.top
129+ anchors.margins: gap
131+ Component.onCompleted: {
107 Behavior on x {
135 Behavior on x {
108 UbuntuNumberAnimation {
136 UbuntuNumberAnimation {
@@ -141,16 +169,43 @@ Item {
141 color: "white"
169 color: "white"
145− Rectangle {
173+ anchors.verticalCenter: parent.verticalCenter
146− id: rightSpacer
174+ anchors.left: slider.right
147− width: leftSpacer.width
175+ anchors.leftMargin: units.gu(1.5)
176+ spacing: -units.gu(1)
148− height: units.gu(4)
179+ height: units.gu(2.5)
149− opacity: 0
180+ color: "#b2b2b2"
181+ UbuntuNumberAnimation on opacity {
184+ loops: Animation.Infinite
185+ duration: UbuntuAnimation.SleepyDuration
186+ easing.type: Easing.Linear
191+ height: units.gu(2.5)
193+ UbuntuNumberAnimation on opacity {
196+ loops: Animation.Infinite
197+ duration: UbuntuAnimation.SleepyDuration
198+ easing.type: Easing.Linear
152 UbuntuShape {
203 UbuntuShape {
153 id: rightShape
204 id: rightShape
205+ anchors.top: parent.top
206+ anchors.right: parent.right
207+ anchors.margins: gap
154 states: [
209 states: [
156 name: "normal"
211 name: "normal"
@@ -226,6 +281,5 @@ Item {
226 rightShape.state = "selected"
281 rightShape.state = "selected"