[pve-devel] [PATCH widget-toolkit] dark theme: make icons in the permissions tree in pve dark
Shannon Sterz
s.sterz at proxmox.com
Fri Nov 15 16:29:18 CET 2024
these icons are multiply style because they seem to be handled
differently across products. so this in essence "double inverts" them
in the context where that is needed
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
src/proxmox-dark/scss/other/_icons.scss | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/proxmox-dark/scss/other/_icons.scss b/src/proxmox-dark/scss/other/_icons.scss
index c045cf4..ad08906 100644
--- a/src/proxmox-dark/scss/other/_icons.scss
+++ b/src/proxmox-dark/scss/other/_icons.scss
@@ -33,6 +33,13 @@
color: $icon-color;
}
+// pve needs to set `color` on this pseudo element, but the api viewer and pbs
+// add a filter to the parent. so invert it here again, to fix this for pve.
+.x-tree-icon-parent:not(.x-tree-icon-custom)::before,
+.x-tree-icon-parent-expanded:not(.x-tree-icon-custom)::before {
+ filter: invert(90%);
+}
+
// but some are implement as background SVGs or PNGs. invert them via
// filters:
.fa-ceph::before,
--
2.39.5
More information about the pve-devel
mailing list