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:
parent
9a4ababd9a
commit
275f1f2109
|
@ -13,6 +13,11 @@ HColumnPopup {
|
||||||
|
|
||||||
property var errors: [] // [{type, message, traceback}]
|
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)
|
contentWidthLimit: Math.min(window.width / 1.5, 864 * theme.uiScale)
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,12 @@ controls:
|
||||||
popup:
|
popup:
|
||||||
int defaultWidth: minimumSupportedWidth * 1.75
|
int defaultWidth: minimumSupportedWidth * 1.75
|
||||||
color background: colors.mediumBackground
|
color background: colors.mediumBackground
|
||||||
|
color opaqueBackground: hsluv(
|
||||||
|
colors.hue,
|
||||||
|
colors.bgSaturation,
|
||||||
|
colors.intensity * 7,
|
||||||
|
1
|
||||||
|
)
|
||||||
color windowOverlay: hsluv(0, 0, 0, 0.7)
|
color windowOverlay: hsluv(0, 0, 0, 0.7)
|
||||||
|
|
||||||
header:
|
header:
|
||||||
|
|
|
@ -119,6 +119,12 @@ controls:
|
||||||
popup:
|
popup:
|
||||||
int defaultWidth: minimumSupportedWidth * 1.75
|
int defaultWidth: minimumSupportedWidth * 1.75
|
||||||
color background: colors.mediumBackground
|
color background: colors.mediumBackground
|
||||||
|
color opaqueBackground: hsluv(
|
||||||
|
colors.hue,
|
||||||
|
colors.bgSaturation,
|
||||||
|
colors.intensity * 7,
|
||||||
|
1
|
||||||
|
)
|
||||||
color windowOverlay: hsluv(0, 0, 0, 0.7)
|
color windowOverlay: hsluv(0, 0, 0, 0.7)
|
||||||
|
|
||||||
header:
|
header:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user