Skip to content

Commit 6ba3ce9

Browse files
author
Miguel Solorio
committed
Update lightbulb color token names
1 parent 86fa120 commit 6ba3ce9

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/vs/editor/contrib/codeAction/lightBulbWidget.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as nls from 'vs/nls';
1616
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
1717
import { EditorOption } from 'vs/editor/common/config/editorOptions';
1818
import { registerThemingParticipant, ITheme, ICssStyleCollector } from 'vs/platform/theme/common/themeService';
19-
import { editorLightbulbIconForeground, editorLightbulbAutoFixIconForeground } from 'vs/platform/theme/common/colorRegistry';
19+
import { editorLightBulbForeground, editorLightBulbAutoFixForeground } from 'vs/platform/theme/common/colorRegistry';
2020

2121
namespace LightBulbState {
2222

@@ -205,22 +205,22 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
205205
registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
206206

207207
// Lightbulb Icon
208-
const editorLightbulbIconForegroundColor = theme.getColor(editorLightbulbIconForeground);
209-
if (editorLightbulbIconForegroundColor) {
208+
const editorLightBulbForegroundColor = theme.getColor(editorLightBulbForeground);
209+
if (editorLightBulbForegroundColor) {
210210
collector.addRule(`
211211
.monaco-workbench .contentWidgets .codicon-lightbulb,
212212
.monaco-workbench .markers-panel-container .codicon-lightbulb {
213-
color: ${editorLightbulbIconForegroundColor};
213+
color: ${editorLightBulbForegroundColor};
214214
}`);
215215
}
216216

217217
// Lightbulb Auto Fix Icon
218-
const editorLightbulbAutoFixIconForegroundColor = theme.getColor(editorLightbulbAutoFixIconForeground);
219-
if (editorLightbulbAutoFixIconForegroundColor) {
218+
const editorLightBulbAutoFixForegroundColor = theme.getColor(editorLightBulbAutoFixForeground);
219+
if (editorLightBulbAutoFixForegroundColor) {
220220
collector.addRule(`
221221
.monaco-workbench .contentWidgets .codicon-lightbulb-autofix,
222222
.monaco-workbench .markers-panel-container .codicon-lightbulb-autofix {
223-
color: ${editorLightbulbAutoFixIconForegroundColor};
223+
color: ${editorLightBulbAutoFixForegroundColor};
224224
}`);
225225
}
226226

src/vs/platform/theme/common/colorRegistry.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ export const editorActiveLinkForeground = registerColor('editorLink.activeForegr
341341
/**
342342
* Editor lighbulb icon colors
343343
*/
344-
export const editorLightbulbIconForeground = registerColor('editor.lightbulbIcon.foreground', { dark: '#FFCC00', light: '#DDB100', hc: '#FFCC00' }, nls.localize('editorLightbulbIconForeground', "The color used for the lightbulb actions icon."));
345-
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."));
344+
export const editorLightBulbForeground = registerColor('editorLightBulb.foreground', { dark: '#FFCC00', light: '#DDB100', hc: '#FFCC00' }, nls.localize('editorLightBulbForeground', "The color used for the lightbulb actions icon."));
345+
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."));
346346

347347
/**
348348
* Diff Editor Colors
@@ -502,6 +502,3 @@ colorRegistry.onDidChangeSchema(() => {
502502
});
503503

504504
// setTimeout(_ => console.log(colorRegistry.toString()), 5000);
505-
506-
507-

0 commit comments

Comments
 (0)