提交 6ba3ce96 编写于 作者: M Miguel Solorio

Update lightbulb color token names

上级 86fa120c
......@@ -16,7 +16,7 @@ import * as nls from 'vs/nls';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
import { EditorOption } from 'vs/editor/common/config/editorOptions';
import { registerThemingParticipant, ITheme, ICssStyleCollector } from 'vs/platform/theme/common/themeService';
import { editorLightbulbIconForeground, editorLightbulbAutoFixIconForeground } from 'vs/platform/theme/common/colorRegistry';
import { editorLightBulbForeground, editorLightBulbAutoFixForeground } from 'vs/platform/theme/common/colorRegistry';
namespace LightBulbState {
......@@ -205,22 +205,22 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
// Lightbulb Icon
const editorLightbulbIconForegroundColor = theme.getColor(editorLightbulbIconForeground);
if (editorLightbulbIconForegroundColor) {
const editorLightBulbForegroundColor = theme.getColor(editorLightBulbForeground);
if (editorLightBulbForegroundColor) {
collector.addRule(`
.monaco-workbench .contentWidgets .codicon-lightbulb,
.monaco-workbench .markers-panel-container .codicon-lightbulb {
color: ${editorLightbulbIconForegroundColor};
color: ${editorLightBulbForegroundColor};
}`);
}
// Lightbulb Auto Fix Icon
const editorLightbulbAutoFixIconForegroundColor = theme.getColor(editorLightbulbAutoFixIconForeground);
if (editorLightbulbAutoFixIconForegroundColor) {
const editorLightBulbAutoFixForegroundColor = theme.getColor(editorLightBulbAutoFixForeground);
if (editorLightBulbAutoFixForegroundColor) {
collector.addRule(`
.monaco-workbench .contentWidgets .codicon-lightbulb-autofix,
.monaco-workbench .markers-panel-container .codicon-lightbulb-autofix {
color: ${editorLightbulbAutoFixIconForegroundColor};
color: ${editorLightBulbAutoFixForegroundColor};
}`);
}
......
......@@ -341,8 +341,8 @@ export const editorActiveLinkForeground = registerColor('editorLink.activeForegr
/**
* Editor lighbulb icon colors
*/
export const editorLightbulbIconForeground = registerColor('editor.lightbulbIcon.foreground', { dark: '#FFCC00', light: '#DDB100', hc: '#FFCC00' }, nls.localize('editorLightbulbIconForeground', "The color used for the lightbulb actions icon."));
export const editorLightbulbAutoFixIconForeground = registerColor('editor.lightbulbAutoFixIcon.foreground', { dark: '#75BEFF', light: '#007ACC', hc: '#75BEFF' }, nls.localize('editorLightbulbAutoFixIconForeground', "The color used for the lightbulb auto fix actions icon."));
export const editorLightBulbForeground = registerColor('editorLightBulb.foreground', { dark: '#FFCC00', light: '#DDB100', hc: '#FFCC00' }, nls.localize('editorLightBulbForeground', "The color used for the lightbulb actions icon."));
export const editorLightBulbAutoFixForeground = registerColor('editorLightBulbAutoFix.foreground', { dark: '#75BEFF', light: '#007ACC', hc: '#75BEFF' }, nls.localize('editorLightBulbAutoFixForeground', "The color used for the lightbulb auto fix actions icon."));
/**
* Diff Editor Colors
......@@ -502,6 +502,3 @@ colorRegistry.onDidChangeSchema(() => {
});
// setTimeout(_ => console.log(colorRegistry.toString()), 5000);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册