From 647d2e1f1faeedfa676f5ec26ff6c8cb2308d081 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Mar 2020 18:01:56 -0400 Subject: [PATCH] Fix (explicitely define) popup overlay --- src/gui/Base/HPopup.qml | 6 ++++++ src/themes/Glass.qpl | 5 +++-- src/themes/Midnight.qpl | 5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/gui/Base/HPopup.qml b/src/gui/Base/HPopup.qml index 2874425b..8e87e14e 100644 --- a/src/gui/Base/HPopup.qml +++ b/src/gui/Base/HPopup.qml @@ -23,6 +23,12 @@ Popup { color: theme.controls.popup.background } + Overlay.modal: Rectangle { + color: "transparent" + + HColorAnimation on color { to: theme.controls.popup.windowOverlay } + } + onAboutToShow: previouslyFocused = window.activeFocusItem onClosed: if (focusOnClosed) focusOnClosed.forceActiveFocus() diff --git a/src/themes/Glass.qpl b/src/themes/Glass.qpl index 846d1348..ccab4529 100644 --- a/src/themes/Glass.qpl +++ b/src/themes/Glass.qpl @@ -100,8 +100,9 @@ controls: int radius: theme.radius popup: - int defaultWidth: minimumSupportedWidth * 1.75 - color background: colors.mediumBackground + int defaultWidth: minimumSupportedWidth * 1.75 + color background: colors.mediumBackground + color windowOverlay: hsluv(0, 0, 0, 0.7) header: color background: colors.mediumBackground diff --git a/src/themes/Midnight.qpl b/src/themes/Midnight.qpl index 701abc5f..05bf4fef 100644 --- a/src/themes/Midnight.qpl +++ b/src/themes/Midnight.qpl @@ -100,8 +100,9 @@ controls: int radius: theme.radius popup: - int defaultWidth: minimumSupportedWidth * 1.75 - color background: colors.mediumBackground + int defaultWidth: minimumSupportedWidth * 1.75 + color background: colors.mediumBackground + color windowOverlay: hsluv(0, 0, 0, 0.7) header: color background: colors.mediumBackground