@opensumi/ide-theme 2.21.13 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/lib/browser/icon-theme-data.js.map +1 -1
  2. package/lib/browser/icon-theme-store.js.map +1 -1
  3. package/lib/browser/icon.service.d.ts +3 -1
  4. package/lib/browser/icon.service.d.ts.map +1 -1
  5. package/lib/browser/icon.service.js +56 -24
  6. package/lib/browser/icon.service.js.map +1 -1
  7. package/lib/browser/index.js.map +1 -1
  8. package/lib/browser/semantic-tokens-registry.js.map +1 -1
  9. package/lib/browser/style.service.js.map +1 -1
  10. package/lib/browser/theme-data.js +7 -7
  11. package/lib/browser/theme-data.js.map +1 -1
  12. package/lib/browser/theme-store.js.map +1 -1
  13. package/lib/browser/theme.contribution.js +3 -3
  14. package/lib/browser/theme.contribution.js.map +1 -1
  15. package/lib/browser/workbench.theme.service.js +2 -2
  16. package/lib/browser/workbench.theme.service.js.map +1 -1
  17. package/lib/common/color-tokens/basic-color.d.ts +1 -1
  18. package/lib/common/color-tokens/basic-color.d.ts.map +1 -1
  19. package/lib/common/color-tokens/editor.d.ts +13 -0
  20. package/lib/common/color-tokens/editor.d.ts.map +1 -1
  21. package/lib/common/color-tokens/editor.js +35 -1
  22. package/lib/common/color-tokens/editor.js.map +1 -1
  23. package/lib/common/color.js +40 -40
  24. package/lib/common/color.js.map +1 -1
  25. package/lib/common/mocks/theme.service.js.map +1 -1
  26. package/lib/common/plistParser.js +40 -40
  27. package/lib/common/plistParser.js.map +1 -1
  28. package/lib/common/semantic-tokens-registry.d.ts +7 -7
  29. package/lib/common/semantic-tokens-registry.d.ts.map +1 -1
  30. package/lib/common/theme.service.d.ts +26 -6
  31. package/lib/common/theme.service.d.ts.map +1 -1
  32. package/lib/common/theme.service.js.map +1 -1
  33. package/package.json +11 -10
  34. package/src/browser/default-theme.ts +547 -0
  35. package/src/browser/icon-theme-data.ts +294 -0
  36. package/src/browser/icon-theme-store.ts +38 -0
  37. package/src/browser/icon.less +15 -0
  38. package/src/browser/icon.service.ts +457 -0
  39. package/src/browser/index.ts +45 -0
  40. package/src/browser/semantic-tokens-registry.ts +217 -0
  41. package/src/browser/style.service.ts +51 -0
  42. package/src/browser/theme-data.ts +719 -0
  43. package/src/browser/theme-store.ts +95 -0
  44. package/src/browser/theme.contribution.ts +343 -0
  45. package/src/browser/workbench.theme.service.ts +703 -0
  46. package/src/common/color-registry.ts +52 -0
  47. package/src/common/color-tokens/activity-bar.ts +122 -0
  48. package/src/common/color-tokens/badge.ts +31 -0
  49. package/src/common/color-tokens/base.ts +90 -0
  50. package/src/common/color-tokens/basic-color.ts +9 -0
  51. package/src/common/color-tokens/breadcrumb.ts +60 -0
  52. package/src/common/color-tokens/button.ts +69 -0
  53. package/src/common/color-tokens/charts.ts +68 -0
  54. package/src/common/color-tokens/checkbox.ts +23 -0
  55. package/src/common/color-tokens/custom/actionbar.ts +51 -0
  56. package/src/common/color-tokens/custom/activity-bar.ts +16 -0
  57. package/src/common/color-tokens/custom/badge.ts +30 -0
  58. package/src/common/color-tokens/custom/base.ts +111 -0
  59. package/src/common/color-tokens/custom/button.ts +359 -0
  60. package/src/common/color-tokens/custom/checkbox.ts +36 -0
  61. package/src/common/color-tokens/custom/decoration.ts +71 -0
  62. package/src/common/color-tokens/custom/editor.ts +27 -0
  63. package/src/common/color-tokens/custom/extension.ts +9 -0
  64. package/src/common/color-tokens/custom/icon.ts +30 -0
  65. package/src/common/color-tokens/custom/index.ts +26 -0
  66. package/src/common/color-tokens/custom/input.ts +48 -0
  67. package/src/common/color-tokens/custom/menu.ts +61 -0
  68. package/src/common/color-tokens/custom/modal.ts +57 -0
  69. package/src/common/color-tokens/custom/notification.ts +16 -0
  70. package/src/common/color-tokens/custom/panel.ts +112 -0
  71. package/src/common/color-tokens/custom/popover.ts +28 -0
  72. package/src/common/color-tokens/custom/select.ts +155 -0
  73. package/src/common/color-tokens/custom/settings.ts +32 -0
  74. package/src/common/color-tokens/custom/statusbar.ts +16 -0
  75. package/src/common/color-tokens/custom/tab.ts +31 -0
  76. package/src/common/color-tokens/custom/tooltip.ts +55 -0
  77. package/src/common/color-tokens/custom/tree.ts +106 -0
  78. package/src/common/color-tokens/debug.ts +103 -0
  79. package/src/common/color-tokens/debugToolbar.ts +134 -0
  80. package/src/common/color-tokens/dropdown.ts +27 -0
  81. package/src/common/color-tokens/editor.ts +945 -0
  82. package/src/common/color-tokens/index.ts +35 -0
  83. package/src/common/color-tokens/input.ts +105 -0
  84. package/src/common/color-tokens/list-tree.ts +205 -0
  85. package/src/common/color-tokens/menu-bar.ts +43 -0
  86. package/src/common/color-tokens/menu.ts +53 -0
  87. package/src/common/color-tokens/merge-conflict.ts +145 -0
  88. package/src/common/color-tokens/minimap.ts +99 -0
  89. package/src/common/color-tokens/notification.ts +169 -0
  90. package/src/common/color-tokens/panel.ts +177 -0
  91. package/src/common/color-tokens/pick-view.ts +96 -0
  92. package/src/common/color-tokens/picker.ts +15 -0
  93. package/src/common/color-tokens/progress-bar.ts +12 -0
  94. package/src/common/color-tokens/quick-input.ts +57 -0
  95. package/src/common/color-tokens/scrollbar.ts +42 -0
  96. package/src/common/color-tokens/settings.ts +126 -0
  97. package/src/common/color-tokens/sidebar.ts +121 -0
  98. package/src/common/color-tokens/snippet.ts +33 -0
  99. package/src/common/color-tokens/status-bar.ts +350 -0
  100. package/src/common/color-tokens/tab.ts +346 -0
  101. package/src/common/color-tokens/testing.ts +105 -0
  102. package/src/common/color-tokens/text.ts +41 -0
  103. package/src/common/color-tokens/title-bar.ts +62 -0
  104. package/src/common/color-tokens/toolbar.ts +28 -0
  105. package/src/common/color-tokens/welcome-page.ts +27 -0
  106. package/src/common/color.ts +647 -0
  107. package/src/common/default-themes.ts +273 -0
  108. package/src/common/event.ts +9 -0
  109. package/src/common/index.ts +8 -0
  110. package/src/common/mocks/theme.service.ts +55 -0
  111. package/src/common/plistParser.ts +525 -0
  112. package/src/common/semantic-tokens-registry.ts +439 -0
  113. package/src/common/style.ts +9 -0
  114. package/src/common/theme.service.ts +363 -0
  115. package/src/common/themeCompatibility.ts +95 -0
  116. package/src/common/utils.ts +195 -0
  117. package/src/index.ts +1 -0
