Tweaked the mode switch animation and now it works better
authorMohammed Sameer <msameer@foolab.org>
Tue, 11 Sep 2012 21:20:18 +0000 (00:20 +0300)
committerMohammed Sameer <msameer@foolab.org>
Tue, 11 Sep 2012 21:20:18 +0000 (00:20 +0300)
qml/ModeController.qml

index 2fd164a..bfa6d2b 100644 (file)
@@ -18,13 +18,18 @@ Item {
                         cam.mode = mode;
                 }
 
-                NumberAnimation { target: dimmer; property: "opacity"; from: 0; to: 1; duration: 250; alwaysRunToEnd: true }
+                NumberAnimation { target: dimmer; property: "opacity"; from: 0; to: 1; duration: 150; alwaysRunToEnd: true }
+
+                PauseAnimation { duration: 50 }
+
                 ParallelAnimation {
                         ScriptAction { script: animation.setMode(); }
-                        PauseAnimation { duration: 100 }
+                        PauseAnimation { duration: 200 }
                 }
 
-                NumberAnimation { target: dimmer; property: "opacity"; from: 1; to: 0; duration: 250; alwaysRunToEnd: true }
+                PauseAnimation { duration: 50 }
+
+                NumberAnimation { target: dimmer; property: "opacity"; from: 1; to: 0; duration: 150; alwaysRunToEnd: true }
         }
 
         onModeChanged: {