File tree Expand file tree Collapse file tree 1 file changed +10
-25
lines changed
webview/src/plots/components Expand file tree Collapse file tree 1 file changed +10
-25
lines changed Original file line number Diff line number Diff line change 11import { Config , FontWeight } from 'vega'
2- import { getThemeValue , ThemeProperty } from '../../util/styles'
32
4- const foregroundColor = getThemeValue ( ThemeProperty . FOREGROUND_COLOR )
3+ const foregroundColor = 'var(--vscode-editor-foreground)'
54const backgroundColor = 'var(--vscode-editor-foreground-transparency-1)'
65const font = 'var(--vscode-editor-font-family)'
76const fontWeight = 'normal' as FontWeight
87
98const title = {
9+ fill : foregroundColor ,
1010 font,
1111 fontSize : 12 ,
1212 fontWeight
@@ -17,42 +17,27 @@ export const config: Config = {
1717 domain : false ,
1818 gridColor : foregroundColor ,
1919 gridOpacity : 0.25 ,
20- labelAngle : 0 ,
2120 tickColor : foregroundColor ,
2221 titleColor : foregroundColor ,
2322 titlePadding : 15
2423 } ,
2524 background : backgroundColor ,
26- mark : {
27- stroke : foregroundColor
28- } ,
25+
2926 padding : 20 ,
30- rule : {
31- stroke : foregroundColor
32- } ,
3327 style : {
3428 cell : {
3529 stroke : foregroundColor
3630 } ,
37- 'group-title' : {
38- fill : foregroundColor ,
39- stroke : foregroundColor ,
40- ...title
41- } ,
31+ 'group-title' : title ,
4232 'guide-label' : {
4333 fill : foregroundColor ,
4434 font,
45- fontWeight,
46- stroke : foregroundColor
35+ fontWeight
4736 } ,
48- 'guide-title' : {
49- fill : foregroundColor ,
50- stroke : foregroundColor ,
51- ...title
52- } ,
53- rule : {
54- fill : foregroundColor ,
55- stroke : foregroundColor
56- }
37+ 'guide-title' : title
38+ } ,
39+ title : {
40+ color : foregroundColor ,
41+ subtitleColor : foregroundColor
5742 }
5843}
You can’t perform that action at this time.
0 commit comments