on xenial help sign in
Use UbuntuAnimation durations
dfc21ecMichael Terry
Components/DemoOverlay.qml+3−3
@@ -212,14 +212,14 @@ Showable {
212 }
212 }
213 }
213 }
214 to: overlay.__edge_margin
214 to: overlay.__edge_margin
215− duration: overlay.edge == "none" ? 0 : 1000
215+ duration: overlay.edge == "none" ? 0 : UbuntuAnimation.SleepyDuration
216 }
216 }
217 StandardAnimation {
217 StandardAnimation {
218 target: overlay
218 target: overlay
219 property: "opacity"
219 property: "opacity"
220 from: 0.0
220 from: 0.0
221 to: 1.0
221 to: 1.0
222− duration: 1000
222+ duration: UbuntuAnimation.SleepyDuration
223 }
223 }
224 }
224 }
225
225
@@ -229,7 +229,7 @@ Showable {
229 property string prop: (overlay.edge == "left" || overlay.edge == "right") ? "x" : "y"
229 property string prop: (overlay.edge == "left" || overlay.edge == "right") ? "x" : "y"
230 property double endVal: units.dp(5) * ((overlay.edge == "left" || overlay.edge == "top") ? 1 : -1)
230 property double endVal: units.dp(5) * ((overlay.edge == "left" || overlay.edge == "top") ? 1 : -1)
231 property double maxGlow: units.dp(20)
231 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
233
233
234 ParallelAnimation {
234 ParallelAnimation {
235 StandardAnimation { target: hintGroup; property: hintAnimation.prop; from: 0; to: hintAnimation.endVal; duration: hintAnimation.duration }
235 StandardAnimation { target: hintGroup; property: hintAnimation.prop; from: 0; to: hintAnimation.endVal; duration: hintAnimation.duration }