提交 7e4dc211 编写于 作者: M Martin Aeschlimann

[theme] code lens color name fix

上级 96fc37f8
...@@ -19,8 +19,7 @@ export const editorWhitespaces = registerColor('editorWhitespace.foreground', { ...@@ -19,8 +19,7 @@ export const editorWhitespaces = registerColor('editorWhitespace.foreground', {
export const editorIndentGuides = registerColor('editorIndentGuide.background', { dark: editorWhitespaces, light: editorWhitespaces, hc: editorWhitespaces }, nls.localize('editorIndentGuides', 'Color of the editor indentation guides.')); export const editorIndentGuides = registerColor('editorIndentGuide.background', { dark: editorWhitespaces, light: editorWhitespaces, hc: editorWhitespaces }, nls.localize('editorIndentGuides', 'Color of the editor indentation guides.'));
export const editorLineNumbers = registerColor('editorLineNumber.foreground', { dark: '#5A5A5A', light: '#2B91AF', hc: Color.white }, nls.localize('editorLineNumbers', 'Color of editor line numbers.')); export const editorLineNumbers = registerColor('editorLineNumber.foreground', { dark: '#5A5A5A', light: '#2B91AF', hc: Color.white }, nls.localize('editorLineNumbers', 'Color of editor line numbers.'));
export const editorCodeLenseForeground = registerColor('editorCodeLense.foreground', { dark: '#999999', light: '#999999', hc: '#999999' }, nls.localize('editorCodeLenseForeground', 'Foreground color of editor code lenses')); export const editorCodeLensForeground = registerColor('editorCodeLens.foreground', { dark: '#999999', light: '#999999', hc: '#999999' }, nls.localize('editorCodeLensForeground', 'Foreground color of editor code lenses'));
// contains all color rules that used to defined in editor/browser/widget/editor.css // contains all color rules that used to defined in editor/browser/widget/editor.css
registerThemingParticipant((theme, collector) => { registerThemingParticipant((theme, collector) => {
......
...@@ -22,7 +22,7 @@ import * as editorBrowser from 'vs/editor/browser/editorBrowser'; ...@@ -22,7 +22,7 @@ import * as editorBrowser from 'vs/editor/browser/editorBrowser';
import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions'; import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions';
import { ICodeLensData, getCodeLensData } from '../common/codelens'; import { ICodeLensData, getCodeLensData } from '../common/codelens';
import { IConfigurationChangedEvent } from 'vs/editor/common/config/editorOptions'; import { IConfigurationChangedEvent } from 'vs/editor/common/config/editorOptions';
import { editorCodeLenseForeground } from "vs/editor/common/view/editorColorRegistry"; import { editorCodeLensForeground } from "vs/editor/common/view/editorColorRegistry";
import { registerThemingParticipant } from "vs/platform/theme/common/themeService"; import { registerThemingParticipant } from "vs/platform/theme/common/themeService";
import { editorActiveLinkForeground } from "vs/platform/theme/common/colorRegistry"; import { editorActiveLinkForeground } from "vs/platform/theme/common/colorRegistry";
...@@ -628,9 +628,9 @@ export class CodeLensContribution implements editorCommon.IEditorContribution { ...@@ -628,9 +628,9 @@ export class CodeLensContribution implements editorCommon.IEditorContribution {
} }
registerThemingParticipant((theme, collector) => { registerThemingParticipant((theme, collector) => {
let codeLenseForeground = theme.getColor(editorCodeLenseForeground); let codeLensForeground = theme.getColor(editorCodeLensForeground);
if (codeLenseForeground) { if (codeLensForeground) {
collector.addRule(`.monaco-editor .codelens-decoration { color: ${codeLenseForeground}; }`); collector.addRule(`.monaco-editor .codelens-decoration { color: ${codeLensForeground}; }`);
} }
let activeLinkForeground = theme.getColor(editorActiveLinkForeground); let activeLinkForeground = theme.getColor(editorActiveLinkForeground);
if (activeLinkForeground) { if (activeLinkForeground) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册