@@ -81,6 +81,16 @@ export class ThemesManager {
8181 document . body . style . setProperty ( "--fg-overlay-sep" , value ) ;
8282 }
8383 }
84+
85+ document . body . style . setProperty ( "background-color" , "var(--gb-panel)" ) ;
86+
87+ document . body . style . setProperty ( "--color-bg" , "var(--bg-panel)" ) ;
88+ document . body . style . setProperty ( "--color-bg-selected" , "var(--bg-panel)" ) ;
89+ document . body . style . setProperty ( "--color-text" , "var(--text)" ) ;
90+ document . body . style . setProperty ( "--color-text-secondary" , "var(--text)" ) ;
91+ document . body . style . setProperty ( "--color-border" , "var(--borders)" ) ;
92+ document . body . style . setProperty ( "--color-text-disabled" , "var(--text-disabled)" ) ;
93+ document . body . style . setProperty ( "--color-bg-selected-secondary" , "var(--bg-panel)" ) ;
8494 }
8595
8696 init ( ) : void {
@@ -94,7 +104,6 @@ export class ThemesManager {
94104 const additionStyleRules : string [ ] = [
95105 "#react-page { background-color: var(--bg-panel); }" ,
96106 `span[class*="action_option--shortcut"] { color: var(--fg-overlay); }` ,
97- `div[class*="search--searchContainer"] input { background-color: var(--bg-panel) !important; }` ,
98107 `div[class*="file_browser_page_view"] { background-color: var(--bg-panel) !important; }` ,
99108 ] ;
100109
@@ -123,7 +132,6 @@ export class ThemesManager {
123132 }
124133
125134 if ( / s e a r c h - - s e a r c h I n p u t / . test ( cssRule . selectorText ) ) {
126- cssRule . style [ "backgroundColor" ] = `var(--bg-panel)` ;
127135 cssRule . style [ "color" ] = `var(--text-active)` ;
128136 }
129137
@@ -133,6 +141,15 @@ export class ThemesManager {
133141 if ( / t o o l _ b a r - - t o o l B a r R i g h t S i d e | p a g e s _ p a n e l - - p a g e R o w S e l e c t e d / . test ( cssRule . selectorText ) ) {
134142 cssRule . style [ "fill" ] = `var(--text-active)` ;
135143 }
144+ if ( / .s v g - c o n t a i n e r / . test ( cssRule . selectorText ) ) {
145+ additionStyleRules . push ( `.svg-container path:not([fill="none"]) { fill: var(--text-active); }` ) ;
146+ }
147+ if ( / .t e x t - - _ n e g T e x t / . test ( cssRule . selectorText ) ) {
148+ additionStyleRules . push ( `${ cssRule . selectorText } { color: var(--fg-header); }` ) ;
149+ }
150+ if ( / .n a v b a r - - w o r k s p a c e S u b t i t l e / . test ( cssRule . selectorText ) ) {
151+ additionStyleRules . push ( `${ cssRule . selectorText } { color: var(--fg-header); }` ) ;
152+ }
136153 if ( / u p g r a d e _ s e c t i o n - - i c o n / . test ( cssRule . selectorText ) ) {
137154 additionStyleRules . push ( `span[class*="upgrade_section--icon"] > svg > path { fill: var(--text); }` ) ;
138155 }
@@ -146,11 +163,6 @@ export class ThemesManager {
146163 if ( / b a s i c _ f o r m - - t e x t I n p u t / . test ( cssRule . selectorText ) ) {
147164 cssRule . style [ "backgroundColor" ] = `var(--bg-panel)` ;
148165 }
149- if (
150- / ( s e a r c h - - s e a r c h C o n t a i n e r - - .* : h o v e r | s e a r c h - - e x p a n d i n g S e a r c h B o x C o n t a i n e r F o c u s e d ) / . test ( cssRule . selectorText )
151- ) {
152- cssRule . style [ "backgroundColor" ] = `var(--bg-header)` ;
153- }
154166 if ( / s t e p _ b r e a d c r u m b - - s t e p T i t l e / . test ( cssRule . selectorText ) ) {
155167 cssRule . style [ "color" ] = `var(--text-active)` ;
156168 }
0 commit comments