on xenial help sign in
Use UbuntuAnimation durations
commitdfc21ec0b25550e044c0a42ac1ce1a2cae61cbdf authorMichael Terry <michael.terry@canonical.com> dateWed 21 Aug 2013, 15:42 (13 years ago) parentcac9b59
1 file changed+3−3
Components/DemoOverlay.qml+3−3
Components/DemoOverlay.qml+3−3
@@ -212,14 +212,14 @@ Showable {
212212 }
213213 }
214214 to: overlay.__edge_margin
215− duration: overlay.edge == "none" ? 0 : 1000
215+ duration: overlay.edge == "none" ? 0 : UbuntuAnimation.SleepyDuration
216216 }
217217 StandardAnimation {
218218 target: overlay
219219 property: "opacity"
220220 from: 0.0
221221 to: 1.0
222− duration: 1000
222+ duration: UbuntuAnimation.SleepyDuration
223223 }
224224 }
225225
@@ -229,7 +229,7 @@ Showable {
229229 property string prop: (overlay.edge == "left" || overlay.edge == "right") ? "x" : "y"
230230 property double endVal: units.dp(5) * ((overlay.edge == "left" || overlay.edge == "top") ? 1 : -1)
231231 property double maxGlow: units.dp(20)
232− property int duration: overlay.edge == "none" ? 0 : 1000
232+ property int duration: overlay.edge == "none" ? 0 : UbuntuAnimation.SleepyDuration
233233
234234 ParallelAnimation {
235235 StandardAnimation { target: hintGroup; property: hintAnimation.prop; from: 0; to: hintAnimation.endVal; duration: hintAnimation.duration }