on xenial help sign in
don't dim screen when the indicators are open or a modal notification is being shown
commit3d22307e3cf55247084b93881a751e7483f5cdcb authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 31 Mar 2016, 15:24 (11 years ago) parentfbb130c
2 files changed+8−25
qml/Panel/Panel.qml+6−15 qml/Shell.qml+2−10
qml/Panel/Panel.qml+6−15
@@ -30,22 +30,13 @@ Item {
3030 property real indicatorAreaShowProgress: 1.0
3131 property bool locked: false
3232
33− Rectangle {
34− id: darkenedArea
35− property real darkenedOpacity: 0.6
36− anchors {
37− fill: parent
38− topMargin: panelHeight
39− }
40− color: "black"
41− opacity: indicators.unitProgress * darkenedOpacity
33+ MouseArea {
34+ anchors.fill: parent
35+ anchors.topMargin: panelHeight
4236 visible: !indicators.fullyClosed
43−
44− MouseArea {
45− anchors.fill: parent
46− onClicked: if (indicators.fullyOpened) indicators.hide();
47− hoverEnabled: true // should also eat hover events, otherwise they will pass through
48− }
37+ enabled: visible
38+ onClicked: if (indicators.fullyOpened) indicators.hide();
39+ hoverEnabled: true // should also eat hover events, otherwise they will pass through
4940 }
5041
5142 Binding {
qml/Shell.qml+2−10
@@ -627,17 +627,9 @@ Item {
627627 onActiveChanged: unlockWhenDoneWithWizard()
628628 }
629629
630− Rectangle {
631− id: modalNotificationBackground
632−
633− visible: notifications.useModal
634− color: "#000000"
630+ MouseArea {
635631 anchors.fill: parent
636− opacity: 0.9
637−
638− MouseArea {
639− anchors.fill: parent
640− }
632+ visible: notifications.useModal
641633 }
642634
643635 Notifications {