Fix (explicitely define) popup overlay

This commit is contained in:
miruka 2020-03-15 18:01:56 -04:00
parent bbc4a9bb17
commit 647d2e1f1f
3 changed files with 12 additions and 4 deletions

View File

@ -23,6 +23,12 @@ Popup {
color: theme.controls.popup.background color: theme.controls.popup.background
} }
Overlay.modal: Rectangle {
color: "transparent"
HColorAnimation on color { to: theme.controls.popup.windowOverlay }
}
onAboutToShow: previouslyFocused = window.activeFocusItem onAboutToShow: previouslyFocused = window.activeFocusItem
onClosed: if (focusOnClosed) focusOnClosed.forceActiveFocus() onClosed: if (focusOnClosed) focusOnClosed.forceActiveFocus()

View File

@ -102,6 +102,7 @@ controls:
popup: popup:
int defaultWidth: minimumSupportedWidth * 1.75 int defaultWidth: minimumSupportedWidth * 1.75
color background: colors.mediumBackground color background: colors.mediumBackground
color windowOverlay: hsluv(0, 0, 0, 0.7)
header: header:
color background: colors.mediumBackground color background: colors.mediumBackground

View File

@ -102,6 +102,7 @@ controls:
popup: popup:
int defaultWidth: minimumSupportedWidth * 1.75 int defaultWidth: minimumSupportedWidth * 1.75
color background: colors.mediumBackground color background: colors.mediumBackground
color windowOverlay: hsluv(0, 0, 0, 0.7)
header: header:
color background: colors.mediumBackground color background: colors.mediumBackground