提交 a3022cf2 编写于 作者: M Martin Aeschlimann

Apply foreground color (for #25519)

上级 e0c7428d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
import nls = require('vs/nls'); import nls = require('vs/nls');
import { registerColor, editorBackground, activeContrastBorder } from 'vs/platform/theme/common/colorRegistry'; import { registerColor, editorBackground, activeContrastBorder, editorForeground } from 'vs/platform/theme/common/colorRegistry';
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService'; import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
import { Color } from 'vs/base/common/color'; import { Color } from 'vs/base/common/color';
...@@ -27,6 +27,10 @@ registerThemingParticipant((theme, collector) => { ...@@ -27,6 +27,10 @@ registerThemingParticipant((theme, collector) => {
if (background) { if (background) {
collector.addRule(`.monaco-editor.${theme.selector} .monaco-editor-background { background-color: ${background}; }`); collector.addRule(`.monaco-editor.${theme.selector} .monaco-editor-background { background-color: ${background}; }`);
} }
let foreground = theme.getColor(editorForeground);
if (foreground) {
collector.addRule(`.monaco-editor.${theme.selector}, .monaco-editor.${theme.selector} .inputarea { color: ${foreground}; }`);
}
let rangeHighlight = theme.getColor(editorRangeHighlight); let rangeHighlight = theme.getColor(editorRangeHighlight);
if (rangeHighlight) { if (rangeHighlight) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册