vlc | branch: master | Rohan Rajpal <[email protected]> | Mon Jul 29 
00:44:21 2019 +0530| [1f28fa8c2a837e0dccab56019ac12c65c6ca409b] | committer: 
Jean-Baptiste Kempf

qml: Add new animation to drawer

Add animation support to new drawer

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f28fa8c2a837e0dccab56019ac12c65c6ca409b
---

 modules/gui/qt/qml/utils/DrawerExt.qml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/modules/gui/qt/qml/utils/DrawerExt.qml 
b/modules/gui/qt/qml/utils/DrawerExt.qml
index 7eb8da045e..c72e6bd268 100644
--- a/modules/gui/qt/qml/utils/DrawerExt.qml
+++ b/modules/gui/qt/qml/utils/DrawerExt.qml
@@ -87,4 +87,21 @@ NavigableFocusScope {
             default: return 0
             }
     }
+
+    transitions: [
+        Transition {
+            to: "hidden"
+            SequentialAnimation {
+                NumberAnimation { target: container; property: toChange; 
duration: 200}
+                PropertyAction{ target: container; property: "visible" }
+            }
+        },
+        Transition {
+            to: "visible"
+            SequentialAnimation {
+                PropertyAction{ target: container; property: "visible" }
+                NumberAnimation { target: container; property: toChange; 
duration: 200 }
+            }
+        }
+    ]
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to