Make error popup opaque

Sending screenshots of error popups is an easy way to leak information.
But if the popup is transparent, that makes it so much easier.
For the sake of privacy, error popups should be opaque.
This commit is contained in:
Maze 2021-08-29 19:07:46 +02:00
parent 9a4ababd9a
commit 275f1f2109
3 changed files with 17 additions and 0 deletions

View File

@ -13,6 +13,11 @@ HColumnPopup {
property var errors: [] // [{type, message, traceback}]
background: Rectangle {
color: theme.controls.popup.opaqueBackground
? theme.controls.popup.opaqueBackground
: theme.controls.popup.background // fallback
}
contentWidthLimit: Math.min(window.width / 1.5, 864 * theme.uiScale)

View File

@ -116,6 +116,12 @@ controls:
popup:
int defaultWidth: minimumSupportedWidth * 1.75
color background: colors.mediumBackground
color opaqueBackground: hsluv(
colors.hue,
colors.bgSaturation,
colors.intensity * 7,
1
)
color windowOverlay: hsluv(0, 0, 0, 0.7)
header:

View File

@ -119,6 +119,12 @@ controls:
popup:
int defaultWidth: minimumSupportedWidth * 1.75
color background: colors.mediumBackground
color opaqueBackground: hsluv(
colors.hue,
colors.bgSaturation,
colors.intensity * 7,
1
)
color windowOverlay: hsluv(0, 0, 0, 0.7)
header: