Skip to content

Commit 2efa7b2

Browse files
authored
Fix plot colors (#1988)
* Change up config theme * Replace domainColor with titleColor * Add cell.stroke = foregroundColor
1 parent 12e25d3 commit 2efa7b2

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed
Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { 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)'
54
const backgroundColor = 'var(--vscode-editor-foreground-transparency-1)'
65
const font = 'var(--vscode-editor-font-family)'
76
const fontWeight = 'normal' as FontWeight
87

98
const 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
}

0 commit comments

Comments
 (0)