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
}
Overlay.modal: Rectangle {
color: "transparent"
HColorAnimation on color { to: theme.controls.popup.windowOverlay }
}
onAboutToShow: previouslyFocused = window.activeFocusItem
onClosed: if (focusOnClosed) focusOnClosed.forceActiveFocus()

View File

@ -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

View File

@ -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