@@ -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