on xenial help sign in
don't dim screen when the indicators are open or a modal notification is being shown
3d22307Lukáš Tinkl
qml/Panel/Panel.qml+6−15
@@ -30,22 +30,13 @@ Item {
30 property real indicatorAreaShowProgress: 1.0
30 property real indicatorAreaShowProgress: 1.0
31 property bool locked: false
31 property bool locked: false
32
32
33− Rectangle {
33+ MouseArea {
34− id: darkenedArea
35− property real darkenedOpacity: 0.6
36− anchors {
37− fill: parent
34+ anchors.fill: parent
38− topMargin: panelHeight
35+ anchors.topMargin: panelHeight
39− }
40− color: "black"
41− opacity: indicators.unitProgress * darkenedOpacity
42 visible: !indicators.fullyClosed
36 visible: !indicators.fullyClosed
43−
37+ enabled: visible
44− MouseArea {
45− anchors.fill: parent
46− onClicked: if (indicators.fullyOpened) indicators.hide();
38+ onClicked: if (indicators.fullyOpened) indicators.hide();
47− hoverEnabled: true // should also eat hover events, otherwise they will pass through
39+ hoverEnabled: true // should also eat hover events, otherwise they will pass through
48− }
49 }
40 }
50
41
51 Binding {
42 Binding {
qml/Shell.qml+2−10
@@ -627,17 +627,9 @@ Item {
627 onActiveChanged: unlockWhenDoneWithWizard()
627 onActiveChanged: unlockWhenDoneWithWizard()
628 }
628 }
629
629
630− Rectangle {
630+ MouseArea {
631− id: modalNotificationBackground
632−
633− visible: notifications.useModal
634− color: "#000000"
635 anchors.fill: parent
631 anchors.fill: parent
636− opacity: 0.9
632+ visible: notifications.useModal
637−
638− MouseArea {
639− anchors.fill: parent
640− }
641 }
633 }
642
634
643 Notifications {
635 Notifications {