on xenial help sign in
use UbuntuNumberAnimations instead of linear ones for window state transitions
41fd789Michael Zanetti
qml/Stages/DesktopStage.qml+2−2
@@ -325,7 +325,7 @@ Rectangle {
325 to: "maximized,maximizedLeft,maximizedRight,minimized,normal,"
325 to: "maximized,maximizedLeft,maximizedRight,minimized,normal,"
326 enabled: appDelegate.animationsEnabled
326 enabled: appDelegate.animationsEnabled
327 SequentialAnimation {
327 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 }
329 ScriptAction {
329 ScriptAction {
330 script: {
330 script: {
331 if (animationsEnabled && state === "minimized" ) {
331 if (animationsEnabled && state === "minimized" ) {
@@ -340,7 +340,7 @@ Rectangle {
340 to: "altTab"
340 to: "altTab"
341 PropertyAction { target: appDelegate; properties: "y,angle,z,itemScale,itemScaleOriginY" }
341 PropertyAction { target: appDelegate; properties: "y,angle,z,itemScale,itemScaleOriginY" }
342 PropertyAction { target: decoratedWindow; properties: "anchors.topMargin" }
342 PropertyAction { target: decoratedWindow; properties: "anchors.topMargin" }
343− PropertyAnimation {
343+ UbuntuNumberAnimation {
344 target: appDelegate; properties: "x"
344 target: appDelegate; properties: "x"
345 from: root.width
345 from: root.width
346 duration: rightEdgePushArea.containsMouse ? UbuntuAnimation.FastDuration :0
346 duration: rightEdgePushArea.containsMouse ? UbuntuAnimation.FastDuration :0