@@ -28,6 +28,7 @@ Item {
29 property string leftIconName
29 property string leftIconName
30 property string rightIconName
30 property string rightIconName
31+ property double opacityDelta
31 readonly property double sliderHeight: units.gu(8)
32 readonly property double sliderHeight: units.gu(8)
32 readonly property double gap: units.gu(1)
33 readonly property double gap: units.gu(1)
33 readonly property color sliderMainColor: "#b2b2b2"
34 readonly property color sliderMainColor: "#b2b2b2"
@@ -53,6 +54,14 @@ Item {
53 return Qt.rgba(r,g,b,a)
54 return Qt.rgba(r,g,b,a)
57+ UbuntuNumberAnimation on opacityDelta {
60+ loops: Animation.Infinite
61+ duration: UbuntuAnimation.SleepyDuration
62+ easing.type: Easing.Linear
56 UbuntuShape {
65 UbuntuShape {
58 width: parent.width
67 width: parent.width
@@ -97,25 +106,13 @@ Item {
97 name: "back"
106 name: "back"
98 height: units.gu(2.5)
107 height: units.gu(2.5)
99 color: sliderMainColor
108 color: sliderMainColor
100− UbuntuNumberAnimation on opacity {
109+ opacity: .5 + opacityDelta
103− loops: Animation.Infinite
104− duration: UbuntuAnimation.SleepyDuration
105− easing.type: Easing.Linear
109 name: "back"
112 name: "back"
110 height: units.gu(2.5)
113 height: units.gu(2.5)
111 color: sliderMainColor
114 color: sliderMainColor
112− UbuntuNumberAnimation on opacity {
115+ opacity: 1 - opacityDelta
115− loops: Animation.Infinite
116− duration: UbuntuAnimation.SleepyDuration
117− easing.type: Easing.Linear
@@ -179,25 +176,13 @@ Item {
179 name: "next"
176 name: "next"
180 height: units.gu(2.5)
177 height: units.gu(2.5)
181 color: sliderMainColor
178 color: sliderMainColor
182− UbuntuNumberAnimation on opacity {
179+ opacity: 1 - opacityDelta
185− loops: Animation.Infinite
186− duration: UbuntuAnimation.SleepyDuration
187− easing.type: Easing.Linear
191 name: "next"
182 name: "next"
192 height: units.gu(2.5)
183 height: units.gu(2.5)
193 color: sliderMainColor
184 color: sliderMainColor
194− UbuntuNumberAnimation on opacity {
185+ opacity: 0.5 + opacityDelta
197− loops: Animation.Infinite
198− duration: UbuntuAnimation.SleepyDuration
199− easing.type: Easing.Linear