@@ -107,9 +107,10 @@ button:focus-visible {
107107 use !important to ensure the dark theme is enforced.
108108 ====================================================================== */
109109: root {
110+ /* slightly lighter than pure black to reduce contrast strain */
110111 color-scheme : dark !important ;
111- color : rgba (255 , 255 , 255 , 0.87 ) !important ;
112- background-color : # 121212 !important ;
112+ color : rgba (255 , 255 , 255 , 0.92 ) !important ;
113+ background-color : # 1e1e1e !important ;
113114}
114115
115116/* Buttons and controls: prefer the dark backgrounds used across the app */
@@ -120,6 +121,23 @@ button,
120121 border-color : transparent !important ;
121122}
122123
124+ /* Ensure icons inside non-disabled buttons are white (covers SVG icons, font icons, and .icon wrappers).
125+ This prevents theme or hover color leaking (purple) onto canvas/toolbar icons. */
126+ button : not ([disabled ]) svg ,
127+ button : not ([disabled ]) svg * ,
128+ button : not ([disabled ]) i ,
129+ button : not ([disabled ]) .icon ,
130+ button : not ([disabled ]) .fa ,
131+ .compact-btn : not ([disabled ]) svg ,
132+ .compact-btn : not ([disabled ]) svg * ,
133+ .compact-btn : not ([disabled ]) i ,
134+ .compact-btn : not ([disabled ]) .icon ,
135+ .compact-btn : not ([disabled ]) .fa {
136+ color : # ffffff !important ;
137+ fill : # ffffff !important ;
138+ stroke : # ffffff !important ;
139+ }
140+
123141/* Disabled controls: dark-friendly appearance */
124142.controls-group input [disabled ],
125143.controls-group select [disabled ],
0 commit comments