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:
@@ -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)
|
||||
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user