[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-mediacenter/bshah/pmc2] shells/next/contents/views: Animate hiding categories bar
From:       Shantanu Tushar <shantanu () kde ! org>
Date:       2014-12-31 17:59:22
Message-ID: E1Y6NYI-0006R1-VY () scm ! kde ! org
[Download RAW message or body]

Git commit 5af2f82f46da1c4517876e71c8a946da31213900 by Shantanu Tushar.
Committed on 31/12/2014 at 17:58.
Pushed by shantanu into branch 'bshah/pmc2'.

Animate hiding categories bar

M  +6    -3    shells/next/contents/views/Desktop.qml

http://commits.kde.org/plasma-mediacenter/5af2f82f46da1c4517876e71c8a946da31213900

diff --git a/shells/next/contents/views/Desktop.qml b/shells/next/contents/views/Desktop.qml
index b5ea1fb..e615314 100644
--- a/shells/next/contents/views/Desktop.qml
+++ b/shells/next/contents/views/Desktop.qml
@@ -302,16 +302,19 @@ Image {
         id: categoriesBar
         z: 1
         backendsModel: getPmcInterface().backendsModel
-        width: parent.width * 0.2
+        width: pmcPageStack.currentPage !== mediaPlayerInstance
+            && pmcPageStack.currentPage !== imageViewerInstance ? parent.width * 0.2 : 0
         height: parent.height
-        visible: pmcPageStack.currentPage !== mediaPlayerInstance
-            && pmcPageStack.currentPage !== imageViewerInstance
         onBackendSelected: {
             if (!backendObject.init())
                 return;
             getPmcInterface().currentBrowsingBackend = backendObject;
             pmcPageStack.pushAndFocus(getMediaBrowser());
         }
+
+        Behavior on width {
+            NumberAnimation { duration: 300 }
+        }
     }
 
     PlasmaComponents.PageStack {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic