[pve-devel] [PATCH widget-toolkit v1 6/6] dark-theme: add support for the pmg quarantine theme toggle
Stefan Sterz
s.sterz at proxmox.com
Wed Mar 8 17:37:44 CET 2023
allows using the theme toggle in the pmg quarantine properly. adds a
filter over the iframes in the quarantine to make them appear properly
in a dark environment.
Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
src/proxmox-dark/scss/proxmox/_quarantine.scss | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/proxmox-dark/scss/proxmox/_quarantine.scss b/src/proxmox-dark/scss/proxmox/_quarantine.scss
index bdda69a..9e467df 100644
--- a/src/proxmox-dark/scss/proxmox/_quarantine.scss
+++ b/src/proxmox-dark/scss/proxmox/_quarantine.scss
@@ -45,3 +45,9 @@ tr.bounced,
.x-keyboard-mode tr.bounced .x-grid-item-focused {
background-color: $background-warning;
}
+
+.pmg-mail-preview-themed div > iframe {
+ // by reducing the brightness first, pure blacks won't get inverted
+ // to pure white.
+ filter: brightness(95%) invert(95%);
+}
--
2.30.2
More information about the pve-devel
mailing list