@@ -0,0 +1,945 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color, RGBA } from '../../common/color';
4
+ import { registerColor, transparent, lighten, darken, lessProminent } from '../utils';
5
+
6
+ import { badgeBackground, badgeForeground } from './badge';
7
+ import { contrastBorder, activeContrastBorder, focusBorder, foreground } from './base';
8
+ import { listInactiveSelectionBackground } from './list-tree';
9
+
10
+ // TODO COLOR 此处vscode内的editor error warning info颜色都有做修改
11
+ export const editorErrorBackground = registerColor(
12
+ 'editorError.background',
13
+ { dark: null, light: null, hcDark: null, hcLight: null },
14
+ localize(
15
+ 'editorError.background',
16
+ 'Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations.',
17
+ ),
18
+ true,
19
+ );
20
+
21
+ export const editorErrorForeground = registerColor(
22
+ 'editorError.foreground',
23
+ { dark: '#F14C4C', light: '#E51400', hcDark: '#F48771', hcLight: '#B5200D' },
24
+ localize('editorError.foreground', 'Foreground color of error squigglies in the editor.'),
25
+ );
26
+ export const editorErrorBorder = registerColor(
27
+ 'editorError.border',
28
+ {
29
+ dark: null,
30
+ light: null,
31
+ hcDark: Color.fromHex('#E47777').transparent(0.8),
32
+ hcLight: '#B5200D',
33
+ },
34
+ localize('errorBorder', 'Border color of error boxes in the editor.'),
35
+ );
36
+ export const editorWarningBackground = registerColor(
37
+ 'editorWarning.background',
38
+ { dark: null, light: null, hcDark: null, hcLight: null },
39
+ localize(
40
+ 'editorWarning.background',
41
+ 'Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations.',
42
+ ),
43
+ true,
44
+ );
45
+
46
+ export const editorWarningForeground = registerColor(
47
+ 'editorWarning.foreground',
48
+ { dark: '#CCA700', light: '#BF8803', hcDark: '#FFD37', hcLight: '#895503' },
49
+ localize('editorWarning.foreground', 'Foreground color of warning squigglies in the editor.'),
50
+ );
51
+ export const editorWarningBorder = registerColor(
52
+ 'editorWarning.border',
53
+ {
54
+ dark: null,
55
+ light: null,
56
+ hcDark: Color.fromHex('#FFCC00').transparent(0.8),
57
+ hcLight: '#',
58
+ },
59
+ localize('warningBorder', 'Border color of warning boxes in the editor.'),
60
+ );
61
+
62
+ export const editorInfoForeground = registerColor(
63
+ 'editorInfo.foreground',
64
+ { dark: '#3794FF', light: '#1a85ff', hcDark: '#3794FF', hcLight: '#1a85ff' },
65
+ localize('editorInfo.foreground', 'Foreground color of info squigglies in the editor.'),
66
+ );
67
+ export const editorInfoBorder = registerColor(
68
+ 'editorInfo.border',
69
+ {
70
+ dark: null,
71
+ light: null,
72
+ hcDark: Color.fromHex('#3794FF').transparent(0.8),
73
+ hcLight: '#292929',
74
+ },
75
+ localize('infoBorder', 'Border color of info boxes in the editor.'),
76
+ );
77
+ export const editorInfoBackground = registerColor(
78
+ 'editorInfo.background',
79
+ { dark: null, light: null, hcDark: null, hcLight: null },
80
+ localize(
81
+ 'editorInfo.background',
82
+ 'Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations.',
83
+ ),
84
+ true,
85
+ );
86
+
87
+ export const editorHintForeground = registerColor(
88
+ 'editorHint.foreground',
89
+ { dark: Color.fromHex('#eeeeee').transparent(0.7), light: '#6c6c6c', hcDark: null, hcLight: null },
90
+ localize('editorHint.foreground', 'Foreground color of hint squigglies in the editor.'),
91
+ );
92
+ export const editorHintBorder = registerColor(
93
+ 'editorHint.border',
94
+ { dark: null, light: null, hcDark: Color.fromHex('#eeeeee').transparent(0.8), hcLight: '#292929' },
95
+ localize('hintBorder', 'Border color of hint boxes in the editor.'),
96
+ );
97
+
98
+ export const editorBackground = registerColor(
99
+ 'editor.background',
100
+ { light: '#ffffff', dark: '#1E1E1E', hcDark: Color.black, hcLight: Color.white },
101
+ localize('editorBackground', 'Editor background color.'),
102
+ );
103
+
104
+ /**
105
+ * Editor foreground color.
106
+ */
107
+ export const editorForeground = registerColor(
108
+ 'editor.foreground',
109
+ { light: '#333333', dark: '#BBBBBB', hcDark: Color.white, hcLight: foreground },
110
+ localize('editorForeground', 'Editor default foreground color.'),
111
+ );
112
+
113
+ /**
114
+ * Editor widgets
115
+ */
116
+ export const editorWidgetForeground = registerColor(
117
+ 'editorWidget.foreground',
118
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
119
+ localize('editorWidgetForeground', 'Foreground color of editor widgets, such as find/replace.'),
120
+ );
121
+ export const editorWidgetBackground = registerColor(
122
+ 'editorWidget.background',
123
+ { dark: '#252526', light: '#F3F3F3', hcDark: '#0C141F', hcLight: Color.white },
124
+ localize('editorWidgetBackground', 'Background color of editor widgets, such as find/replace.'),
125
+ );
126
+ export const editorWidgetBorder = registerColor(
127
+ 'editorWidget.border',
128
+ { dark: '#454545', light: '#C8C8C8', hcDark: contrastBorder, hcLight: contrastBorder },
129
+ localize(
130
+ 'editorWidgetBorder',
131
+ 'Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.',
132
+ ),
133
+ );
134
+
135
+ export const editorWidgetResizeBorder = registerColor(
136
+ 'editorWidget.resizeBorder',
137
+ { light: null, dark: null, hcDark: null, hcLight: null },
138
+ localize(
139
+ 'editorWidgetResizeBorder',
140
+ 'Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.',
141
+ ),
142
+ );
143
+
144
+ /**
145
+ * Editor selection colors.
146
+ */
147
+ export const editorSelectionBackground = registerColor(
148
+ 'editor.selectionBackground',
149
+ { light: '#ADD6FF', dark: '#264F78', hcDark: '#f3f518', hcLight: '#0F4A85' },
150
+ localize('editorSelectionBackground', 'Color of the editor selection.'),
151
+ );
152
+ export const editorSelectionForeground = registerColor(
153
+ 'editor.selectionForeground',
154
+ { light: null, dark: null, hcDark: '#000000', hcLight: Color.white },
155
+ localize('editorSelectionForeground', 'Color of the selected text for high contrast.'),
156
+ );
157
+ export const editorInactiveSelection = registerColor(
158
+ 'editor.inactiveSelectionBackground',
159
+ {
160
+ light: transparent(editorSelectionBackground, 0.5),
161
+ dark: transparent(editorSelectionBackground, 0.5),
162
+ hcDark: transparent(editorSelectionBackground, 0.7),
163
+ hcLight: transparent(editorSelectionBackground, 0.5),
164
+ },
165
+ localize(
166
+ 'editorInactiveSelection',
167
+ 'Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations.',
168
+ ),
169
+ true,
170
+ );
171
+ export const editorSelectionHighlight = registerColor(
172
+ 'editor.selectionHighlightBackground',
173
+ {
174
+ light: lessProminent(editorSelectionBackground, editorBackground, 0.3, 0.6),
175
+ dark: lessProminent(editorSelectionBackground, editorBackground, 0.3, 0.6),
176
+ hcDark: null,
177
+ hcLight: null,
178
+ },
179
+ localize(
180
+ 'editorSelectionHighlight',
181
+ 'Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations.',
182
+ ),
183
+ true,
184
+ );
185
+ export const editorSelectionHighlightBorder = registerColor(
186
+ 'editor.selectionHighlightBorder',
187
+ { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
188
+ localize('editorSelectionHighlightBorder', 'Border color for regions with the same content as the selection.'),
189
+ );
190
+
191
+ /**
192
+ * Editor find match colors.
193
+ */
194
+ export const editorFindMatch = registerColor(
195
+ 'editor.findMatchBackground',
196
+ { light: '#A8AC94', dark: '#515C6A', hcDark: null, hcLight: null },
197
+ localize('editorFindMatch', 'Color of the current search match.'),
198
+ );
199
+ export const editorFindMatchHighlight = registerColor(
200
+ 'editor.findMatchHighlightBackground',
201
+ { light: '#EA5C0055', dark: '#EA5C0055', hcDark: '#EA5C0055', hcLight: '#EA5C0055' },
202
+ localize(
203
+ 'findMatchHighlight',
204
+ 'Color of the other search matches. The color must not be opaque so as not to hide underlying decorations.',
205
+ ),
206
+ true,
207
+ );
208
+ export const editorFindRangeHighlight = registerColor(
209
+ 'editor.findRangeHighlightBackground',
210
+ { dark: '#3a3d4166', light: '#b4b4b44d', hcDark: null, hcLight: null },
211
+ localize(
212
+ 'findRangeHighlight',
213
+ 'Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations.',
214
+ ),
215
+ true,
216
+ );
217
+ export const editorFindMatchBorder = registerColor(
218
+ 'editor.findMatchBorder',
219
+ { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
220
+ localize('editorFindMatchBorder', 'Border color of the current search match.'),
221
+ );
222
+ export const editorFindMatchHighlightBorder = registerColor(
223
+ 'editor.findMatchHighlightBorder',
224
+ { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
225
+ localize('findMatchHighlightBorder', 'Border color of the other search matches.'),
226
+ );
227
+ export const editorFindRangeHighlightBorder = registerColor(
228
+ 'editor.findRangeHighlightBorder',
229
+ {
230
+ dark: null,
231
+ light: null,
232
+ hcDark: transparent(activeContrastBorder, 0.4),
233
+ hcLight: transparent(activeContrastBorder, 0.4),
234
+ },
235
+ localize(
236
+ 'findRangeHighlightBorder',
237
+ 'Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations.',
238
+ ),
239
+ true,
240
+ );
241
+ /**
242
+ * Search Editor query match colors.
243
+ *
244
+ * Distinct from normal editor find match to allow for better differentiation
245
+ */
246
+ export const searchEditorFindMatch = registerColor(
247
+ 'searchEditor.findMatchBackground',
248
+ {
249
+ light: transparent(editorFindMatchHighlight, 0.66),
250
+ dark: transparent(editorFindMatchHighlight, 0.66),
251
+ hcDark: editorFindMatchHighlight,
252
+ hcLight: editorFindMatchHighlight,
253
+ },
254
+ localize('searchEditor.queryMatch', 'Color of the Search Editor query matches.'),
255
+ );
256
+ export const searchEditorFindMatchBorder = registerColor(
257
+ 'searchEditor.findMatchBorder',
258
+ {
259
+ light: transparent(editorFindMatchHighlightBorder, 0.66),
260
+ dark: transparent(editorFindMatchHighlightBorder, 0.66),
261
+ hcDark: editorFindMatchHighlightBorder,
262
+ hcLight: editorFindMatchHighlightBorder,
263
+ },
264
+ localize('searchEditor.editorFindMatchBorder', 'Border color of the Search Editor query matches.'),
265
+ );
266
+
267
+ /**
268
+ * Editor hover
269
+ */
270
+ export const editorHoverHighlight = registerColor(
271
+ 'editor.hoverHighlightBackground',
272
+ { light: '#ADD6FF26', dark: '#264f7840', hcDark: '#ADD6FF26', hcLight: null },
273
+ localize(
274
+ 'hoverHighlight',
275
+ 'Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations.',
276
+ ),
277
+ true,
278
+ );
279
+ export const editorHoverBackground = registerColor(
280
+ 'editorHoverWidget.background',
281
+ {
282
+ light: editorWidgetBackground,
283
+ dark: editorWidgetBackground,
284
+ hcDark: editorWidgetBackground,
285
+ hcLight: editorWidgetBackground,
286
+ },
287
+ localize('hoverBackground', 'Background color of the editor hover.'),
288
+ );
289
+ export const editorHoverForeground = registerColor(
290
+ 'editorHoverWidget.foreground',
291
+ {
292
+ light: editorWidgetForeground,
293
+ dark: editorWidgetForeground,
294
+ hcDark: editorWidgetForeground,
295
+ hcLight: editorWidgetForeground,
296
+ },
297
+ localize('hoverForeground', 'Foreground color of the editor hover.'),
298
+ );
299
+
300
+ export const editorHoverBorder = registerColor(
301
+ 'editorHoverWidget.border',
302
+ { light: editorWidgetBorder, dark: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder },
303
+ localize('hoverBorder', 'Border color of the editor hover.'),
304
+ );
305
+ export const editorHoverStatusBarBackground = registerColor(
306
+ 'editorHoverWidget.statusBarBackground',
307
+ {
308
+ dark: lighten(editorHoverBackground, 0.2),
309
+ light: darken(editorHoverBackground, 0.05),
310
+ hcDark: editorWidgetBackground,
311
+ hcLight: editorWidgetBackground,
312
+ },
313
+ localize('statusBarBackground', 'Background color of the editor hover status bar.'),
314
+ );
315
+
316
+ /**
317
+ * Editor link colors
318
+ */
319
+ export const editorActiveLinkForeground = registerColor(
320
+ 'editorLink.activeForeground',
321
+ { dark: '#4E94CE', light: Color.blue, hcDark: Color.cyan, hcLight: '#292929' },
322
+ localize('activeLinkForeground', 'Color of active links.'),
323
+ );
324
+
325
+ /**
326
+ * Diff Editor Colors
327
+ */
328
+ export const defaultInsertColor = new Color(new RGBA(155, 185, 85, 0.2));
329
+ export const defaultRemoveColor = new Color(new RGBA(255, 0, 0, 0.2));
330
+ export const diffInserted = registerColor(
331
+ 'diffEditor.insertedTextBackground',
332
+ { dark: defaultInsertColor, light: defaultInsertColor, hcDark: null, hcLight: null },
333
+ localize(
334
+ 'diffEditorInserted',
335
+ 'Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations.',
336
+ ),
337
+ true,
338
+ );
339
+ export const diffRemoved = registerColor(
340
+ 'diffEditor.removedTextBackground',
341
+ { dark: '#ff000066', light: '#ff00004d', hcDark: null, hcLight: null },
342
+ localize(
343
+ 'diffEditorRemoved',
344
+ 'Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations.',
345
+ ),
346
+ true,
347
+ );
348
+
349
+ export const diffInsertedLine = registerColor(
350
+ 'diffEditor.insertedLineBackground',
351
+ { dark: defaultInsertColor, light: defaultInsertColor, hcDark: null, hcLight: null },
352
+ localize(
353
+ 'diffEditorInsertedLines',
354
+ 'Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations.',
355
+ ),
356
+ true,
357
+ );
358
+ export const diffRemovedLine = registerColor(
359
+ 'diffEditor.removedLineBackground',
360
+ { dark: defaultRemoveColor, light: defaultRemoveColor, hcDark: null, hcLight: null },
361
+ localize(
362
+ 'diffEditorRemovedLines',
363
+ 'Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations.',
364
+ ),
365
+ true,
366
+ );
367
+
368
+ export const diffInsertedLineGutter = registerColor(
369
+ 'diffEditorGutter.insertedLineBackground',
370
+ { dark: null, light: null, hcDark: null, hcLight: null },
371
+ localize('diffEditorInsertedLineGutter', 'Background color for the margin where lines got inserted.'),
372
+ );
373
+ export const diffRemovedLineGutter = registerColor(
374
+ 'diffEditorGutter.removedLineBackground',
375
+ { dark: null, light: null, hcDark: null, hcLight: null },
376
+ localize('diffEditorRemovedLineGutter', 'Background color for the margin where lines got removed.'),
377
+ );
378
+
379
+ export const diffOverviewRulerInserted = registerColor(
380
+ 'diffEditorOverview.insertedForeground',
381
+ { dark: null, light: null, hcDark: null, hcLight: null },
382
+ localize('diffEditorOverviewInserted', 'Diff overview ruler foreground for inserted content.'),
383
+ );
384
+ export const diffOverviewRulerRemoved = registerColor(
385
+ 'diffEditorOverview.removedForeground',
386
+ { dark: null, light: null, hcDark: null, hcLight: null },
387
+ localize('diffEditorOverviewRemoved', 'Diff overview ruler foreground for removed content.'),
388
+ );
389
+
390
+ export const diffInsertedOutline = registerColor(
391
+ 'diffEditor.insertedTextBorder',
392
+ { dark: null, light: null, hcDark: '#33ff2eff', hcLight: '#374E06' },
393
+ localize('diffEditorInsertedOutline', 'Outline color for the text that got inserted.'),
394
+ );
395
+ export const diffRemovedOutline = registerColor(
396
+ 'diffEditor.removedTextBorder',
397
+ { dark: null, light: null, hcDark: '#FF008F', hcLight: '#AD0707' },
398
+ localize('diffEditorRemovedOutline', 'Outline color for text that got removed.'),
399
+ );
400
+
401
+ export const diffBorder = registerColor(
402
+ 'diffEditor.border',
403
+ { dark: null, light: null, hcDark: contrastBorder, hcLight: contrastBorder },
404
+ localize('diffEditorBorder', 'Border color between the two text editors.'),
405
+ );
406
+ export const diffDiagonalFill = registerColor(
407
+ 'diffEditor.diagonalFill',
408
+ { dark: '#cccccc33', light: '#22222233', hcDark: null, hcLight: null },
409
+ localize(
410
+ 'diffDiagonalFill',
411
+ "Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.",
412
+ ),
413
+ );
414
+
415
+ /**
416
+ * Merge Editor Colors
417
+ */
418
+ export const defaultMergeEditorInsertColor = new Color(new RGBA(122, 255, 31, 0.12));
419
+ export const defaultMergeEditorRemoveColor = new Color(new RGBA(255, 21, 33, 0.12));
420
+ export const defaultMergeEditorModifyColor = new Color(new RGBA(255, 186, 29, 0.12));
421
+ export const mergeEditorInserted = registerColor(
422
+ 'mergeEditor.insertedBackground',
423
+ { dark: defaultMergeEditorInsertColor, light: defaultMergeEditorInsertColor, hcDark: null, hcLight: null },
424
+ '',
425
+ true,
426
+ );
427
+ export const mergeEditorRemoved = registerColor(
428
+ 'mergeEditor.removedBackground',
429
+ { dark: defaultMergeEditorRemoveColor, light: defaultMergeEditorRemoveColor, hcDark: null, hcLight: null },
430
+ '',
431
+ true,
432
+ );
433
+ export const mergeEditorModify = registerColor(
434
+ 'mergeEditor.modifyBackground',
435
+ { dark: defaultMergeEditorModifyColor, light: defaultMergeEditorModifyColor, hcDark: null, hcLight: null },
436
+ '',
437
+ true,
438
+ );
439
+ export const mergeEditorInnerCharInserted = registerColor(
440
+ 'mergeEditor.insertedInnerCharColor',
441
+ {
442
+ dark: transparent(defaultMergeEditorInsertColor, 1),
443
+ light: transparent(defaultMergeEditorInsertColor, 1),
444
+ hcDark: null,
445
+ hcLight: null,
446
+ },
447
+ '',
448
+ true,
449
+ );
450
+ export const mergeEditorInnerCharRemoved = registerColor(
451
+ 'mergeEditor.removedInnerCharColor',
452
+ {
453
+ dark: transparent(defaultMergeEditorRemoveColor, 1),
454
+ light: transparent(defaultMergeEditorRemoveColor, 1),
455
+ hcDark: null,
456
+ hcLight: null,
457
+ },
458
+ '',
459
+ true,
460
+ );
461
+ export const mergeEditorInnerCharModify = registerColor(
462
+ 'mergeEditor.modifyInnerCharColor',
463
+ {
464
+ dark: transparent(defaultMergeEditorModifyColor, 1),
465
+ light: transparent(defaultMergeEditorModifyColor, 1),
466
+ hcDark: null,
467
+ hcLight: null,
468
+ },
469
+ '',
470
+ true,
471
+ );
472
+
473
+ /**
474
+ * Editor View Colors from editorColorRegistry
475
+ */
476
+ export const editorLineHighlight = registerColor(
477
+ 'editor.lineHighlightBackground',
478
+ { dark: null, light: null, hcDark: null, hcLight: null },
479
+ localize('lineHighlight', 'Background color for the highlight of line at the cursor position.'),
480
+ );
481
+ export const editorLineHighlightBorder = registerColor(
482
+ 'editor.lineHighlightBorder',
483
+ { dark: '#282828', light: '#eeeeee', hcDark: '#f38518', hcLight: contrastBorder },
484
+ localize('lineHighlightBorderBox', 'Background color for the border around the line at the cursor position.'),
485
+ );
486
+ export const editorRangeHighlight = registerColor(
487
+ 'editor.rangeHighlightBackground',
488
+ { dark: '#ffffff0b', light: '#fdff0033', hcDark: null, hcLight: null },
489
+ localize(
490
+ 'rangeHighlight',
491
+ 'Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations.',
492
+ ),
493
+ true,
494
+ );
495
+ export const editorRangeHighlightBorder = registerColor(
496
+ 'editor.rangeHighlightBorder',
497
+ { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
498
+ localize('rangeHighlightBorder', 'Background color of the border around highlighted ranges.'),
499
+ true,
500
+ );
501
+ export const editorSymbolHighlight = registerColor(
502
+ 'editor.symbolHighlightBackground',
503
+ { dark: editorFindMatchHighlight, light: editorFindMatchHighlight, hcDark: null, hcLight: null },
504
+ localize(
505
+ 'symbolHighlight',
506
+ 'Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations.',
507
+ ),
508
+ true,
509
+ );
510
+ export const editorSymbolHighlightBorder = registerColor(
511
+ 'editor.symbolHighlightBorder',
512
+ { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
513
+ localize('symbolHighlightBorder', 'Background color of the border around highlighted symbols.'),
514
+ true,
515
+ );
516
+
517
+ export const editorCursorForeground = registerColor(
518
+ 'editorCursor.foreground',
519
+ { dark: '#AEAFAD', light: Color.black, hcDark: Color.white, hcLight: '#0F4A85' },
520
+ localize('caret', 'Color of the editor cursor.'),
521
+ );
522
+ export const editorCursorBackground = registerColor(
523
+ 'editorCursor.background',
524
+ null,
525
+ localize(
526
+ 'editorCursorBackground',
527
+ 'The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.',
528
+ ),
529
+ );
530
+ export const editorWhitespaces = registerColor(
531
+ 'editorWhitespace.foreground',
532
+ { dark: '#e3e4e229', light: '#33333333', hcDark: '#e3e4e229', hcLight: '#CCCCCC' },
533
+ localize('editorWhitespaces', 'Color of whitespace characters in the editor.'),
534
+ );
535
+ export const editorIndentGuides = registerColor(
536
+ 'editorIndentGuide.background',
537
+ { dark: editorWhitespaces, light: editorWhitespaces, hcDark: editorWhitespaces, hcLight: editorWhitespaces },
538
+ localize('editorIndentGuides', 'Color of the editor indentation guides.'),
539
+ );
540
+ export const editorActiveIndentGuides = registerColor(
541
+ 'editorIndentGuide.activeBackground',
542
+ { dark: editorWhitespaces, light: editorWhitespaces, hcDark: editorWhitespaces, hcLight: editorWhitespaces },
543
+ localize('editorActiveIndentGuide', 'Color of the active editor indentation guides.'),
544
+ );
545
+ export const editorLineNumbers = registerColor(
546
+ 'editorLineNumber.foreground',
547
+ { dark: '#858585', light: '#237893', hcDark: Color.white, hcLight: '#292929' },
548
+ localize('editorLineNumbers', 'Color of editor line numbers.'),
549
+ );
550
+
551
+ const deprecatedEditorActiveLineNumber = registerColor(
552
+ 'editorActiveLineNumber.foreground',
553
+ { dark: '#c6c6c6', light: '#0B216F', hcDark: activeContrastBorder, hcLight: activeContrastBorder },
554
+ localize('editorActiveLineNumber', 'Color of editor active line number'),
555
+ false,
556
+ localize('deprecatedEditorActiveLineNumber', "Id is deprecated. Use 'editorLineNumber.activeForeground' instead."),
557
+ );
558
+ export const editorActiveLineNumber = registerColor(
559
+ 'editorLineNumber.activeForeground',
560
+ {
561
+ dark: deprecatedEditorActiveLineNumber,
562
+ light: deprecatedEditorActiveLineNumber,
563
+ hcDark: deprecatedEditorActiveLineNumber,
564
+ hcLight: deprecatedEditorActiveLineNumber,
565
+ },
566
+ localize('editorActiveLineNumber', 'Color of editor active line number'),
567
+ );
568
+
569
+ export const editorRuler = registerColor(
570
+ 'editorRuler.foreground',
571
+ { dark: '#5A5A5A', light: Color.lightgrey, hcDark: Color.white, hcLight: '#292929' },
572
+ localize('editorRuler', 'Color of the editor rulers.'),
573
+ );
574
+
575
+ export const editorCodeLensForeground = registerColor(
576
+ 'editorCodeLens.foreground',
577
+ { dark: '#999999', light: '#919191', hcDark: '#999999', hcLight: '#292929' },
578
+ localize('editorCodeLensForeground', 'Foreground color of editor CodeLens'),
579
+ );
580
+
581
+ export const editorBracketMatchBackground = registerColor(
582
+ 'editorBracketMatch.background',
583
+ { dark: '#0064001a', light: '#0064001a', hcDark: '#0064001a', hcLight: '#0000' },
584
+ localize('editorBracketMatchBackground', 'Background color behind matching brackets'),
585
+ );
586
+ export const editorBracketMatchBorder = registerColor(
587
+ 'editorBracketMatch.border',
588
+ { dark: '#888', light: '#B9B9B9', hcDark: contrastBorder, hcLight: contrastBorder },
589
+ localize('editorBracketMatchBorder', 'Color for matching brackets boxes'),
590
+ );
591
+
592
+ export const editorOverviewRulerBorder = registerColor(
593
+ 'editorOverviewRuler.border',
594
+ { dark: '#7f7f7f4d', light: '#7f7f7f4d', hcDark: '#7f7f7f4d', hcLight: '#666666' },
595
+ localize('editorOverviewRulerBorder', 'Color of the overview ruler border.'),
596
+ );
597
+ export const editorOverviewRulerBackground = registerColor(
598
+ 'editorOverviewRuler.background',
599
+ null,
600
+ localize(
601
+ 'editorOverviewRulerBackground',
602
+ 'Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.',
603
+ ),
604
+ );
605
+
606
+ export const editorGutter = registerColor(
607
+ 'editorGutter.background',
608
+ { dark: editorBackground, light: editorBackground, hcDark: editorBackground, hcLight: editorBackground },
609
+ localize(
610
+ 'editorGutter',
611
+ 'Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.',
612
+ ),
613
+ );
614
+ export const overviewRulerCommentingRangeForeground = registerColor(
615
+ 'editorGutter.commentRangeForeground',
616
+ {
617
+ dark: listInactiveSelectionBackground,
618
+ light: darken(listInactiveSelectionBackground, 0.05),
619
+ hcDark: Color.white,
620
+ hcLight: Color.black,
621
+ },
622
+ localize('editorGutterCommentRangeForeground', 'Editor gutter decoration color for commenting ranges.'),
623
+ );
624
+ export const editorUnnecessaryCodeBorder = registerColor(
625
+ 'editorUnnecessaryCode.border',
626
+ { dark: null, light: null, hcDark: Color.fromHex('#fff').transparent(0.8), hcLight: contrastBorder },
627
+ localize('unnecessaryCodeBorder', 'Border color of unnecessary (unused) source code in the editor.'),
628
+ );
629
+ export const editorUnnecessaryCodeOpacity = registerColor(
630
+ 'editorUnnecessaryCode.opacity',
631
+ { dark: Color.fromHex('#000a'), light: Color.fromHex('#0007'), hcDark: null, hcLight: null },
632
+ localize(
633
+ 'unnecessaryCodeOpacity',
634
+ 'Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the \'editorUnnecessaryCode.border\' theme color to underline unnecessary code instead of fading it out.',
635
+ ),
636
+ );
637
+
638
+ const rulerRangeDefault = new Color(new RGBA(0, 122, 204, 0.6));
639
+ export const overviewRulerRangeHighlight = registerColor(
640
+ 'editorOverviewRuler.rangeHighlightForeground',
641
+ { dark: rulerRangeDefault, light: rulerRangeDefault, hcDark: rulerRangeDefault, hcLight: rulerRangeDefault },
642
+ localize(
643
+ 'overviewRulerRangeHighlight',
644
+ 'Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations.',
645
+ ),
646
+ true,
647
+ );
648
+ export const overviewRulerError = registerColor(
649
+ 'editorOverviewRuler.errorForeground',
650
+ {
651
+ dark: new Color(new RGBA(255, 18, 18, 0.7)),
652
+ light: new Color(new RGBA(255, 18, 18, 0.7)),
653
+ hcDark: new Color(new RGBA(255, 50, 50, 1)),
654
+ hcLight: '#B5200D',
655
+ },
656
+ localize('overviewRuleError', 'Overview ruler marker color for errors.'),
657
+ );
658
+ export const overviewRulerWarning = registerColor(
659
+ 'editorOverviewRuler.warningForeground',
660
+ {
661
+ dark: editorWarningForeground,
662
+ light: editorWarningForeground,
663
+ hcDark: editorWarningBorder,
664
+ hcLight: editorWarningBorder,
665
+ },
666
+ localize('overviewRuleWarning', 'Overview ruler marker color for warnings.'),
667
+ );
668
+ export const overviewRulerInfo = registerColor(
669
+ 'editorOverviewRuler.infoForeground',
670
+ { dark: editorInfoForeground, light: editorInfoForeground, hcDark: editorInfoBorder, hcLight: editorInfoBorder },
671
+ localize('overviewRuleInfo', 'Overview ruler marker color for infos.'),
672
+ );
673
+
674
+ // < --- Editors --- >
675
+
676
+ export const EDITOR_PANE_BACKGROUND = registerColor(
677
+ 'editorPane.background',
678
+ {
679
+ dark: editorBackground,
680
+ light: editorBackground,
681
+ hcDark: editorBackground,
682
+ hcLight: editorBackground,
683
+ },
684
+ localize(
685
+ 'editorPaneBackground',
686
+ 'Background color of the editor pane visible on the left and right side of the centered editor layout.',
687
+ ),
688
+ );
689
+
690
+ export const EDITOR_GROUP_EMPTY_BACKGROUND = registerColor(
691
+ 'editorGroup.emptyBackground',
692
+ {
693
+ dark: null,
694
+ light: null,
695
+ hcDark: null,
696
+ hcLight: null,
697
+ },
698
+ localize(
699
+ 'editorGroupEmptyBackground',
700
+ 'Background color of an empty editor group. Editor groups are the containers of editors.',
701
+ ),
702
+ );
703
+
704
+ export const EDITOR_GROUP_FOCUSED_EMPTY_BORDER = registerColor(
705
+ 'editorGroup.focusedEmptyBorder',
706
+ {
707
+ dark: null,
708
+ light: null,
709
+ hcDark: focusBorder,
710
+ hcLight: focusBorder,
711
+ },
712
+ localize(
713
+ 'editorGroupFocusedEmptyBorder',
714
+ 'Border color of an empty editor group that is focused. Editor groups are the containers of editors.',
715
+ ),
716
+ );
717
+
718
+ export const EDITOR_GROUP_HEADER_TABS_BACKGROUND = registerColor(
719
+ 'editorGroupHeader.tabsBackground',
720
+ {
721
+ dark: '#252526',
722
+ light: '#F3F3F3',
723
+ hcDark: '#000000',
724
+ hcLight: '#ffffff',
725
+ },
726
+ localize(
727
+ 'tabsContainerBackground',
728
+ 'Background color of the editor group title header when tabs are enabled. Editor groups are the containers of editors.',
729
+ ),
730
+ );
731
+
732
+ export const EDITOR_GROUP_HEADER_TABS_BORDER = registerColor(
733
+ 'editorGroupHeader.tabsBorder',
734
+ {
735
+ dark: null,
736
+ light: null,
737
+ hcDark: null,
738
+ hcLight: null,
739
+ },
740
+ localize(
741
+ 'tabsContainerBorder',
742
+ 'Border color of the editor group title header when tabs are enabled. Editor groups are the containers of editors.',
743
+ ),
744
+ );
745
+
746
+ export const EDITOR_GROUP_HEADER_NO_TABS_BACKGROUND = registerColor(
747
+ 'editorGroupHeader.noTabsBackground',
748
+ {
749
+ dark: editorBackground,
750
+ light: editorBackground,
751
+ hcDark: editorBackground,
752
+ hcLight: editorBackground,
753
+ },
754
+ localize(
755
+ 'editorGroupHeaderBackground',
756
+ 'Background color of the editor group title header when tabs are disabled (`"workbench.editor.showTabs": false`). Editor groups are the containers of editors.',
757
+ ),
758
+ );
759
+
760
+ export const EDITOR_GROUP_HEADER_BORDER = registerColor(
761
+ 'editorGroupHeader.border',
762
+ {
763
+ dark: null,
764
+ light: null,
765
+ hcDark: contrastBorder,
766
+ hcLight: contrastBorder,
767
+ },
768
+ localize(
769
+ 'editorTitleContainerBorder',
770
+ 'Border color of the editor group title header. Editor groups are the containers of editors.',
771
+ ),
772
+ );
773
+
774
+ export const EDITOR_GROUP_BORDER = registerColor(
775
+ 'editorGroup.border',
776
+ {
777
+ dark: '#444444',
778
+ light: '#E7E7E7',
779
+ hcDark: contrastBorder,
780
+ hcLight: contrastBorder,
781
+ },
782
+ localize(
783
+ 'editorGroupBorder',
784
+ 'Color to separate multiple editor groups from each other. Editor groups are the containers of editors.',
785
+ ),
786
+ );
787
+
788
+ export const EDITOR_DRAG_AND_DROP_BACKGROUND = registerColor(
789
+ 'editorGroup.dropBackground',
790
+ {
791
+ dark: Color.fromHex('#53595D').transparent(0.5),
792
+ light: Color.fromHex('#2677CB').transparent(0.18),
793
+ hcDark: null,
794
+ hcLight: Color.fromHex('#0F4A85').transparent(0.5),
795
+ },
796
+ localize(
797
+ 'editorDragAndDropBackground',
798
+ 'Background color when dragging editors around. The color should have transparency so that the editor contents can still shine through.',
799
+ ),
800
+ );
801
+
802
+ export const EDITOR_DROP_INTO_PROMPT_FOREGROUND = registerColor(
803
+ 'editorGroup.dropIntoPromptForeground',
804
+ {
805
+ dark: editorWidgetForeground,
806
+ light: editorWidgetForeground,
807
+ hcDark: editorWidgetForeground,
808
+ hcLight: editorWidgetForeground,
809
+ },
810
+ localize(
811
+ 'editorDropIntoPromptForeground',
812
+ 'Foreground color of text shown over editors when dragging files. This text informs the user that they can hold shift to drop into the editor.',
813
+ ),
814
+ );
815
+
816
+ export const EDITOR_DROP_INTO_PROMPT_BACKGROUND = registerColor(
817
+ 'editorGroup.dropIntoPromptBackground',
818
+ {
819
+ dark: editorWidgetBackground,
820
+ light: editorWidgetBackground,
821
+ hcDark: editorWidgetBackground,
822
+ hcLight: editorWidgetBackground,
823
+ },
824
+ localize(
825
+ 'editorDropIntoPromptBackground',
826
+ 'Background color of text shown over editors when dragging files. This text informs the user that they can hold shift to drop into the editor.',
827
+ ),
828
+ );
829
+
830
+ export const EDITOR_DROP_INTO_PROMPT_BORDER = registerColor(
831
+ 'editorGroup.dropIntoPromptBorder',
832
+ {
833
+ dark: null,
834
+ light: null,
835
+ hcDark: contrastBorder,
836
+ hcLight: contrastBorder,
837
+ },
838
+ localize(
839
+ 'editorDropIntoPromptBorder',
840
+ 'Border color of text shown over editors when dragging files. This text informs the user that they can hold shift to drop into the editor.',
841
+ ),
842
+ );
843
+
844
+ export const SIDE_BY_SIDE_EDITOR_HORIZONTAL_BORDER = registerColor(
845
+ 'sideBySideEditor.horizontalBorder',
846
+ {
847
+ dark: EDITOR_GROUP_BORDER,
848
+ light: EDITOR_GROUP_BORDER,
849
+ hcDark: EDITOR_GROUP_BORDER,
850
+ hcLight: EDITOR_GROUP_BORDER,
851
+ },
852
+ localize(
853
+ 'sideBySideEditor.horizontalBorder',
854
+ 'Color to separate two editors from each other when shown side by side in an editor group from top to bottom.',
855
+ ),
856
+ );
857
+
858
+ export const SIDE_BY_SIDE_EDITOR_VERTICAL_BORDER = registerColor(
859
+ 'sideBySideEditor.verticalBorder',
860
+ {
861
+ dark: EDITOR_GROUP_BORDER,
862
+ light: EDITOR_GROUP_BORDER,
863
+ hcDark: EDITOR_GROUP_BORDER,
864
+ hcLight: EDITOR_GROUP_BORDER,
865
+ },
866
+ localize(
867
+ 'sideBySideEditor.verticalBorder',
868
+ 'Color to separate two editors from each other when shown side by side in an editor group from left to right.',
869
+ ),
870
+ );
871
+
872
+ /**
873
+ * Inline hints
874
+ */
875
+ export const editorInlayHintForeground = registerColor(
876
+ 'editorInlayHint.foreground',
877
+ {
878
+ dark: transparent(badgeForeground, 0.8),
879
+ light: transparent(badgeForeground, 0.8),
880
+ hcDark: badgeForeground,
881
+ hcLight: badgeForeground,
882
+ },
883
+ localize('editorInlayHintForeground', 'Foreground color of inline hints'),
884
+ );
885
+ export const editorInlayHintBackground = registerColor(
886
+ 'editorInlayHint.background',
887
+ {
888
+ dark: transparent(badgeBackground, 0.6),
889
+ light: transparent(badgeBackground, 0.3),
890
+ hcDark: badgeBackground,
891
+ hcLight: badgeBackground,
892
+ },
893
+ localize('editorInlayHintBackground', 'Background color of inline hints'),
894
+ );
895
+ export const editorInlayHintTypeForeground = registerColor(
896
+ 'editorInlayHint.typeForeground',
897
+ {
898
+ dark: editorInlayHintForeground,
899
+ light: editorInlayHintForeground,
900
+ hcDark: editorInlayHintForeground,
901
+ hcLight: editorInlayHintForeground,
902
+ },
903
+ localize('editorInlayHintForegroundTypes', 'Foreground color of inline hints for types'),
904
+ );
905
+ export const editorInlayHintTypeBackground = registerColor(
906
+ 'editorInlayHint.typeBackground',
907
+ {
908
+ dark: editorInlayHintBackground,
909
+ light: editorInlayHintBackground,
910
+ hcDark: editorInlayHintBackground,
911
+ hcLight: editorInlayHintBackground,
912
+ },
913
+ localize('editorInlayHintBackgroundTypes', 'Background color of inline hints for types'),
914
+ );
915
+ export const editorInlayHintParameterForeground = registerColor(
916
+ 'editorInlayHint.parameterForeground',
917
+ {
918
+ dark: editorInlayHintForeground,
919
+ light: editorInlayHintForeground,
920
+ hcDark: editorInlayHintForeground,
921
+ hcLight: editorInlayHintForeground,
922
+ },
923
+ localize('editorInlayHintForegroundParameter', 'Foreground color of inline hints for parameters'),
924
+ );
925
+ export const editorInlayHintParameterBackground = registerColor(
926
+ 'editorInlayHint.parameterBackground',
927
+ {
928
+ dark: editorInlayHintBackground,
929
+ light: editorInlayHintBackground,
930
+ hcDark: editorInlayHintBackground,
931
+ hcLight: editorInlayHintBackground,
932
+ },
933
+ localize('editorInlayHintBackgroundParameter', 'Background color of inline hints for parameters'),
934
+ );
935
+
936
+ export const editorImagePreviewBackground = registerColor(
937
+ 'editorImagePreview.background',
938
+ {
939
+ dark: new Color(new RGBA(20, 20, 20)),
940
+ light: new Color(new RGBA(230, 230, 230)),
941
+ hcLight: new Color(new RGBA(230, 230, 230)),
942
+ hcDark: new Color(new RGBA(20, 20, 20)),
943
+ },
944
+ localize('editorImagePreviewBackground', 'Background color of image preview editor.'),
945
+ );