on xenial help sign in
use UbuntuNumberAnimations instead of linear ones for window state transitions
commit41fd789af4bef17524dcb4ef915746c529dd609a authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 3 Nov 2015, 11:58 (11 years ago) parent1dc9076
1 file changed+2−2
qml/Stages/DesktopStage.qml+2−2
qml/Stages/DesktopStage.qml+2−2
@@ -325,7 +325,7 @@ Rectangle {
325325 to: "maximized,maximizedLeft,maximizedRight,minimized,normal,"
326326 enabled: appDelegate.animationsEnabled
327327 SequentialAnimation {
328− PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
328+ UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale"; duration: UbuntuAnimation.FastDuration }
329329 ScriptAction {
330330 script: {
331331 if (animationsEnabled && state === "minimized" ) {
@@ -340,7 +340,7 @@ Rectangle {
340340 to: "altTab"
341341 PropertyAction { target: appDelegate; properties: "y,angle,z,itemScale,itemScaleOriginY" }
342342 PropertyAction { target: decoratedWindow; properties: "anchors.topMargin" }
343− PropertyAnimation {
343+ UbuntuNumberAnimation {
344344 target: appDelegate; properties: "x"
345345 from: root.width
346346 duration: rightEdgePushArea.containsMouse ? UbuntuAnimation.FastDuration :0