on xenial help sign in
Animate opacity of the blackRect
efd7f0bAlbert Astals
qml/Dash/DashDepartments.qml+3−2
@@ -44,10 +44,11 @@ AbstractButton {
44 Rectangle {
44 Rectangle {
45 id: blackRect
45 id: blackRect
46 color: "black"
46 color: "black"
47− opacity: 0.3
47+ opacity: departmentListView.currentItem && departmentListView.currentItem.visible ? 0.3 : 0
48+ Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
48 anchors.top: departmentListView.top
49 anchors.top: departmentListView.top
49 anchors.right: parent.right
50 anchors.right: parent.right
50− visible: departmentListView.currentItem && departmentListView.currentItem.visible
51+ visible: opacity != 0
51 }
52 }
52
53
53 Image {
54 Image {