Skip to content

Commit a3231fc

Browse files
authored
Update inlay hint colors (microsoft#186658)
* Update inlay hints colors * Update new themes
1 parent 6314fae commit a3231fc

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

extensions/theme-defaults/themes/dark_modern.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@
4040
"editorGutter.addedBackground": "#2ea043",
4141
"editorGutter.deletedBackground": "#f85149",
4242
"editorGutter.modifiedBackground": "#0078d4",
43-
"editorInlayHint.background": "#8b949e33",
44-
"editorInlayHint.foreground": "#8b949e",
45-
"editorInlayHint.typeBackground": "#8b949e33",
46-
"editorInlayHint.typeForeground": "#8b949e",
43+
"editorInlayHint.background": "#8b949e1b",
44+
"editorInlayHint.typeBackground": "#8b949e1b",
4745
"editorLineNumber.activeForeground": "#cccccc",
4846
"editorLineNumber.foreground": "#6e7681",
4947
"editorOverviewRuler.border": "#010409",

extensions/theme-defaults/themes/light_modern.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
"editorGutter.deletedBackground": "#f85149",
4242
"editorGutter.modifiedBackground": "#005FB8",
4343
"editorIndentGuide.background": "#D3D3D3",
44-
"editorInlayHint.background": "#8b949e33",
45-
"editorInlayHint.foreground": "#8b949e",
46-
"editorInlayHint.typeBackground": "#8b949e33",
47-
"editorInlayHint.typeForeground": "#8b949e",
44+
"editorInlayHint.background": "#8b949e1b",
45+
"editorInlayHint.typeBackground": "#8b949e1b",
4846
"editorLineNumber.activeForeground": "#171184",
4947
"editorLineNumber.foreground": "#6e7681",
5048
"editorOverviewRuler.border": "#0000001a",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ export const editorActiveLinkForeground = registerColor('editorLink.activeForegr
387387
/**
388388
* Inline hints
389389
*/
390-
export const editorInlayHintForeground = registerColor('editorInlayHint.foreground', { dark: badgeForeground, light: badgeForeground, hcDark: Color.black, hcLight: badgeForeground }, nls.localize('editorInlayHintForeground', 'Foreground color of inline hints'));
391-
export const editorInlayHintBackground = registerColor('editorInlayHint.background', { dark: transparent(badgeBackground, .8), light: transparent(badgeBackground, .6), hcDark: '#f38518', hcLight: badgeBackground }, nls.localize('editorInlayHintBackground', 'Background color of inline hints'));
390+
export const editorInlayHintForeground = registerColor('editorInlayHint.foreground', { dark: foreground, light: foreground, hcDark: Color.black, hcLight: badgeForeground }, nls.localize('editorInlayHintForeground', 'Foreground color of inline hints'));
391+
export const editorInlayHintBackground = registerColor('editorInlayHint.background', { dark: transparent(badgeBackground, .25), light: transparent(badgeBackground, .3), hcDark: '#f38518', hcLight: badgeBackground }, nls.localize('editorInlayHintBackground', 'Background color of inline hints'));
392392
export const editorInlayHintTypeForeground = registerColor('editorInlayHint.typeForeground', { dark: editorInlayHintForeground, light: editorInlayHintForeground, hcDark: editorInlayHintForeground, hcLight: editorInlayHintForeground }, nls.localize('editorInlayHintForegroundTypes', 'Foreground color of inline hints for types'));
393393
export const editorInlayHintTypeBackground = registerColor('editorInlayHint.typeBackground', { dark: editorInlayHintBackground, light: editorInlayHintBackground, hcDark: editorInlayHintBackground, hcLight: editorInlayHintBackground }, nls.localize('editorInlayHintBackgroundTypes', 'Background color of inline hints for types'));
394394
export const editorInlayHintParameterForeground = registerColor('editorInlayHint.parameterForeground', { dark: editorInlayHintForeground, light: editorInlayHintForeground, hcDark: editorInlayHintForeground, hcLight: editorInlayHintForeground }, nls.localize('editorInlayHintForegroundParameter', 'Foreground color of inline hints for parameters'));

0 commit comments

Comments
 (0)