@@ -165,8 +165,6 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any} = {
165
165
'--color-scheduling-profiler-react-suspense-unresolved-hover' : '#93959a' ,
166
166
'--color-scheduling-profiler-text-color' : '#000000' ,
167
167
'--color-scheduling-profiler-react-work-border' : '#ffffff' ,
168
- '--color-scroll-thumb' : '#c2c2c2' ,
169
- '--color-scroll-track' : '#fafafa' ,
170
168
'--color-search-match' : 'yellow' ,
171
169
'--color-search-match-current' : '#f7923b' ,
172
170
'--color-selected-tree-highlight-active' : 'rgba(0, 136, 250, 0.1)' ,
@@ -180,12 +178,18 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any} = {
180
178
'--color-toggle-background-on' : '#0088fa' ,
181
179
'--color-toggle-background-off' : '#cfd1d5' ,
182
180
'--color-toggle-text' : '#ffffff' ,
183
- '--color-tooltip-background' : 'rgba(0, 0, 0, 0.9)' ,
184
- '--color-tooltip-text' : '#ffffff' ,
185
181
'--color-warning-background' : '#fb3655' ,
186
182
'--color-warning-background-hover' : '#f82042' ,
187
183
'--color-warning-text-color' : '#ffffff' ,
188
184
'--color-warning-text-color-inverted' : '#fd4d69' ,
185
+
186
+ // The styles below should be kept in sync with 'root.css'
187
+ // They are repeated there because they're used by e.g. tooltips or context menus
188
+ // which get rendered outside of the DOM subtree (where normal theme/styles are written).
189
+ '--color-scroll-thumb' : '#c2c2c2' ,
190
+ '--color-scroll-track' : '#fafafa' ,
191
+ '--color-tooltip-background' : 'rgba(0, 0, 0, 0.9)' ,
192
+ '--color-tooltip-text' : '#ffffff' ,
189
193
} ,
190
194
dark : {
191
195
'--color-attribute-name' : '#9d87d2' ,
@@ -291,8 +295,6 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any} = {
291
295
'--color-scheduling-profiler-react-suspense-unresolved-hover' : '#93959a' ,
292
296
'--color-scheduling-profiler-text-color' : '#000000' ,
293
297
'--color-scheduling-profiler-react-work-border' : '#ffffff' ,
294
- '--color-scroll-thumb' : '#afb3b9' ,
295
- '--color-scroll-track' : '#313640' ,
296
298
'--color-search-match' : 'yellow' ,
297
299
'--color-search-match-current' : '#f7923b' ,
298
300
'--color-selected-tree-highlight-active' : 'rgba(23, 143, 185, 0.15)' ,
@@ -307,12 +309,18 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any} = {
307
309
'--color-toggle-background-on' : '#178fb9' ,
308
310
'--color-toggle-background-off' : '#777d88' ,
309
311
'--color-toggle-text' : '#ffffff' ,
310
- '--color-tooltip-background' : 'rgba(255, 255, 255, 0.95)' ,
311
- '--color-tooltip-text' : '#000000' ,
312
312
'--color-warning-background' : '#ee1638' ,
313
313
'--color-warning-background-hover' : '#da1030' ,
314
314
'--color-warning-text-color' : '#ffffff' ,
315
315
'--color-warning-text-color-inverted' : '#ee1638' ,
316
+
317
+ // The styles below should be kept in sync with 'root.css'
318
+ // They are repeated there because they're used by e.g. tooltips or context menus
319
+ // which get rendered outside of the DOM subtree (where normal theme/styles are written).
320
+ '--color-scroll-thumb' : '#afb3b9' ,
321
+ '--color-scroll-track' : '#313640' ,
322
+ '--color-tooltip-background' : 'rgba(255, 255, 255, 0.95)' ,
323
+ '--color-tooltip-text' : '#000000' ,
316
324
} ,
317
325
compact : {
318
326
'--font-size-monospace-small' : '9px' ,
0 commit comments