Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/common/theme.ts
3292 views
1
/*---------------------------------------------------------------------------------------------
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 { localize } from '../../nls.js';
7
import { registerColor, editorBackground, contrastBorder, transparent, editorWidgetBackground, textLinkForeground, lighten, darken, focusBorder, activeContrastBorder, editorWidgetForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, treeIndentGuidesStroke, errorForeground, listActiveSelectionBackground, listActiveSelectionForeground, editorForeground, toolbarHoverBackground, inputBorder, widgetBorder, scrollbarShadow } from '../../platform/theme/common/colorRegistry.js';
8
import { IColorTheme } from '../../platform/theme/common/themeService.js';
9
import { Color } from '../../base/common/color.js';
10
import { ColorScheme } from '../../platform/theme/common/theme.js';
11
12
// < --- Workbench (not customizable) --- >
13
14
export function WORKBENCH_BACKGROUND(theme: IColorTheme): Color {
15
switch (theme.type) {
16
case ColorScheme.LIGHT:
17
return Color.fromHex('#F3F3F3');
18
case ColorScheme.HIGH_CONTRAST_LIGHT:
19
return Color.fromHex('#FFFFFF');
20
case ColorScheme.HIGH_CONTRAST_DARK:
21
return Color.fromHex('#000000');
22
default:
23
return Color.fromHex('#252526');
24
}
25
}
26
27
// < --- Tabs --- >
28
29
//#region Tab Background
30
31
export const TAB_ACTIVE_BACKGROUND = registerColor('tab.activeBackground', editorBackground, localize('tabActiveBackground', "Active tab background color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
32
33
export const TAB_UNFOCUSED_ACTIVE_BACKGROUND = registerColor('tab.unfocusedActiveBackground', TAB_ACTIVE_BACKGROUND, localize('tabUnfocusedActiveBackground', "Active tab background color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
34
35
export const TAB_INACTIVE_BACKGROUND = registerColor('tab.inactiveBackground', {
36
dark: '#2D2D2D',
37
light: '#ECECEC',
38
hcDark: null,
39
hcLight: null,
40
}, localize('tabInactiveBackground', "Inactive tab background color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
41
42
export const TAB_UNFOCUSED_INACTIVE_BACKGROUND = registerColor('tab.unfocusedInactiveBackground', TAB_INACTIVE_BACKGROUND, localize('tabUnfocusedInactiveBackground', "Inactive tab background color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
43
44
//#endregion
45
46
//#region Tab Foreground
47
48
export const TAB_ACTIVE_FOREGROUND = registerColor('tab.activeForeground', {
49
dark: Color.white,
50
light: '#333333',
51
hcDark: Color.white,
52
hcLight: '#292929'
53
}, localize('tabActiveForeground', "Active tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
54
55
export const TAB_INACTIVE_FOREGROUND = registerColor('tab.inactiveForeground', {
56
dark: transparent(TAB_ACTIVE_FOREGROUND, 0.5),
57
light: transparent(TAB_ACTIVE_FOREGROUND, 0.7),
58
hcDark: Color.white,
59
hcLight: '#292929'
60
}, localize('tabInactiveForeground', "Inactive tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
61
62
export const TAB_UNFOCUSED_ACTIVE_FOREGROUND = registerColor('tab.unfocusedActiveForeground', {
63
dark: transparent(TAB_ACTIVE_FOREGROUND, 0.5),
64
light: transparent(TAB_ACTIVE_FOREGROUND, 0.7),
65
hcDark: Color.white,
66
hcLight: '#292929'
67
}, localize('tabUnfocusedActiveForeground', "Active tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
68
69
export const TAB_UNFOCUSED_INACTIVE_FOREGROUND = registerColor('tab.unfocusedInactiveForeground', {
70
dark: transparent(TAB_INACTIVE_FOREGROUND, 0.5),
71
light: transparent(TAB_INACTIVE_FOREGROUND, 0.5),
72
hcDark: Color.white,
73
hcLight: '#292929'
74
}, localize('tabUnfocusedInactiveForeground', "Inactive tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
75
76
//#endregion
77
78
//#region Tab Hover Foreground/Background
79
80
export const TAB_HOVER_BACKGROUND = registerColor('tab.hoverBackground', null, localize('tabHoverBackground', "Tab background color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
81
82
export const TAB_UNFOCUSED_HOVER_BACKGROUND = registerColor('tab.unfocusedHoverBackground', {
83
dark: transparent(TAB_HOVER_BACKGROUND, 0.5),
84
light: transparent(TAB_HOVER_BACKGROUND, 0.7),
85
hcDark: null,
86
hcLight: null
87
}, localize('tabUnfocusedHoverBackground', "Tab background color in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
88
89
export const TAB_HOVER_FOREGROUND = registerColor('tab.hoverForeground', null, localize('tabHoverForeground', "Tab foreground color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
90
91
export const TAB_UNFOCUSED_HOVER_FOREGROUND = registerColor('tab.unfocusedHoverForeground', {
92
dark: transparent(TAB_HOVER_FOREGROUND, 0.5),
93
light: transparent(TAB_HOVER_FOREGROUND, 0.5),
94
hcDark: null,
95
hcLight: null
96
}, localize('tabUnfocusedHoverForeground', "Tab foreground color in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
97
98
//#endregion
99
100
//#region Tab Borders
101
102
export const TAB_BORDER = registerColor('tab.border', {
103
dark: '#252526',
104
light: '#F3F3F3',
105
hcDark: contrastBorder,
106
hcLight: contrastBorder,
107
}, localize('tabBorder', "Border to separate tabs from each other. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
108
109
export const TAB_LAST_PINNED_BORDER = registerColor('tab.lastPinnedBorder', {
110
dark: treeIndentGuidesStroke,
111
light: treeIndentGuidesStroke,
112
hcDark: contrastBorder,
113
hcLight: contrastBorder
114
}, localize('lastPinnedTabBorder', "Border to separate pinned tabs from other tabs. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
115
116
export const TAB_ACTIVE_BORDER = registerColor('tab.activeBorder', null, localize('tabActiveBorder', "Border on the bottom of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
117
118
export const TAB_UNFOCUSED_ACTIVE_BORDER = registerColor('tab.unfocusedActiveBorder', {
119
dark: transparent(TAB_ACTIVE_BORDER, 0.5),
120
light: transparent(TAB_ACTIVE_BORDER, 0.7),
121
hcDark: null,
122
hcLight: null
123
}, localize('tabActiveUnfocusedBorder', "Border on the bottom of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
124
125
export const TAB_ACTIVE_BORDER_TOP = registerColor('tab.activeBorderTop', {
126
dark: null,
127
light: null,
128
hcDark: null,
129
hcLight: '#B5200D'
130
}, localize('tabActiveBorderTop', "Border to the top of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
131
132
export const TAB_UNFOCUSED_ACTIVE_BORDER_TOP = registerColor('tab.unfocusedActiveBorderTop', {
133
dark: transparent(TAB_ACTIVE_BORDER_TOP, 0.5),
134
light: transparent(TAB_ACTIVE_BORDER_TOP, 0.7),
135
hcDark: null,
136
hcLight: '#B5200D'
137
}, localize('tabActiveUnfocusedBorderTop', "Border to the top of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
138
139
export const TAB_SELECTED_BORDER_TOP = registerColor('tab.selectedBorderTop', TAB_ACTIVE_BORDER_TOP, localize('tabSelectedBorderTop', "Border to the top of a selected tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
140
141
export const TAB_SELECTED_BACKGROUND = registerColor('tab.selectedBackground', TAB_ACTIVE_BACKGROUND, localize('tabSelectedBackground', "Background of a selected tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
142
143
export const TAB_SELECTED_FOREGROUND = registerColor('tab.selectedForeground', TAB_ACTIVE_FOREGROUND, localize('tabSelectedForeground', "Foreground of a selected tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
144
145
146
export const TAB_HOVER_BORDER = registerColor('tab.hoverBorder', null, localize('tabHoverBorder', "Border to highlight tabs when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
147
148
export const TAB_UNFOCUSED_HOVER_BORDER = registerColor('tab.unfocusedHoverBorder', {
149
dark: transparent(TAB_HOVER_BORDER, 0.5),
150
light: transparent(TAB_HOVER_BORDER, 0.7),
151
hcDark: null,
152
hcLight: contrastBorder
153
}, localize('tabUnfocusedHoverBorder', "Border to highlight tabs in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
154
155
//#endregion
156
157
//#region Tab Drag and Drop Border
158
159
export const TAB_DRAG_AND_DROP_BORDER = registerColor('tab.dragAndDropBorder', {
160
dark: TAB_ACTIVE_FOREGROUND,
161
light: TAB_ACTIVE_FOREGROUND,
162
hcDark: activeContrastBorder,
163
hcLight: activeContrastBorder
164
}, localize('tabDragAndDropBorder', "Border between tabs to indicate that a tab can be inserted between two tabs. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
165
166
//#endregion
167
168
//#region Tab Modified Border
169
170
export const TAB_ACTIVE_MODIFIED_BORDER = registerColor('tab.activeModifiedBorder', {
171
dark: '#3399CC',
172
light: '#33AAEE',
173
hcDark: null,
174
hcLight: contrastBorder
175
}, localize('tabActiveModifiedBorder', "Border on the top of modified active tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
176
177
export const TAB_INACTIVE_MODIFIED_BORDER = registerColor('tab.inactiveModifiedBorder', {
178
dark: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.5),
179
light: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.5),
180
hcDark: Color.white,
181
hcLight: contrastBorder
182
}, localize('tabInactiveModifiedBorder', "Border on the top of modified inactive tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
183
184
export const TAB_UNFOCUSED_ACTIVE_MODIFIED_BORDER = registerColor('tab.unfocusedActiveModifiedBorder', {
185
dark: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.5),
186
light: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.7),
187
hcDark: Color.white,
188
hcLight: contrastBorder
189
}, localize('unfocusedActiveModifiedBorder', "Border on the top of modified active tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
190
191
export const TAB_UNFOCUSED_INACTIVE_MODIFIED_BORDER = registerColor('tab.unfocusedInactiveModifiedBorder', {
192
dark: transparent(TAB_INACTIVE_MODIFIED_BORDER, 0.5),
193
light: transparent(TAB_INACTIVE_MODIFIED_BORDER, 0.5),
194
hcDark: Color.white,
195
hcLight: contrastBorder
196
}, localize('unfocusedINactiveModifiedBorder', "Border on the top of modified inactive tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups."));
197
198
//#endregion
199
200
// < --- Editors --- >
201
202
export const EDITOR_PANE_BACKGROUND = registerColor('editorPane.background', editorBackground, localize('editorPaneBackground', "Background color of the editor pane visible on the left and right side of the centered editor layout."));
203
204
export const EDITOR_GROUP_EMPTY_BACKGROUND = registerColor('editorGroup.emptyBackground', null, localize('editorGroupEmptyBackground', "Background color of an empty editor group. Editor groups are the containers of editors."));
205
206
export const EDITOR_GROUP_FOCUSED_EMPTY_BORDER = registerColor('editorGroup.focusedEmptyBorder', {
207
dark: null,
208
light: null,
209
hcDark: focusBorder,
210
hcLight: focusBorder
211
}, localize('editorGroupFocusedEmptyBorder', "Border color of an empty editor group that is focused. Editor groups are the containers of editors."));
212
213
export const EDITOR_GROUP_HEADER_TABS_BACKGROUND = registerColor('editorGroupHeader.tabsBackground', {
214
dark: '#252526',
215
light: '#F3F3F3',
216
hcDark: null,
217
hcLight: null
218
}, localize('tabsContainerBackground', "Background color of the editor group title header when tabs are enabled. Editor groups are the containers of editors."));
219
220
export const EDITOR_GROUP_HEADER_TABS_BORDER = registerColor('editorGroupHeader.tabsBorder', null, localize('tabsContainerBorder', "Border color of the editor group title header when tabs are enabled. Editor groups are the containers of editors."));
221
222
export const EDITOR_GROUP_HEADER_NO_TABS_BACKGROUND = registerColor('editorGroupHeader.noTabsBackground', editorBackground, localize('editorGroupHeaderBackground', "Background color of the editor group title header when (`\"workbench.editor.showTabs\": \"single\"`). Editor groups are the containers of editors."));
223
224
export const EDITOR_GROUP_HEADER_BORDER = registerColor('editorGroupHeader.border', {
225
dark: null,
226
light: null,
227
hcDark: contrastBorder,
228
hcLight: contrastBorder
229
}, localize('editorTitleContainerBorder', "Border color of the editor group title header. Editor groups are the containers of editors."));
230
231
export const EDITOR_GROUP_BORDER = registerColor('editorGroup.border', {
232
dark: '#444444',
233
light: '#E7E7E7',
234
hcDark: contrastBorder,
235
hcLight: contrastBorder
236
}, localize('editorGroupBorder', "Color to separate multiple editor groups from each other. Editor groups are the containers of editors."));
237
238
export const EDITOR_DRAG_AND_DROP_BACKGROUND = registerColor('editorGroup.dropBackground', {
239
dark: Color.fromHex('#53595D').transparent(0.5),
240
light: Color.fromHex('#2677CB').transparent(0.18),
241
hcDark: null,
242
hcLight: Color.fromHex('#0F4A85').transparent(0.50)
243
}, localize('editorDragAndDropBackground', "Background color when dragging editors around. The color should have transparency so that the editor contents can still shine through."));
244
245
export const EDITOR_DROP_INTO_PROMPT_FOREGROUND = registerColor('editorGroup.dropIntoPromptForeground', editorWidgetForeground, localize('editorDropIntoPromptForeground', "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."));
246
247
export const EDITOR_DROP_INTO_PROMPT_BACKGROUND = registerColor('editorGroup.dropIntoPromptBackground', editorWidgetBackground, localize('editorDropIntoPromptBackground', "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."));
248
249
export const EDITOR_DROP_INTO_PROMPT_BORDER = registerColor('editorGroup.dropIntoPromptBorder', {
250
dark: null,
251
light: null,
252
hcDark: contrastBorder,
253
hcLight: contrastBorder
254
}, localize('editorDropIntoPromptBorder', "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."));
255
256
export const SIDE_BY_SIDE_EDITOR_HORIZONTAL_BORDER = registerColor('sideBySideEditor.horizontalBorder', EDITOR_GROUP_BORDER, localize('sideBySideEditor.horizontalBorder', "Color to separate two editors from each other when shown side by side in an editor group from top to bottom."));
257
258
export const SIDE_BY_SIDE_EDITOR_VERTICAL_BORDER = registerColor('sideBySideEditor.verticalBorder', EDITOR_GROUP_BORDER, localize('sideBySideEditor.verticalBorder', "Color to separate two editors from each other when shown side by side in an editor group from left to right."));
259
260
261
// < --- Output Editor -->
262
263
const OUTPUT_VIEW_BACKGROUND = registerColor('outputView.background', null, localize('outputViewBackground', "Output view background color."));
264
265
266
registerColor('outputViewStickyScroll.background', OUTPUT_VIEW_BACKGROUND, localize('outputViewStickyScrollBackground', "Output view sticky scroll background color."));
267
268
269
// < --- Banner --- >
270
271
export const BANNER_BACKGROUND = registerColor('banner.background', {
272
dark: listActiveSelectionBackground,
273
light: darken(listActiveSelectionBackground, 0.3),
274
hcDark: listActiveSelectionBackground,
275
hcLight: listActiveSelectionBackground
276
}, localize('banner.background', "Banner background color. The banner is shown under the title bar of the window."));
277
278
export const BANNER_FOREGROUND = registerColor('banner.foreground', listActiveSelectionForeground, localize('banner.foreground', "Banner foreground color. The banner is shown under the title bar of the window."));
279
280
export const BANNER_ICON_FOREGROUND = registerColor('banner.iconForeground', editorInfoForeground, localize('banner.iconForeground', "Banner icon color. The banner is shown under the title bar of the window."));
281
282
// < --- Status --- >
283
284
export const STATUS_BAR_FOREGROUND = registerColor('statusBar.foreground', {
285
dark: '#FFFFFF',
286
light: '#FFFFFF',
287
hcDark: '#FFFFFF',
288
hcLight: editorForeground
289
}, localize('statusBarForeground', "Status bar foreground color when a workspace or folder is opened. The status bar is shown in the bottom of the window."));
290
291
export const STATUS_BAR_NO_FOLDER_FOREGROUND = registerColor('statusBar.noFolderForeground', STATUS_BAR_FOREGROUND, localize('statusBarNoFolderForeground', "Status bar foreground color when no folder is opened. The status bar is shown in the bottom of the window."));
292
293
export const STATUS_BAR_BACKGROUND = registerColor('statusBar.background', {
294
dark: '#007ACC',
295
light: '#007ACC',
296
hcDark: null,
297
hcLight: null,
298
}, localize('statusBarBackground', "Status bar background color when a workspace or folder is opened. The status bar is shown in the bottom of the window."));
299
300
export const STATUS_BAR_NO_FOLDER_BACKGROUND = registerColor('statusBar.noFolderBackground', {
301
dark: '#68217A',
302
light: '#68217A',
303
hcDark: null,
304
hcLight: null,
305
}, localize('statusBarNoFolderBackground', "Status bar background color when no folder is opened. The status bar is shown in the bottom of the window."));
306
307
export const STATUS_BAR_BORDER = registerColor('statusBar.border', {
308
dark: null,
309
light: null,
310
hcDark: contrastBorder,
311
hcLight: contrastBorder
312
}, localize('statusBarBorder', "Status bar border color separating to the sidebar and editor. The status bar is shown in the bottom of the window."));
313
314
export const STATUS_BAR_FOCUS_BORDER = registerColor('statusBar.focusBorder', {
315
dark: STATUS_BAR_FOREGROUND,
316
light: STATUS_BAR_FOREGROUND,
317
hcDark: null,
318
hcLight: STATUS_BAR_FOREGROUND
319
}, localize('statusBarFocusBorder', "Status bar border color when focused on keyboard navigation. The status bar is shown in the bottom of the window."));
320
321
export const STATUS_BAR_NO_FOLDER_BORDER = registerColor('statusBar.noFolderBorder', STATUS_BAR_BORDER, localize('statusBarNoFolderBorder', "Status bar border color separating to the sidebar and editor when no folder is opened. The status bar is shown in the bottom of the window."));
322
323
export const STATUS_BAR_ITEM_ACTIVE_BACKGROUND = registerColor('statusBarItem.activeBackground', {
324
dark: Color.white.transparent(0.18),
325
light: Color.white.transparent(0.18),
326
hcDark: Color.white.transparent(0.18),
327
hcLight: Color.black.transparent(0.18)
328
}, localize('statusBarItemActiveBackground', "Status bar item background color when clicking. The status bar is shown in the bottom of the window."));
329
330
export const STATUS_BAR_ITEM_FOCUS_BORDER = registerColor('statusBarItem.focusBorder', {
331
dark: STATUS_BAR_FOREGROUND,
332
light: STATUS_BAR_FOREGROUND,
333
hcDark: null,
334
hcLight: activeContrastBorder
335
}, localize('statusBarItemFocusBorder', "Status bar item border color when focused on keyboard navigation. The status bar is shown in the bottom of the window."));
336
337
export const STATUS_BAR_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.hoverBackground', {
338
dark: Color.white.transparent(0.12),
339
light: Color.white.transparent(0.12),
340
hcDark: Color.white.transparent(0.12),
341
hcLight: Color.black.transparent(0.12)
342
}, localize('statusBarItemHoverBackground', "Status bar item background color when hovering. The status bar is shown in the bottom of the window."));
343
344
export const STATUS_BAR_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.hoverForeground', STATUS_BAR_FOREGROUND, localize('statusBarItemHoverForeground', "Status bar item foreground color when hovering. The status bar is shown in the bottom of the window."));
345
346
export const STATUS_BAR_ITEM_COMPACT_HOVER_BACKGROUND = registerColor('statusBarItem.compactHoverBackground', {
347
dark: Color.white.transparent(0.20),
348
light: Color.white.transparent(0.20),
349
hcDark: Color.white.transparent(0.20),
350
hcLight: Color.black.transparent(0.20)
351
}, localize('statusBarItemCompactHoverBackground', "Status bar item background color when hovering an item that contains two hovers. The status bar is shown in the bottom of the window."));
352
353
export const STATUS_BAR_PROMINENT_ITEM_FOREGROUND = registerColor('statusBarItem.prominentForeground', STATUS_BAR_FOREGROUND, localize('statusBarProminentItemForeground', "Status bar prominent items foreground color. Prominent items stand out from other status bar entries to indicate importance. The status bar is shown in the bottom of the window."));
354
355
export const STATUS_BAR_PROMINENT_ITEM_BACKGROUND = registerColor('statusBarItem.prominentBackground', Color.black.transparent(0.5), localize('statusBarProminentItemBackground', "Status bar prominent items background color. Prominent items stand out from other status bar entries to indicate importance. The status bar is shown in the bottom of the window."));
356
357
export const STATUS_BAR_PROMINENT_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.prominentHoverForeground', STATUS_BAR_ITEM_HOVER_FOREGROUND, localize('statusBarProminentItemHoverForeground', "Status bar prominent items foreground color when hovering. Prominent items stand out from other status bar entries to indicate importance. The status bar is shown in the bottom of the window."));
358
359
export const STATUS_BAR_PROMINENT_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.prominentHoverBackground', STATUS_BAR_ITEM_HOVER_BACKGROUND, localize('statusBarProminentItemHoverBackground', "Status bar prominent items background color when hovering. Prominent items stand out from other status bar entries to indicate importance. The status bar is shown in the bottom of the window."));
360
361
export const STATUS_BAR_ERROR_ITEM_BACKGROUND = registerColor('statusBarItem.errorBackground', {
362
dark: darken(errorForeground, .4),
363
light: darken(errorForeground, .4),
364
hcDark: null,
365
hcLight: '#B5200D'
366
}, localize('statusBarErrorItemBackground', "Status bar error items background color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window."));
367
368
export const STATUS_BAR_ERROR_ITEM_FOREGROUND = registerColor('statusBarItem.errorForeground', Color.white, localize('statusBarErrorItemForeground', "Status bar error items foreground color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window."));
369
370
export const STATUS_BAR_ERROR_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.errorHoverForeground', STATUS_BAR_ITEM_HOVER_FOREGROUND, localize('statusBarErrorItemHoverForeground', "Status bar error items foreground color when hovering. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window."));
371
372
export const STATUS_BAR_ERROR_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.errorHoverBackground', STATUS_BAR_ITEM_HOVER_BACKGROUND, localize('statusBarErrorItemHoverBackground', "Status bar error items background color when hovering. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window."));
373
374
export const STATUS_BAR_WARNING_ITEM_BACKGROUND = registerColor('statusBarItem.warningBackground', {
375
dark: darken(editorWarningForeground, .4),
376
light: darken(editorWarningForeground, .4),
377
hcDark: null,
378
hcLight: '#895503'
379
}, localize('statusBarWarningItemBackground', "Status bar warning items background color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window."));
380
381
export const STATUS_BAR_WARNING_ITEM_FOREGROUND = registerColor('statusBarItem.warningForeground', Color.white, localize('statusBarWarningItemForeground', "Status bar warning items foreground color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window."));
382
383
export const STATUS_BAR_WARNING_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.warningHoverForeground', STATUS_BAR_ITEM_HOVER_FOREGROUND, localize('statusBarWarningItemHoverForeground', "Status bar warning items foreground color when hovering. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window."));
384
385
export const STATUS_BAR_WARNING_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.warningHoverBackground', STATUS_BAR_ITEM_HOVER_BACKGROUND, localize('statusBarWarningItemHoverBackground', "Status bar warning items background color when hovering. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window."));
386
387
388
// < --- Activity Bar --- >
389
390
export const ACTIVITY_BAR_BACKGROUND = registerColor('activityBar.background', {
391
dark: '#333333',
392
light: '#2C2C2C',
393
hcDark: '#000000',
394
hcLight: '#FFFFFF'
395
}, localize('activityBarBackground', "Activity bar background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
396
397
export const ACTIVITY_BAR_FOREGROUND = registerColor('activityBar.foreground', {
398
dark: Color.white,
399
light: Color.white,
400
hcDark: Color.white,
401
hcLight: editorForeground
402
}, localize('activityBarForeground', "Activity bar item foreground color when it is active. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
403
404
export const ACTIVITY_BAR_INACTIVE_FOREGROUND = registerColor('activityBar.inactiveForeground', {
405
dark: transparent(ACTIVITY_BAR_FOREGROUND, 0.4),
406
light: transparent(ACTIVITY_BAR_FOREGROUND, 0.4),
407
hcDark: Color.white,
408
hcLight: editorForeground
409
}, localize('activityBarInActiveForeground', "Activity bar item foreground color when it is inactive. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
410
411
export const ACTIVITY_BAR_BORDER = registerColor('activityBar.border', {
412
dark: null,
413
light: null,
414
hcDark: contrastBorder,
415
hcLight: contrastBorder
416
}, localize('activityBarBorder', "Activity bar border color separating to the side bar. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
417
418
export const ACTIVITY_BAR_ACTIVE_BORDER = registerColor('activityBar.activeBorder', {
419
dark: ACTIVITY_BAR_FOREGROUND,
420
light: ACTIVITY_BAR_FOREGROUND,
421
hcDark: contrastBorder,
422
hcLight: contrastBorder
423
}, localize('activityBarActiveBorder', "Activity bar border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
424
425
export const ACTIVITY_BAR_ACTIVE_FOCUS_BORDER = registerColor('activityBar.activeFocusBorder', {
426
dark: null,
427
light: null,
428
hcDark: null,
429
hcLight: '#B5200D'
430
}, localize('activityBarActiveFocusBorder', "Activity bar focus border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
431
432
export const ACTIVITY_BAR_ACTIVE_BACKGROUND = registerColor('activityBar.activeBackground', null, localize('activityBarActiveBackground', "Activity bar background color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
433
434
export const ACTIVITY_BAR_DRAG_AND_DROP_BORDER = registerColor('activityBar.dropBorder', {
435
dark: ACTIVITY_BAR_FOREGROUND,
436
light: ACTIVITY_BAR_FOREGROUND,
437
hcDark: null,
438
hcLight: null,
439
}, localize('activityBarDragAndDropBorder', "Drag and drop feedback color for the activity bar items. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
440
441
export const ACTIVITY_BAR_BADGE_BACKGROUND = registerColor('activityBarBadge.background', {
442
dark: '#007ACC',
443
light: '#007ACC',
444
hcDark: '#000000',
445
hcLight: '#0F4A85'
446
}, localize('activityBarBadgeBackground', "Activity notification badge background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
447
448
export const ACTIVITY_BAR_BADGE_FOREGROUND = registerColor('activityBarBadge.foreground', Color.white, localize('activityBarBadgeForeground', "Activity notification badge foreground color. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
449
450
export const ACTIVITY_BAR_TOP_FOREGROUND = registerColor('activityBarTop.foreground', {
451
dark: '#E7E7E7',
452
light: '#424242',
453
hcDark: Color.white,
454
hcLight: editorForeground
455
}, localize('activityBarTop', "Active foreground color of the item in the Activity bar when it is on top / bottom. The activity allows to switch between views of the side bar."));
456
457
export const ACTIVITY_BAR_TOP_ACTIVE_BORDER = registerColor('activityBarTop.activeBorder', {
458
dark: ACTIVITY_BAR_TOP_FOREGROUND,
459
light: ACTIVITY_BAR_TOP_FOREGROUND,
460
hcDark: contrastBorder,
461
hcLight: '#B5200D'
462
}, localize('activityBarTopActiveFocusBorder', "Focus border color for the active item in the Activity bar when it is on top / bottom. The activity allows to switch between views of the side bar."));
463
464
export const ACTIVITY_BAR_TOP_ACTIVE_BACKGROUND = registerColor('activityBarTop.activeBackground', null, localize('activityBarTopActiveBackground', "Background color for the active item in the Activity bar when it is on top / bottom. The activity allows to switch between views of the side bar."));
465
466
export const ACTIVITY_BAR_TOP_INACTIVE_FOREGROUND = registerColor('activityBarTop.inactiveForeground', {
467
dark: transparent(ACTIVITY_BAR_TOP_FOREGROUND, 0.6),
468
light: transparent(ACTIVITY_BAR_TOP_FOREGROUND, 0.75),
469
hcDark: Color.white,
470
hcLight: editorForeground
471
}, localize('activityBarTopInActiveForeground', "Inactive foreground color of the item in the Activity bar when it is on top / bottom. The activity allows to switch between views of the side bar."));
472
473
export const ACTIVITY_BAR_TOP_DRAG_AND_DROP_BORDER = registerColor('activityBarTop.dropBorder', ACTIVITY_BAR_TOP_FOREGROUND, localize('activityBarTopDragAndDropBorder', "Drag and drop feedback color for the items in the Activity bar when it is on top / bottom. The activity allows to switch between views of the side bar."));
474
475
export const ACTIVITY_BAR_TOP_BACKGROUND = registerColor('activityBarTop.background', null, localize('activityBarTopBackground', "Background color of the activity bar when set to top / bottom."));
476
477
478
// < --- Panels --- >
479
480
export const PANEL_BACKGROUND = registerColor('panel.background', editorBackground, localize('panelBackground', "Panel background color. Panels are shown below the editor area and contain views like output and integrated terminal."));
481
482
export const PANEL_BORDER = registerColor('panel.border', {
483
dark: Color.fromHex('#808080').transparent(0.35),
484
light: Color.fromHex('#808080').transparent(0.35),
485
hcDark: contrastBorder,
486
hcLight: contrastBorder
487
}, localize('panelBorder', "Panel border color to separate the panel from the editor. Panels are shown below the editor area and contain views like output and integrated terminal."));
488
489
export const PANEL_TITLE_BORDER = registerColor('panelTitle.border', {
490
dark: null,
491
light: null,
492
hcDark: PANEL_BORDER,
493
hcLight: PANEL_BORDER
494
}, localize('panelTitleBorder', "Panel title border color on the bottom, separating the title from the views. Panels are shown below the editor area and contain views like output and integrated terminal."));
495
496
export const PANEL_ACTIVE_TITLE_FOREGROUND = registerColor('panelTitle.activeForeground', {
497
dark: '#E7E7E7',
498
light: '#424242',
499
hcDark: Color.white,
500
hcLight: editorForeground
501
}, localize('panelActiveTitleForeground', "Title color for the active panel. Panels are shown below the editor area and contain views like output and integrated terminal."));
502
503
export const PANEL_INACTIVE_TITLE_FOREGROUND = registerColor('panelTitle.inactiveForeground', {
504
dark: transparent(PANEL_ACTIVE_TITLE_FOREGROUND, 0.6),
505
light: transparent(PANEL_ACTIVE_TITLE_FOREGROUND, 0.75),
506
hcDark: Color.white,
507
hcLight: editorForeground
508
}, localize('panelInactiveTitleForeground', "Title color for the inactive panel. Panels are shown below the editor area and contain views like output and integrated terminal."));
509
510
export const PANEL_ACTIVE_TITLE_BORDER = registerColor('panelTitle.activeBorder', {
511
dark: PANEL_ACTIVE_TITLE_FOREGROUND,
512
light: PANEL_ACTIVE_TITLE_FOREGROUND,
513
hcDark: contrastBorder,
514
hcLight: '#B5200D'
515
}, localize('panelActiveTitleBorder', "Border color for the active panel title. Panels are shown below the editor area and contain views like output and integrated terminal."));
516
517
export const PANEL_TITLE_BADGE_BACKGROUND = registerColor('panelTitleBadge.background', ACTIVITY_BAR_BADGE_BACKGROUND, localize('panelTitleBadgeBackground', "Panel title badge background color. Panels are shown below the editor area and contain views like output and integrated terminal."));
518
519
export const PANEL_TITLE_BADGE_FOREGROUND = registerColor('panelTitleBadge.foreground', ACTIVITY_BAR_BADGE_FOREGROUND, localize('panelTitleBadgeForeground', "Panel title badge foreground color. Panels are shown below the editor area and contain views like output and integrated terminal."));
520
521
export const PANEL_INPUT_BORDER = registerColor('panelInput.border', {
522
dark: inputBorder,
523
light: Color.fromHex('#ddd'),
524
hcDark: inputBorder,
525
hcLight: inputBorder
526
}, localize('panelInputBorder', "Input box border for inputs in the panel."));
527
528
export const PANEL_DRAG_AND_DROP_BORDER = registerColor('panel.dropBorder', PANEL_ACTIVE_TITLE_FOREGROUND, localize('panelDragAndDropBorder', "Drag and drop feedback color for the panel titles. Panels are shown below the editor area and contain views like output and integrated terminal."));
529
530
export const PANEL_SECTION_DRAG_AND_DROP_BACKGROUND = registerColor('panelSection.dropBackground', EDITOR_DRAG_AND_DROP_BACKGROUND, localize('panelSectionDragAndDropBackground', "Drag and drop feedback color for the panel sections. The color should have transparency so that the panel sections can still shine through. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels."));
531
532
export const PANEL_SECTION_HEADER_BACKGROUND = registerColor('panelSectionHeader.background', {
533
dark: Color.fromHex('#808080').transparent(0.2),
534
light: Color.fromHex('#808080').transparent(0.2),
535
hcDark: null,
536
hcLight: null,
537
}, localize('panelSectionHeaderBackground', "Panel section header background color. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels."));
538
539
export const PANEL_SECTION_HEADER_FOREGROUND = registerColor('panelSectionHeader.foreground', null, localize('panelSectionHeaderForeground', "Panel section header foreground color. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels."));
540
541
export const PANEL_SECTION_HEADER_BORDER = registerColor('panelSectionHeader.border', contrastBorder, localize('panelSectionHeaderBorder', "Panel section header border color used when multiple views are stacked vertically in the panel. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels."));
542
543
export const PANEL_SECTION_BORDER = registerColor('panelSection.border', PANEL_BORDER, localize('panelSectionBorder', "Panel section border color used when multiple views are stacked horizontally in the panel. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels."));
544
545
export const PANEL_STICKY_SCROLL_BACKGROUND = registerColor('panelStickyScroll.background', PANEL_BACKGROUND, localize('panelStickyScrollBackground', "Background color of sticky scroll in the panel."));
546
547
export const PANEL_STICKY_SCROLL_BORDER = registerColor('panelStickyScroll.border', null, localize('panelStickyScrollBorder', "Border color of sticky scroll in the panel."));
548
549
export const PANEL_STICKY_SCROLL_SHADOW = registerColor('panelStickyScroll.shadow', scrollbarShadow, localize('panelStickyScrollShadow', "Shadow color of sticky scroll in the panel."));
550
551
552
// < --- Profiles --- >
553
554
export const PROFILE_BADGE_BACKGROUND = registerColor('profileBadge.background', {
555
dark: '#4D4D4D',
556
light: '#C4C4C4',
557
hcDark: Color.white,
558
hcLight: Color.black
559
}, localize('profileBadgeBackground', "Profile badge background color. The profile badge shows on top of the settings gear icon in the activity bar."));
560
561
export const PROFILE_BADGE_FOREGROUND = registerColor('profileBadge.foreground', {
562
dark: Color.white,
563
light: '#333333',
564
hcDark: Color.black,
565
hcLight: Color.white
566
}, localize('profileBadgeForeground', "Profile badge foreground color. The profile badge shows on top of the settings gear icon in the activity bar."));
567
568
569
// < --- Remote --- >
570
571
export const STATUS_BAR_REMOTE_ITEM_BACKGROUND = registerColor('statusBarItem.remoteBackground', ACTIVITY_BAR_BADGE_BACKGROUND, localize('statusBarItemRemoteBackground', "Background color for the remote indicator on the status bar."));
572
573
export const STATUS_BAR_REMOTE_ITEM_FOREGROUND = registerColor('statusBarItem.remoteForeground', ACTIVITY_BAR_BADGE_FOREGROUND, localize('statusBarItemRemoteForeground', "Foreground color for the remote indicator on the status bar."));
574
575
export const STATUS_BAR_REMOTE_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.remoteHoverForeground', STATUS_BAR_ITEM_HOVER_FOREGROUND, localize('statusBarRemoteItemHoverForeground', "Foreground color for the remote indicator on the status bar when hovering."));
576
577
export const STATUS_BAR_REMOTE_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.remoteHoverBackground', {
578
dark: STATUS_BAR_ITEM_HOVER_BACKGROUND,
579
light: STATUS_BAR_ITEM_HOVER_BACKGROUND,
580
hcDark: STATUS_BAR_ITEM_HOVER_BACKGROUND,
581
hcLight: null
582
}, localize('statusBarRemoteItemHoverBackground', "Background color for the remote indicator on the status bar when hovering."));
583
584
export const STATUS_BAR_OFFLINE_ITEM_BACKGROUND = registerColor('statusBarItem.offlineBackground', '#6c1717', localize('statusBarItemOfflineBackground', "Status bar item background color when the workbench is offline."));
585
586
export const STATUS_BAR_OFFLINE_ITEM_FOREGROUND = registerColor('statusBarItem.offlineForeground', STATUS_BAR_REMOTE_ITEM_FOREGROUND, localize('statusBarItemOfflineForeground', "Status bar item foreground color when the workbench is offline."));
587
588
export const STATUS_BAR_OFFLINE_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.offlineHoverForeground', STATUS_BAR_ITEM_HOVER_FOREGROUND, localize('statusBarOfflineItemHoverForeground', "Status bar item foreground hover color when the workbench is offline."));
589
590
export const STATUS_BAR_OFFLINE_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.offlineHoverBackground', {
591
dark: STATUS_BAR_ITEM_HOVER_BACKGROUND,
592
light: STATUS_BAR_ITEM_HOVER_BACKGROUND,
593
hcDark: STATUS_BAR_ITEM_HOVER_BACKGROUND,
594
hcLight: null
595
}, localize('statusBarOfflineItemHoverBackground', "Status bar item background hover color when the workbench is offline."));
596
597
export const EXTENSION_BADGE_BACKGROUND = registerColor('extensionBadge.remoteBackground', ACTIVITY_BAR_BADGE_BACKGROUND, localize('extensionBadge.remoteBackground', "Background color for the remote badge in the extensions view."));
598
export const EXTENSION_BADGE_FOREGROUND = registerColor('extensionBadge.remoteForeground', ACTIVITY_BAR_BADGE_FOREGROUND, localize('extensionBadge.remoteForeground', "Foreground color for the remote badge in the extensions view."));
599
600
601
// < --- Side Bar --- >
602
603
export const SIDE_BAR_BACKGROUND = registerColor('sideBar.background', {
604
dark: '#252526',
605
light: '#F3F3F3',
606
hcDark: '#000000',
607
hcLight: '#FFFFFF'
608
}, localize('sideBarBackground', "Side bar background color. The side bar is the container for views like explorer and search."));
609
610
export const SIDE_BAR_FOREGROUND = registerColor('sideBar.foreground', null, localize('sideBarForeground', "Side bar foreground color. The side bar is the container for views like explorer and search."));
611
612
export const SIDE_BAR_BORDER = registerColor('sideBar.border', {
613
dark: null,
614
light: null,
615
hcDark: contrastBorder,
616
hcLight: contrastBorder
617
}, localize('sideBarBorder', "Side bar border color on the side separating to the editor. The side bar is the container for views like explorer and search."));
618
619
export const SIDE_BAR_TITLE_BACKGROUND = registerColor('sideBarTitle.background', SIDE_BAR_BACKGROUND, localize('sideBarTitleBackground', "Side bar title background color. The side bar is the container for views like explorer and search."));
620
621
export const SIDE_BAR_TITLE_FOREGROUND = registerColor('sideBarTitle.foreground', SIDE_BAR_FOREGROUND, localize('sideBarTitleForeground', "Side bar title foreground color. The side bar is the container for views like explorer and search."));
622
623
export const SIDE_BAR_TITLE_BORDER = registerColor('sideBarTitle.border', {
624
dark: null,
625
light: null,
626
hcDark: SIDE_BAR_BORDER,
627
hcLight: SIDE_BAR_BORDER
628
}, localize('sideBarTitleBorder', "Side bar title border color on the bottom, separating the title from the views. The side bar is the container for views like explorer and search."));
629
630
export const SIDE_BAR_DRAG_AND_DROP_BACKGROUND = registerColor('sideBar.dropBackground', EDITOR_DRAG_AND_DROP_BACKGROUND, localize('sideBarDragAndDropBackground', "Drag and drop feedback color for the side bar sections. The color should have transparency so that the side bar sections can still shine through. The side bar is the container for views like explorer and search. Side bar sections are views nested within the side bar."));
631
632
export const SIDE_BAR_SECTION_HEADER_BACKGROUND = registerColor('sideBarSectionHeader.background', {
633
dark: Color.fromHex('#808080').transparent(0.2),
634
light: Color.fromHex('#808080').transparent(0.2),
635
hcDark: null,
636
hcLight: null
637
}, localize('sideBarSectionHeaderBackground', "Side bar section header background color. The side bar is the container for views like explorer and search. Side bar sections are views nested within the side bar."));
638
639
export const SIDE_BAR_SECTION_HEADER_FOREGROUND = registerColor('sideBarSectionHeader.foreground', SIDE_BAR_FOREGROUND, localize('sideBarSectionHeaderForeground', "Side bar section header foreground color. The side bar is the container for views like explorer and search. Side bar sections are views nested within the side bar."));
640
641
export const SIDE_BAR_SECTION_HEADER_BORDER = registerColor('sideBarSectionHeader.border', contrastBorder, localize('sideBarSectionHeaderBorder', "Side bar section header border color. The side bar is the container for views like explorer and search. Side bar sections are views nested within the side bar."));
642
643
export const ACTIVITY_BAR_TOP_BORDER = registerColor('sideBarActivityBarTop.border', SIDE_BAR_SECTION_HEADER_BORDER, localize('sideBarActivityBarTopBorder', "Border color between the activity bar at the top/bottom and the views."));
644
645
export const SIDE_BAR_STICKY_SCROLL_BACKGROUND = registerColor('sideBarStickyScroll.background', SIDE_BAR_BACKGROUND, localize('sideBarStickyScrollBackground', "Background color of sticky scroll in the side bar."));
646
647
export const SIDE_BAR_STICKY_SCROLL_BORDER = registerColor('sideBarStickyScroll.border', null, localize('sideBarStickyScrollBorder', "Border color of sticky scroll in the side bar."));
648
649
export const SIDE_BAR_STICKY_SCROLL_SHADOW = registerColor('sideBarStickyScroll.shadow', scrollbarShadow, localize('sideBarStickyScrollShadow', "Shadow color of sticky scroll in the side bar."));
650
651
// < --- Title Bar --- >
652
653
export const TITLE_BAR_ACTIVE_FOREGROUND = registerColor('titleBar.activeForeground', {
654
dark: '#CCCCCC',
655
light: '#333333',
656
hcDark: '#FFFFFF',
657
hcLight: '#292929'
658
}, localize('titleBarActiveForeground', "Title bar foreground when the window is active."));
659
660
export const TITLE_BAR_INACTIVE_FOREGROUND = registerColor('titleBar.inactiveForeground', {
661
dark: transparent(TITLE_BAR_ACTIVE_FOREGROUND, 0.6),
662
light: transparent(TITLE_BAR_ACTIVE_FOREGROUND, 0.6),
663
hcDark: null,
664
hcLight: '#292929'
665
}, localize('titleBarInactiveForeground', "Title bar foreground when the window is inactive."));
666
667
export const TITLE_BAR_ACTIVE_BACKGROUND = registerColor('titleBar.activeBackground', {
668
dark: '#3C3C3C',
669
light: '#DDDDDD',
670
hcDark: '#000000',
671
hcLight: '#FFFFFF'
672
}, localize('titleBarActiveBackground', "Title bar background when the window is active."));
673
674
export const TITLE_BAR_INACTIVE_BACKGROUND = registerColor('titleBar.inactiveBackground', {
675
dark: transparent(TITLE_BAR_ACTIVE_BACKGROUND, 0.6),
676
light: transparent(TITLE_BAR_ACTIVE_BACKGROUND, 0.6),
677
hcDark: null,
678
hcLight: null,
679
}, localize('titleBarInactiveBackground', "Title bar background when the window is inactive."));
680
681
export const TITLE_BAR_BORDER = registerColor('titleBar.border', {
682
dark: null,
683
light: null,
684
hcDark: contrastBorder,
685
hcLight: contrastBorder
686
}, localize('titleBarBorder', "Title bar border color."));
687
688
// < --- Menubar --- >
689
690
export const MENUBAR_SELECTION_FOREGROUND = registerColor('menubar.selectionForeground', TITLE_BAR_ACTIVE_FOREGROUND, localize('menubarSelectionForeground', "Foreground color of the selected menu item in the menubar."));
691
692
export const MENUBAR_SELECTION_BACKGROUND = registerColor('menubar.selectionBackground', {
693
dark: toolbarHoverBackground,
694
light: toolbarHoverBackground,
695
hcDark: null,
696
hcLight: null,
697
}, localize('menubarSelectionBackground', "Background color of the selected menu item in the menubar."));
698
699
export const MENUBAR_SELECTION_BORDER = registerColor('menubar.selectionBorder', {
700
dark: null,
701
light: null,
702
hcDark: activeContrastBorder,
703
hcLight: activeContrastBorder,
704
}, localize('menubarSelectionBorder', "Border color of the selected menu item in the menubar."));
705
706
// < --- Command Center --- >
707
708
// foreground (inactive and active)
709
export const COMMAND_CENTER_FOREGROUND = registerColor(
710
'commandCenter.foreground',
711
TITLE_BAR_ACTIVE_FOREGROUND,
712
localize('commandCenter-foreground', "Foreground color of the command center"),
713
false
714
);
715
export const COMMAND_CENTER_ACTIVEFOREGROUND = registerColor(
716
'commandCenter.activeForeground',
717
MENUBAR_SELECTION_FOREGROUND,
718
localize('commandCenter-activeForeground', "Active foreground color of the command center"),
719
false
720
);
721
export const COMMAND_CENTER_INACTIVEFOREGROUND = registerColor(
722
'commandCenter.inactiveForeground',
723
TITLE_BAR_INACTIVE_FOREGROUND,
724
localize('commandCenter-inactiveForeground', "Foreground color of the command center when the window is inactive"),
725
false
726
);
727
// background (inactive and active)
728
export const COMMAND_CENTER_BACKGROUND = registerColor(
729
'commandCenter.background',
730
{ dark: Color.white.transparent(0.05), hcDark: null, light: Color.black.transparent(0.05), hcLight: null },
731
localize('commandCenter-background', "Background color of the command center"),
732
false
733
);
734
export const COMMAND_CENTER_ACTIVEBACKGROUND = registerColor(
735
'commandCenter.activeBackground',
736
{ dark: Color.white.transparent(0.08), hcDark: MENUBAR_SELECTION_BACKGROUND, light: Color.black.transparent(0.08), hcLight: MENUBAR_SELECTION_BACKGROUND },
737
localize('commandCenter-activeBackground', "Active background color of the command center"),
738
false
739
);
740
// border: active and inactive. defaults to active background
741
export const COMMAND_CENTER_BORDER = registerColor(
742
'commandCenter.border', { dark: transparent(TITLE_BAR_ACTIVE_FOREGROUND, .20), hcDark: contrastBorder, light: transparent(TITLE_BAR_ACTIVE_FOREGROUND, .20), hcLight: contrastBorder },
743
localize('commandCenter-border', "Border color of the command center"),
744
false
745
);
746
export const COMMAND_CENTER_ACTIVEBORDER = registerColor(
747
'commandCenter.activeBorder', { dark: transparent(TITLE_BAR_ACTIVE_FOREGROUND, .30), hcDark: TITLE_BAR_ACTIVE_FOREGROUND, light: transparent(TITLE_BAR_ACTIVE_FOREGROUND, .30), hcLight: TITLE_BAR_ACTIVE_FOREGROUND },
748
localize('commandCenter-activeBorder', "Active border color of the command center"),
749
false
750
);
751
// border: defaults to active background
752
export const COMMAND_CENTER_INACTIVEBORDER = registerColor(
753
'commandCenter.inactiveBorder', transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25),
754
localize('commandCenter-inactiveBorder', "Border color of the command center when the window is inactive"),
755
false
756
);
757
758
759
// < --- Notifications --- >
760
761
export const NOTIFICATIONS_CENTER_BORDER = registerColor('notificationCenter.border', {
762
dark: widgetBorder,
763
light: widgetBorder,
764
hcDark: contrastBorder,
765
hcLight: contrastBorder
766
}, localize('notificationCenterBorder', "Notifications center border color. Notifications slide in from the bottom right of the window."));
767
768
export const NOTIFICATIONS_TOAST_BORDER = registerColor('notificationToast.border', {
769
dark: widgetBorder,
770
light: widgetBorder,
771
hcDark: contrastBorder,
772
hcLight: contrastBorder
773
}, localize('notificationToastBorder', "Notification toast border color. Notifications slide in from the bottom right of the window."));
774
775
export const NOTIFICATIONS_FOREGROUND = registerColor('notifications.foreground', editorWidgetForeground, localize('notificationsForeground', "Notifications foreground color. Notifications slide in from the bottom right of the window."));
776
777
export const NOTIFICATIONS_BACKGROUND = registerColor('notifications.background', editorWidgetBackground, localize('notificationsBackground', "Notifications background color. Notifications slide in from the bottom right of the window."));
778
779
export const NOTIFICATIONS_LINKS = registerColor('notificationLink.foreground', textLinkForeground, localize('notificationsLink', "Notification links foreground color. Notifications slide in from the bottom right of the window."));
780
781
export const NOTIFICATIONS_CENTER_HEADER_FOREGROUND = registerColor('notificationCenterHeader.foreground', null, localize('notificationCenterHeaderForeground', "Notifications center header foreground color. Notifications slide in from the bottom right of the window."));
782
783
export const NOTIFICATIONS_CENTER_HEADER_BACKGROUND = registerColor('notificationCenterHeader.background', {
784
dark: lighten(NOTIFICATIONS_BACKGROUND, 0.3),
785
light: darken(NOTIFICATIONS_BACKGROUND, 0.05),
786
hcDark: NOTIFICATIONS_BACKGROUND,
787
hcLight: NOTIFICATIONS_BACKGROUND
788
}, localize('notificationCenterHeaderBackground', "Notifications center header background color. Notifications slide in from the bottom right of the window."));
789
790
export const NOTIFICATIONS_BORDER = registerColor('notifications.border', NOTIFICATIONS_CENTER_HEADER_BACKGROUND, localize('notificationsBorder', "Notifications border color separating from other notifications in the notifications center. Notifications slide in from the bottom right of the window."));
791
792
export const NOTIFICATIONS_ERROR_ICON_FOREGROUND = registerColor('notificationsErrorIcon.foreground', editorErrorForeground, localize('notificationsErrorIconForeground', "The color used for the icon of error notifications. Notifications slide in from the bottom right of the window."));
793
794
export const NOTIFICATIONS_WARNING_ICON_FOREGROUND = registerColor('notificationsWarningIcon.foreground', editorWarningForeground, localize('notificationsWarningIconForeground', "The color used for the icon of warning notifications. Notifications slide in from the bottom right of the window."));
795
796
export const NOTIFICATIONS_INFO_ICON_FOREGROUND = registerColor('notificationsInfoIcon.foreground', editorInfoForeground, localize('notificationsInfoIconForeground', "The color used for the icon of info notifications. Notifications slide in from the bottom right of the window."));
797
798
export const WINDOW_ACTIVE_BORDER = registerColor('window.activeBorder', {
799
dark: null,
800
light: null,
801
hcDark: contrastBorder,
802
hcLight: contrastBorder
803
}, localize('windowActiveBorder', "The color used for the border of the window when it is active on macOS or Linux. Requires custom title bar style and custom or hidden window controls on Linux."));
804
805
export const WINDOW_INACTIVE_BORDER = registerColor('window.inactiveBorder', {
806
dark: null,
807
light: null,
808
hcDark: contrastBorder,
809
hcLight: contrastBorder
810
}, localize('windowInactiveBorder', "The color used for the border of the window when it is inactive on macOS or Linux. Requires custom title bar style and custom or hidden window controls on Linux."));
811
812