1
>
/*---------------------------------------------------------------------------------------------
editorColors.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import * as nls from '../../../../nls.js';
7
>
8
>
// Import the effects we need
9
>
import { Color, RGBA } from '../../../../base/common/color.js';
10
>
import { registerColor, transparent, lessProminent, darken, lighten } from '../colorUtils.js';
11
>
12
>
// Import the colors we need
13
>
import { foreground, contrastBorder, activeContrastBorder } from './baseColors.js';
14
>
import { scrollbarShadow, badgeBackground } from './miscColors.js';
15
>
16
>
17
>
// ----- editor
18
>
19
>
export const editorBackground = registerColor('editor.background',
20
>
{ light: '#ffffff', dark: '#1E1E1E', hcDark: Color.black, hcLight: Color.white },
21
>
nls.localize('editorBackground', "Editor background color."));
22
>
23
>
export const editorForeground = registerColor('editor.foreground',
24
>
{ light: '#333333', dark: '#BBBBBB', hcDark: Color.white, hcLight: foreground },
25
>
nls.localize('editorForeground', "Editor default foreground color."));
26
>
27
>
28
>
export const editorStickyScrollBackground = registerColor('editorStickyScroll.background',
29
>
editorBackground,
30
>
nls.localize('editorStickyScrollBackground', "Background color of sticky scroll in the editor"));
31
>
32
>
export const editorStickyScrollGutterBackground = registerColor('editorStickyScrollGutter.background',
33
>
editorBackground,
34
>
nls.localize('editorStickyScrollGutterBackground', "Background color of the gutter part of sticky scroll in the editor"));
35
>
36
>
export const editorStickyScrollHoverBackground = registerColor('editorStickyScrollHover.background',
37
>
{ dark: '#2A2D2E', light: '#F0F0F0', hcDark: null, hcLight: Color.fromHex('#0F4A85').transparent(0.1) },
38
>
nls.localize('editorStickyScrollHoverBackground', "Background color of sticky scroll on hover in the editor"));
39
>
40
>
export const editorStickyScrollBorder = registerColor('editorStickyScroll.border',
41
>
{ dark: null, light: null, hcDark: contrastBorder, hcLight: contrastBorder },
42
>
nls.localize('editorStickyScrollBorder', "Border color of sticky scroll in the editor"));
43
>
44
>
export const editorStickyScrollShadow = registerColor('editorStickyScroll.shadow',
45
>
scrollbarShadow,
46
>
nls.localize('editorStickyScrollShadow', " Shadow color of sticky scroll in the editor"));
47
>
48
>
49
>
export const editorWidgetBackground = registerColor('editorWidget.background',
50
>
{ dark: '#252526', light: '#F3F3F3', hcDark: '#0C141F', hcLight: Color.white },
51
>
nls.localize('editorWidgetBackground', 'Background color of editor widgets, such as find/replace.'));
52
>
53
>
export const editorWidgetForeground = registerColor('editorWidget.foreground',
54
>
foreground,
55
>
nls.localize('editorWidgetForeground', 'Foreground color of editor widgets, such as find/replace.'));
56
>
57
>
export const editorWidgetBorder = registerColor('editorWidget.border',
58
>
{ dark: transparent(editorWidgetForeground, 0.2), light: transparent(editorWidgetForeground, 0.2), hcDark: contrastBorder, hcLight: contrastBorder },
59
>
nls.localize('editorWidgetBorder', '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.'));
60
>
61
>
export const editorWidgetResizeBorder = registerColor('editorWidget.resizeBorder',
62
>
null,
63
>
nls.localize('editorWidgetResizeBorder', "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."));
64
>
65
>
66
>
export const editorErrorBackground = registerColor('editorError.background',
67
>
null,
68
>
nls.localize('editorError.background', 'Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations.'), true);
69
>
70
>
export const editorErrorForeground = registerColor('editorError.foreground',
71
>
{ dark: '#F14C4C', light: '#E51400', hcDark: '#F48771', hcLight: '#B5200D' },
72
>
nls.localize('editorError.foreground', 'Foreground color of error squigglies in the editor.'));
73
>
74
>
export const editorErrorBorder = registerColor('editorError.border',
75
>
{ dark: null, light: null, hcDark: Color.fromHex('#E47777').transparent(0.8), hcLight: '#B5200D' },
76
>
nls.localize('errorBorder', 'If set, color of double underlines for errors in the editor.'));
77
>
78
>
79
>
export const editorWarningBackground = registerColor('editorWarning.background',
80
>
null,
81
>
nls.localize('editorWarning.background', 'Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations.'), true);
82
>
83
>
export const editorWarningForeground = registerColor('editorWarning.foreground',
84
>
{ dark: '#CCA700', light: '#BF8803', hcDark: '#FFD370', hcLight: '#895503' },
85
>
nls.localize('editorWarning.foreground', 'Foreground color of warning squigglies in the editor.'));
86
>
87
>
export const editorWarningBorder = registerColor('editorWarning.border',
88
>
{ dark: null, light: null, hcDark: Color.fromHex('#FFCC00').transparent(0.8), hcLight: Color.fromHex('#FFCC00').transparent(0.8) },
89
>
nls.localize('warningBorder', 'If set, color of double underlines for warnings in the editor.'));
90
>
91
>
92
>
export const editorInfoBackground = registerColor('editorInfo.background',
93
>
null,
94
>
nls.localize('editorInfo.background', 'Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations.'), true);
95
>
96
>
export const editorInfoForeground = registerColor('editorInfo.foreground',
97
>
{ dark: '#59a4f9', light: '#0063d3', hcDark: '#59a4f9', hcLight: '#0063d3' },
98
>
nls.localize('editorInfo.foreground', 'Foreground color of info squigglies in the editor.'));
99
>
100
>
export const editorInfoBorder = registerColor('editorInfo.border',
101
>
{ dark: null, light: null, hcDark: Color.fromHex('#59a4f9').transparent(0.8), hcLight: '#292929' },
102
>
nls.localize('infoBorder', 'If set, color of double underlines for infos in the editor.'));
103
>
104
>
105
>
export const editorHintForeground = registerColor('editorHint.foreground',
106
>
{ dark: Color.fromHex('#eeeeee').transparent(0.7), light: '#6c6c6c', hcDark: null, hcLight: null },
107
>
nls.localize('editorHint.foreground', 'Foreground color of hint squigglies in the editor.'));
108
>
109
>
export const editorHintBorder = registerColor('editorHint.border',
110
>
{ dark: null, light: null, hcDark: Color.fromHex('#eeeeee').transparent(0.8), hcLight: '#292929' },
111
>
nls.localize('hintBorder', 'If set, color of double underlines for hints in the editor.'));
112
>
113
>
114
>
export const editorActiveLinkForeground = registerColor('editorLink.activeForeground',
115
>
{ dark: '#4E94CE', light: Color.blue, hcDark: Color.cyan, hcLight: '#292929' },
116
>
nls.localize('activeLinkForeground', 'Color of active links.'));
117
>
118
>
119
>
// ----- editor selection
120
>
121
>
export const editorSelectionBackground = registerColor('editor.selectionBackground',
122
>
{ light: '#ADD6FF', dark: '#264F78', hcDark: '#f3f518', hcLight: '#0F4A85' },
123
>
nls.localize('editorSelectionBackground', "Color of the editor selection."));
124
>
125
>
export const editorSelectionForeground = registerColor('editor.selectionForeground',
126
>
{ light: null, dark: null, hcDark: '#000000', hcLight: Color.white },
127
>
nls.localize('editorSelectionForeground', "Color of the selected text for high contrast."));
128
>
129
>
export const editorInactiveSelection = registerColor('editor.inactiveSelectionBackground',
130
>
{ light: transparent(editorSelectionBackground, 0.5), dark: transparent(editorSelectionBackground, 0.5), hcDark: transparent(editorSelectionBackground, 0.7), hcLight: transparent(editorSelectionBackground, 0.5) },
131
>
nls.localize('editorInactiveSelection', "Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."), true);
132
>
133
>
export const editorSelectionHighlight = registerColor('editor.selectionHighlightBackground',
134
>
{ light: lessProminent(editorSelectionBackground, editorBackground, 0.3, 0.6), dark: lessProminent(editorSelectionBackground, editorBackground, 0.3, 0.6), hcDark: null, hcLight: null },
135
>
nls.localize('editorSelectionHighlight', 'Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations.'), true);
136
>
137
>
export const editorSelectionHighlightBorder = registerColor('editor.selectionHighlightBorder',
138
>
{ light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
139
>
nls.localize('editorSelectionHighlightBorder', "Border color for regions with the same content as the selection."));
140
>
141
>
export const editorCompositionBorder = registerColor('editor.compositionBorder',
142
>
{ light: '#000000', dark: '#ffffff', hcLight: '#000000', hcDark: '#ffffff' },
143
>
nls.localize('editorCompositionBorder', "The border color for an IME composition."));
144
>
145
>
146
>
// ----- editor find
147
>
148
>
export const editorFindMatch = registerColor('editor.findMatchBackground',
149
>
{ light: '#A8AC94', dark: '#515C6A', hcDark: null, hcLight: null },
150
>
nls.localize('editorFindMatch', "Color of the current search match."));
151
>
152
>
export const editorFindMatchForeground = registerColor('editor.findMatchForeground',
153
>
null,
154
>
nls.localize('editorFindMatchForeground', "Text color of the current search match."));
155
>
156
>
export const editorFindMatchHighlight = registerColor('editor.findMatchHighlightBackground',
157
>
{ light: '#EA5C0055', dark: '#EA5C0055', hcDark: null, hcLight: null },
158
>
nls.localize('findMatchHighlight', "Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."), true);
159
>
160
>
export const editorFindMatchHighlightForeground = registerColor('editor.findMatchHighlightForeground',
161
>
null,
162
>
nls.localize('findMatchHighlightForeground', "Foreground color of the other search matches."), true);
163
>
164
>
export const editorFindRangeHighlight = registerColor('editor.findRangeHighlightBackground',
165
>
{ dark: '#3a3d4166', light: '#b4b4b44d', hcDark: null, hcLight: null },
166
>
nls.localize('findRangeHighlight', "Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true);
167
>
168
>
export const editorFindMatchBorder = registerColor('editor.findMatchBorder',
169
>
{ light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
170
>
nls.localize('editorFindMatchBorder', "Border color of the current search match."));
171
>
172
>
export const editorFindMatchHighlightBorder = registerColor('editor.findMatchHighlightBorder',
173
>
{ light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
174
>
nls.localize('findMatchHighlightBorder', "Border color of the other search matches."));
175
>
176
>
export const editorFindRangeHighlightBorder = registerColor('editor.findRangeHighlightBorder',
177
>
{ dark: null, light: null, hcDark: transparent(activeContrastBorder, 0.4), hcLight: transparent(activeContrastBorder, 0.4) },
178
>
nls.localize('findRangeHighlightBorder', "Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true);
179
>
180
>
181
>
// ----- editor hover
182
>
183
>
export const editorHoverHighlight = registerColor('editor.hoverHighlightBackground',
184
>
{ light: '#ADD6FF26', dark: '#264f7840', hcDark: '#ADD6FF26', hcLight: null },
185
>
nls.localize('hoverHighlight', 'Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations.'), true);
186
>
187
>
export const editorHoverBackground = registerColor('editorHoverWidget.background',
188
>
editorWidgetBackground,
189
>
nls.localize('hoverBackground', 'Background color of the editor hover.'));
190
>
191
>
export const editorHoverForeground = registerColor('editorHoverWidget.foreground',
192
>
editorWidgetForeground,
193
>
nls.localize('hoverForeground', 'Foreground color of the editor hover.'));
194
>
195
>
export const editorHoverBorder = registerColor('editorHoverWidget.border',
196
>
editorWidgetBorder,
197
>
nls.localize('hoverBorder', 'Border color of the editor hover.'));
198
>
199
>
export const editorHoverStatusBarBackground = registerColor('editorHoverWidget.statusBarBackground',
200
>
{ dark: lighten(editorHoverBackground, 0.2), light: darken(editorHoverBackground, 0.05), hcDark: editorWidgetBackground, hcLight: editorWidgetBackground },
201
>
nls.localize('statusBarBackground', "Background color of the editor hover status bar."));
202
>
203
>
204
>
// ----- editor inlay hint
205
>
206
>
export const editorInlayHintForeground = registerColor('editorInlayHint.foreground',
207
>
{ dark: '#969696', light: '#969696', hcDark: Color.white, hcLight: Color.black },
208
>
nls.localize('editorInlayHintForeground', 'Foreground color of inline hints'));
209
>
210
>
export const editorInlayHintBackground = registerColor('editorInlayHint.background',
211
>
{ dark: transparent(badgeBackground, .10), light: transparent(badgeBackground, .10), hcDark: transparent(Color.white, .10), hcLight: transparent(badgeBackground, .10) },
212
>
nls.localize('editorInlayHintBackground', 'Background color of inline hints'));
213
>
214
>
export const editorInlayHintTypeForeground = registerColor('editorInlayHint.typeForeground',
215
>
editorInlayHintForeground,
216
>
nls.localize('editorInlayHintForegroundTypes', 'Foreground color of inline hints for types'));
217
>
218
>
export const editorInlayHintTypeBackground = registerColor('editorInlayHint.typeBackground',
219
>
editorInlayHintBackground,
220
>
nls.localize('editorInlayHintBackgroundTypes', 'Background color of inline hints for types'));
221
>
222
>
export const editorInlayHintParameterForeground = registerColor('editorInlayHint.parameterForeground',
223
>
editorInlayHintForeground,
224
>
nls.localize('editorInlayHintForegroundParameter', 'Foreground color of inline hints for parameters'));
225
>
226
>
export const editorInlayHintParameterBackground = registerColor('editorInlayHint.parameterBackground',
227
>
editorInlayHintBackground,
228
>
nls.localize('editorInlayHintBackgroundParameter', 'Background color of inline hints for parameters'));
229
>
230
>
231
>
// ----- editor lightbulb
232
>
233
>
export const editorLightBulbForeground = registerColor('editorLightBulb.foreground',
234
>
{ dark: '#FFCC00', light: '#DDB100', hcDark: '#FFCC00', hcLight: '#007ACC' },
235
>
nls.localize('editorLightBulbForeground', "The color used for the lightbulb actions icon."));
236
>
237
>
export const editorLightBulbAutoFixForeground = registerColor('editorLightBulbAutoFix.foreground',
238
>
{ dark: '#75BEFF', light: '#007ACC', hcDark: '#75BEFF', hcLight: '#007ACC' },
239
>
nls.localize('editorLightBulbAutoFixForeground', "The color used for the lightbulb auto fix actions icon."));
240
>
241
>
export const editorLightBulbAiForeground = registerColor('editorLightBulbAi.foreground',
242
>
editorLightBulbForeground,
243
>
nls.localize('editorLightBulbAiForeground', "The color used for the lightbulb AI icon."));
244
>
245
>
246
>
// ----- editor snippet
247
>
248
>
export const snippetTabstopHighlightBackground = registerColor('editor.snippetTabstopHighlightBackground',
249
>
{ dark: new Color(new RGBA(124, 124, 124, 0.3)), light: new Color(new RGBA(10, 50, 100, 0.2)), hcDark: new Color(new RGBA(124, 124, 124, 0.3)), hcLight: new Color(new RGBA(10, 50, 100, 0.2)) },
250
>
nls.localize('snippetTabstopHighlightBackground', "Highlight background color of a snippet tabstop."));
251
>
252
>
export const snippetTabstopHighlightBorder = registerColor('editor.snippetTabstopHighlightBorder',
253
>
null,
254
>
nls.localize('snippetTabstopHighlightBorder', "Highlight border color of a snippet tabstop."));
255
>
256
>
export const snippetFinalTabstopHighlightBackground = registerColor('editor.snippetFinalTabstopHighlightBackground',
257
>
null,
258
>
nls.localize('snippetFinalTabstopHighlightBackground', "Highlight background color of the final tabstop of a snippet."));
259
>
260
>
export const snippetFinalTabstopHighlightBorder = registerColor('editor.snippetFinalTabstopHighlightBorder',
261
>
{ dark: '#525252', light: new Color(new RGBA(10, 50, 100, 0.5)), hcDark: '#525252', hcLight: '#292929' },
262
>
nls.localize('snippetFinalTabstopHighlightBorder', "Highlight border color of the final tabstop of a snippet."));
263
>
264
>
265
>
// ----- diff editor
266
>
267
>
export const defaultInsertColor = new Color(new RGBA(155, 185, 85, .2));
268
>
export const defaultRemoveColor = new Color(new RGBA(255, 0, 0, .2));
269
>
270
>
export const diffInserted = registerColor('diffEditor.insertedTextBackground',
271
>
{ dark: '#9ccc2c33', light: '#9ccc2c40', hcDark: null, hcLight: null },
272
>
nls.localize('diffEditorInserted', 'Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations.'), true);
273
>
274
>
export const diffRemoved = registerColor('diffEditor.removedTextBackground',
275
>
{ dark: '#ff000033', light: '#ff000033', hcDark: null, hcLight: null },
276
>
nls.localize('diffEditorRemoved', 'Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations.'), true);
277
>
278
>
279
>
export const diffInsertedLine = registerColor('diffEditor.insertedLineBackground',
280
>
{ dark: defaultInsertColor, light: defaultInsertColor, hcDark: null, hcLight: null },
281
>
nls.localize('diffEditorInsertedLines', 'Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations.'), true);
282
>
283
>
export const diffRemovedLine = registerColor('diffEditor.removedLineBackground',
284
>
{ dark: defaultRemoveColor, light: defaultRemoveColor, hcDark: null, hcLight: null },
285
>
nls.localize('diffEditorRemovedLines', 'Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations.'), true);
286
>
287
>
288
>
export const diffInsertedLineGutter = registerColor('diffEditorGutter.insertedLineBackground',
289
>
null,
290
>
nls.localize('diffEditorInsertedLineGutter', 'Background color for the margin where lines got inserted.'));
291
>
292
>
export const diffRemovedLineGutter = registerColor('diffEditorGutter.removedLineBackground',
293
>
null,
294
>
nls.localize('diffEditorRemovedLineGutter', 'Background color for the margin where lines got removed.'));
295
>
296
>
297
>
export const diffOverviewRulerInserted = registerColor('diffEditorOverview.insertedForeground',
298
>
null,
299
>
nls.localize('diffEditorOverviewInserted', 'Diff overview ruler foreground for inserted content.'));
300
>
301
>
export const diffOverviewRulerRemoved = registerColor('diffEditorOverview.removedForeground',
302
>
null,
303
>
nls.localize('diffEditorOverviewRemoved', 'Diff overview ruler foreground for removed content.'));
304
>
305
>
306
>
export const diffInsertedOutline = registerColor('diffEditor.insertedTextBorder',
307
>
{ dark: null, light: null, hcDark: '#33ff2eff', hcLight: '#374E06' },
308
>
nls.localize('diffEditorInsertedOutline', 'Outline color for the text that got inserted.'));
309
>
310
>
export const diffRemovedOutline = registerColor('diffEditor.removedTextBorder',
311
>
{ dark: null, light: null, hcDark: '#FF008F', hcLight: '#AD0707' },
312
>
nls.localize('diffEditorRemovedOutline', 'Outline color for text that got removed.'));
313
>
314
>
315
>
export const diffBorder = registerColor('diffEditor.border',
316
>
{ dark: null, light: null, hcDark: contrastBorder, hcLight: contrastBorder },
317
>
nls.localize('diffEditorBorder', 'Border color between the two text editors.'));
318
>
319
>
export const diffDiagonalFill = registerColor('diffEditor.diagonalFill',
320
>
{ dark: '#cccccc33', light: '#22222233', hcDark: null, hcLight: null },
321
>
nls.localize('diffDiagonalFill', "Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views."));
322
>
323
>
324
>
export const diffUnchangedRegionBackground = registerColor('diffEditor.unchangedRegionBackground',
325
>
'sideBar.background',
326
>
nls.localize('diffEditor.unchangedRegionBackground', "The background color of unchanged blocks in the diff editor."));
327
>
328
>
export const diffUnchangedRegionForeground = registerColor('diffEditor.unchangedRegionForeground',
329
>
'foreground',
330
>
nls.localize('diffEditor.unchangedRegionForeground', "The foreground color of unchanged blocks in the diff editor."));
331
>
332
>
export const diffUnchangedTextBackground = registerColor('diffEditor.unchangedCodeBackground',
333
>
{ dark: '#74747429', light: '#b8b8b829', hcDark: null, hcLight: null },
334
>
nls.localize('diffEditor.unchangedCodeBackground', "The background color of unchanged code in the diff editor."));
335
>
336
>
337
>
// ----- widget
338
>
339
>
export const widgetShadow = registerColor('widget.shadow',
340
>
{ dark: transparent(Color.black, .36), light: transparent(Color.black, .16), hcDark: null, hcLight: null },
341
>
nls.localize('widgetShadow', 'Shadow color of widgets such as find/replace inside the editor.'));
342
>
343
>
export const widgetBorder = registerColor('widget.border',
344
>
{ dark: null, light: null, hcDark: contrastBorder, hcLight: contrastBorder },
345
>
nls.localize('widgetBorder', 'Border color of widgets such as find/replace inside the editor.'));
346
>
347
>
348
>
// ----- toolbar
349
>
350
>
export const toolbarHoverBackground = registerColor('toolbar.hoverBackground',
351
>
{ dark: '#5a5d5e50', light: '#b8b8b850', hcDark: null, hcLight: null },
352
>
nls.localize('toolbarHoverBackground', "Toolbar background when hovering over actions using the mouse"));
353
>
354
>
export const toolbarHoverOutline = registerColor('toolbar.hoverOutline',
355
>
{ dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
356
>
nls.localize('toolbarHoverOutline', "Toolbar outline when hovering over actions using the mouse"));
357
>
358
>
export const toolbarActiveBackground = registerColor('toolbar.activeBackground',
359
>
{ dark: lighten(toolbarHoverBackground, 0.1), light: darken(toolbarHoverBackground, 0.1), hcDark: null, hcLight: null },
360
>
nls.localize('toolbarActiveBackground', "Toolbar background when holding the mouse over actions"));
361
>
362
>
363
>
// ----- breadcumbs
364
>
365
>
export const breadcrumbsForeground = registerColor('breadcrumb.foreground',
366
>
transparent(foreground, 0.8),
367
>
nls.localize('breadcrumbsFocusForeground', "Color of focused breadcrumb items."));
368
>
369
>
export const breadcrumbsBackground = registerColor('breadcrumb.background',
370
>
editorBackground,
371
>
nls.localize('breadcrumbsBackground', "Background color of breadcrumb items."));
372
>
373
>
export const breadcrumbsFocusForeground = registerColor('breadcrumb.focusForeground',
374
>
{ light: darken(foreground, 0.2), dark: lighten(foreground, 0.1), hcDark: lighten(foreground, 0.1), hcLight: lighten(foreground, 0.1) },
375
>
nls.localize('breadcrumbsFocusForeground', "Color of focused breadcrumb items."));
376
>
377
>
export const breadcrumbsActiveSelectionForeground = registerColor('breadcrumb.activeSelectionForeground',
378
>
{ light: darken(foreground, 0.2), dark: lighten(foreground, 0.1), hcDark: lighten(foreground, 0.1), hcLight: lighten(foreground, 0.1) },
379
>
nls.localize('breadcrumbsSelectedForeground', "Color of selected breadcrumb items."));
380
>
381
>
export const breadcrumbsPickerBackground = registerColor('breadcrumbPicker.background',
382
>
editorWidgetBackground,
383
>
nls.localize('breadcrumbsSelectedBackground', "Background color of breadcrumb item picker."));
384
>
385
>
386
>
// ----- merge
387
>
388
>
const headerTransparency = 0.5;
389
>
const currentBaseColor = Color.fromHex('#40C8AE').transparent(headerTransparency);
390
>
const incomingBaseColor = Color.fromHex('#40A6FF').transparent(headerTransparency);
391
>
const commonBaseColor = Color.fromHex('#606060').transparent(0.4);
392
>
const contentTransparency = 0.4;
393
>
const rulerTransparency = 1;
394
>
395
>
export const mergeCurrentHeaderBackground = registerColor('merge.currentHeaderBackground',
396
>
{ dark: currentBaseColor, light: currentBaseColor, hcDark: null, hcLight: null },
397
>
nls.localize('mergeCurrentHeaderBackground', 'Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
398
>
399
>
export const mergeCurrentContentBackground = registerColor('merge.currentContentBackground',
400
>
transparent(mergeCurrentHeaderBackground, contentTransparency),
401
>
nls.localize('mergeCurrentContentBackground', 'Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
402
>
403
>
export const mergeIncomingHeaderBackground = registerColor('merge.incomingHeaderBackground',
404
>
{ dark: incomingBaseColor, light: incomingBaseColor, hcDark: null, hcLight: null },
405
>
nls.localize('mergeIncomingHeaderBackground', 'Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
406
>
407
>
export const mergeIncomingContentBackground = registerColor('merge.incomingContentBackground',
408
>
transparent(mergeIncomingHeaderBackground, contentTransparency),
409
>
nls.localize('mergeIncomingContentBackground', 'Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
410
>
411
>
export const mergeCommonHeaderBackground = registerColor('merge.commonHeaderBackground',
412
>
{ dark: commonBaseColor, light: commonBaseColor, hcDark: null, hcLight: null },
413
>
nls.localize('mergeCommonHeaderBackground', 'Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
414
>
415
>
export const mergeCommonContentBackground = registerColor('merge.commonContentBackground',
416
>
transparent(mergeCommonHeaderBackground, contentTransparency),
417
>
nls.localize('mergeCommonContentBackground', 'Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
418
>
419
>
export const mergeBorder = registerColor('merge.border',
420
>
{ dark: null, light: null, hcDark: '#C3DF6F', hcLight: '#007ACC' },
421
>
nls.localize('mergeBorder', 'Border color on headers and the splitter in inline merge-conflicts.'));
422
>
423
>
424
>
export const overviewRulerCurrentContentForeground = registerColor('editorOverviewRuler.currentContentForeground',
425
>
{ dark: transparent(mergeCurrentHeaderBackground, rulerTransparency), light: transparent(mergeCurrentHeaderBackground, rulerTransparency), hcDark: mergeBorder, hcLight: mergeBorder },
426
>
nls.localize('overviewRulerCurrentContentForeground', 'Current overview ruler foreground for inline merge-conflicts.'));
427
>
428
>
export const overviewRulerIncomingContentForeground = registerColor('editorOverviewRuler.incomingContentForeground',
429
>
{ dark: transparent(mergeIncomingHeaderBackground, rulerTransparency), light: transparent(mergeIncomingHeaderBackground, rulerTransparency), hcDark: mergeBorder, hcLight: mergeBorder },
430
>
nls.localize('overviewRulerIncomingContentForeground', 'Incoming overview ruler foreground for inline merge-conflicts.'));
431
>
432
>
export const overviewRulerCommonContentForeground = registerColor('editorOverviewRuler.commonContentForeground',
433
>
{ dark: transparent(mergeCommonHeaderBackground, rulerTransparency), light: transparent(mergeCommonHeaderBackground, rulerTransparency), hcDark: mergeBorder, hcLight: mergeBorder },
434
>
nls.localize('overviewRulerCommonContentForeground', 'Common ancestor overview ruler foreground for inline merge-conflicts.'));
435
>
436
>
export const overviewRulerFindMatchForeground = registerColor('editorOverviewRuler.findMatchForeground',
437
>
{ dark: '#d186167e', light: '#d186167e', hcDark: '#AB5A00', hcLight: '#AB5A00' },
438
>
nls.localize('overviewRulerFindMatchForeground', 'Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations.'), true);
439
>
440
>
export const overviewRulerSelectionHighlightForeground = registerColor('editorOverviewRuler.selectionHighlightForeground',
441
>
'#A0A0A0CC',
442
>
nls.localize('overviewRulerSelectionHighlightForeground', 'Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations.'), true);
443
>
444
>
445
>
// ----- problems
446
>
447
>
export const problemsErrorIconForeground = registerColor('problemsErrorIcon.foreground',
448
>
editorErrorForeground,
449
>
nls.localize('problemsErrorIconForeground', "The color used for the problems error icon."));
450
>
451
>
export const problemsWarningIconForeground = registerColor('problemsWarningIcon.foreground',
452
>
editorWarningForeground,
453
>
nls.localize('problemsWarningIconForeground', "The color used for the problems warning icon."));
454
>
455
>
export const problemsInfoIconForeground = registerColor('problemsInfoIcon.foreground',
456
>
editorInfoForeground,
457
>
nls.localize('problemsInfoIconForeground', "The color used for the problems info icon."));