From b49fc606c5eed59f5d62cae29ee4e90eddb0835e Mon Sep 17 00:00:00 2001 From: Aiday Marlen Kyzy Date: Wed, 29 Nov 2023 16:07:41 +0100 Subject: [PATCH] definining a new color for the lightbulb ai icon --- build/lib/stylelint/vscode-known-variables.json | 3 ++- src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css | 3 +-- src/vs/platform/theme/common/colorRegistry.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/lib/stylelint/vscode-known-variables.json b/build/lib/stylelint/vscode-known-variables.json index eec7669daab..631e829180a 100644 --- a/build/lib/stylelint/vscode-known-variables.json +++ b/build/lib/stylelint/vscode-known-variables.json @@ -241,6 +241,7 @@ "--vscode-editorInlayHint-typeBackground", "--vscode-editorInlayHint-typeForeground", "--vscode-editorLightBulb-foreground", + "--vscode-editorLightBulbAi-foreground", "--vscode-editorLightBulbAutoFix-foreground", "--vscode-editorLineNumber-activeForeground", "--vscode-editorLineNumber-dimmedForeground", @@ -794,4 +795,4 @@ "--zoom-factor", "--test-bar-width" ] -} +} \ No newline at end of file diff --git a/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css b/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css index 796a1d32593..ea05c8574b7 100644 --- a/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css +++ b/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css @@ -24,8 +24,7 @@ } .monaco-editor .lightBulbWidget.codicon-sparkle-filled { - color: var(--vscode-icon-foreground); - opacity: 0.5; + color: var(--vscode-editorLightBulbAi-foreground, var(--vscode-icon-foreground)); } .monaco-editor .lightBulbWidget:before { diff --git a/src/vs/platform/theme/common/colorRegistry.ts b/src/vs/platform/theme/common/colorRegistry.ts index 0e7bff49be4..6f35f2c70a6 100644 --- a/src/vs/platform/theme/common/colorRegistry.ts +++ b/src/vs/platform/theme/common/colorRegistry.ts @@ -400,6 +400,7 @@ export const editorInlayHintParameterBackground = registerColor('editorInlayHint */ export const editorLightBulbForeground = registerColor('editorLightBulb.foreground', { dark: '#FFCC00', light: '#DDB100', hcDark: '#FFCC00', hcLight: '#007ACC' }, nls.localize('editorLightBulbForeground', "The color used for the lightbulb actions icon.")); export const editorLightBulbAutoFixForeground = registerColor('editorLightBulbAutoFix.foreground', { dark: '#75BEFF', light: '#007ACC', hcDark: '#75BEFF', hcLight: '#007ACC' }, nls.localize('editorLightBulbAutoFixForeground', "The color used for the lightbulb auto fix actions icon.")); +export const editorLightBulbAiForeground = registerColor('editorLightBulbAi.foreground', { dark: darken(iconForeground, 0.4), light: lighten(iconForeground, 1.7), hcDark: iconForeground, hcLight: iconForeground }, nls.localize('editorLightBulbAiForeground', "The color used for the lightbulb AI icon.")); /** * Diff Editor Colors