Skip to content

Commit a3022cf

Browse files
committed
Apply foreground color (for microsoft#25519)
1 parent e0c7428 commit a3022cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/vs/editor/common/view/editorColorRegistry.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import nls = require('vs/nls');
7-
import { registerColor, editorBackground, activeContrastBorder } from 'vs/platform/theme/common/colorRegistry';
7+
import { registerColor, editorBackground, activeContrastBorder, editorForeground } from 'vs/platform/theme/common/colorRegistry';
88
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
99
import { Color } from 'vs/base/common/color';
1010

@@ -27,6 +27,10 @@ registerThemingParticipant((theme, collector) => {
2727
if (background) {
2828
collector.addRule(`.monaco-editor.${theme.selector} .monaco-editor-background { background-color: ${background}; }`);
2929
}
30+
let foreground = theme.getColor(editorForeground);
31+
if (foreground) {
32+
collector.addRule(`.monaco-editor.${theme.selector}, .monaco-editor.${theme.selector} .inputarea { color: ${foreground}; }`);
33+
}
3034

3135
let rangeHighlight = theme.getColor(editorRangeHighlight);
3236
if (rangeHighlight) {

0 commit comments

Comments
 (0)