Animate opacity of the blackRect
commitefd7f0baa69656ad5f2be15d5cf702580b331eb6
authorAlbert Astals <albert.astals@canonical.com>
dateWed 18 Jun 2014, 13:09 (12 years ago)
parent1129e29
qml/Dash/DashDepartments.qml+3−2
@@ -44,10 +44,11 @@ AbstractButton {
4444 Rectangle {
4545 id: blackRect
4646 color: "black"
47− opacity: 0.3
47+ opacity: departmentListView.currentItem && departmentListView.currentItem.visible ? 0.3 : 0
48+ Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
4849 anchors.top: departmentListView.top
4950 anchors.right: parent.right
50− visible: departmentListView.currentItem && departmentListView.currentItem.visible
51+ visible: opacity != 0
5152 }
5253
5354 Image {