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