Skip to content

Commit 2f0f8d8

Browse files
fix: fix monaco editor colors after Clockface 3 release (#3177)
1 parent 4b165ae commit 2f0f8d8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/external/monaco.flux.theme.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {MonacoType} from 'src/types'
2+
import {InfluxColors} from '@influxdata/clockface'
23

34
const THEME_NAME = 'baseTheme'
45

@@ -55,8 +56,8 @@ function addTheme(monaco: MonacoType) {
5556
],
5657
colors: {
5758
'editor.foreground': '#F8F8F8',
58-
'editor.background': '#202028',
59-
'editorGutter.background': '#25252e',
59+
'editor.background': InfluxColors.Grey15,
60+
'editorGutter.background': InfluxColors.Grey15,
6061
'editor.selectionBackground': '#353640',
6162
'editorLineNumber.foreground': '#666978',
6263
'editor.lineHighlightBackground': '#353640',

src/shared/components/FluxMonacoEditor.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
}
1414

1515
.minimap {
16-
border-left: 2px solid #25252e;
16+
border-left: 2px solid #4d4d60;
17+
18+
.minimap-decorations-layer {
19+
background-color: #1a1a2a;
20+
}
1721

1822
.minimap-slider {
1923
background: rgba(53, 54, 64, 0.4);
@@ -39,10 +43,6 @@
3943
box-shadow: #1b1b1b 0 6px 6px -6px inset;
4044
}
4145

42-
.margin {
43-
background: #25252e;
44-
}
45-
4646
.current-line ~ .line-numbers {
4747
color: #bec2cc;
4848
}

0 commit comments

Comments
 (0)