Added opacity "animation" when we show/hide toolbar tools
authorMohammed Sameer <msameer@foolab.org>
Fri, 9 Aug 2013 03:25:24 +0000 (06:25 +0300)
committerMohammed Sameer <msameer@foolab.org>
Fri, 9 Aug 2013 03:25:24 +0000 (06:25 +0300)
qml/CameraToolBarTools.qml

index f6437bb..d0bfb99 100644 (file)
@@ -35,4 +35,10 @@ Row {
     property real childrenWidth: Layout.calculateChildrenWidth(children)
     property int childrenLen: Layout.countVisibleChildren(children)
     spacing: (width - childrenWidth) / (childrenLen - 1)
+
+    opacity: visible ? 1.0 : 0
+
+    Behavior on opacity {
+        NumberAnimation { duration: 100 }
+    }
 }