custom-electron-titlebar 3.2.6 → 3.2.10
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.
- package/.github/FUNDING.yml +1 -0
- package/README.md +15 -24
- package/_config.yml +1 -0
- package/{lib → build}/browser/browser.d.ts +0 -0
- package/{lib → build}/browser/browser.js +0 -0
- package/{lib → build}/browser/browser.js.map +0 -0
- package/{lib → build}/browser/event.d.ts +0 -0
- package/{lib → build}/browser/event.js +2 -1
- package/{lib → build}/browser/event.js.map +1 -1
- package/{lib → build}/browser/iframe.d.ts +0 -0
- package/{lib → build}/browser/iframe.js +0 -0
- package/{lib → build}/browser/iframe.js.map +0 -0
- package/{lib → build}/browser/keyboardEvent.d.ts +0 -0
- package/{lib → build}/browser/keyboardEvent.js +0 -0
- package/{lib → build}/browser/keyboardEvent.js.map +0 -0
- package/{lib → build}/browser/mouseEvent.d.ts +0 -0
- package/{lib → build}/browser/mouseEvent.js +0 -0
- package/{lib → build}/browser/mouseEvent.js.map +0 -0
- package/{lib → build}/common/arrays.d.ts +0 -0
- package/{lib → build}/common/arrays.js +0 -0
- package/{lib → build}/common/arrays.js.map +0 -0
- package/{lib → build}/common/async.d.ts +0 -0
- package/{lib → build}/common/async.js +0 -0
- package/{lib → build}/common/async.js.map +0 -0
- package/{lib → build}/common/charCode.d.ts +0 -0
- package/{lib → build}/common/charCode.js +0 -0
- package/{lib → build}/common/charCode.js.map +0 -0
- package/{lib → build}/common/color.d.ts +0 -0
- package/{lib → build}/common/color.js +0 -0
- package/{lib → build}/common/color.js.map +0 -0
- package/{lib → build}/common/dom.d.ts +0 -0
- package/{lib → build}/common/dom.js +16 -14
- package/build/common/dom.js.map +1 -0
- package/{lib → build}/common/event.d.ts +0 -0
- package/{lib → build}/common/event.js +1 -1
- package/build/common/event.js.map +1 -0
- package/{lib → build}/common/iterator.d.ts +0 -0
- package/{lib → build}/common/iterator.js +0 -0
- package/{lib → build}/common/iterator.js.map +0 -0
- package/{lib → build}/common/keyCodes.d.ts +0 -0
- package/{lib → build}/common/keyCodes.js +0 -0
- package/{lib → build}/common/keyCodes.js.map +0 -0
- package/{lib → build}/common/lifecycle.d.ts +0 -0
- package/{lib → build}/common/lifecycle.js +0 -0
- package/{lib → build}/common/lifecycle.js.map +0 -0
- package/{lib → build}/common/linkedList.d.ts +0 -0
- package/{lib → build}/common/linkedList.js +0 -0
- package/{lib → build}/common/linkedList.js.map +0 -0
- package/{lib → build}/common/platform.d.ts +0 -0
- package/{lib → build}/common/platform.js +0 -0
- package/{lib → build}/common/platform.js.map +0 -0
- package/{lib → build}/index.d.ts +0 -0
- package/{lib → build}/index.js +0 -0
- package/{lib → build}/index.js.map +0 -0
- package/{lib → build}/menu/menu.d.ts +0 -0
- package/{lib → build}/menu/menu.js +38 -38
- package/build/menu/menu.js.map +1 -0
- package/{lib → build}/menu/menuitem.d.ts +10 -2
- package/{lib → build}/menu/menuitem.js +70 -34
- package/build/menu/menuitem.js.map +1 -0
- package/{lib → build}/menubar.d.ts +0 -0
- package/{lib → build}/menubar.js +29 -30
- package/build/menubar.js.map +1 -0
- package/{lib → build}/themebar.d.ts +0 -0
- package/{lib → build}/themebar.js +2 -2
- package/build/themebar.js.map +1 -0
- package/{lib → build}/titlebar.d.ts +0 -0
- package/{lib → build}/titlebar.js +61 -58
- package/build/titlebar.js.map +1 -0
- package/package.json +13 -7
- package/lib/common/dom.js.map +0 -1
- package/lib/common/enableNativeMenuCommands.d.ts +0 -1
- package/lib/common/enableNativeMenuCommands.js +0 -32
- package/lib/common/enableNativeMenuCommands.js.map +0 -1
- package/lib/common/event.js.map +0 -1
- package/lib/main.d.ts +0 -1
- package/lib/main.js +0 -14
- package/lib/main.js.map +0 -1
- package/lib/menu/menu.js.map +0 -1
- package/lib/menu/menuitem.js.map +0 -1
- package/lib/menubar.js.map +0 -1
- package/lib/themebar.js.map +0 -1
- package/lib/titlebar.js.map +0 -1
- package/lib/vs/base/browser/browser.js +0 -150
- package/lib/vs/base/browser/canIUse.js +0 -58
- package/lib/vs/base/browser/codicons.js +0 -37
- package/lib/vs/base/browser/contextmenu.js +0 -9
- package/lib/vs/base/browser/dnd.js +0 -113
- package/lib/vs/base/browser/dom.js +0 -1417
- package/lib/vs/base/browser/event.js +0 -36
- package/lib/vs/base/browser/fastDomNode.js +0 -265
- package/lib/vs/base/browser/formattedTextRenderer.js +0 -248
- package/lib/vs/base/browser/globalMouseMoveMonitor.js +0 -137
- package/lib/vs/base/browser/history.js +0 -9
- package/lib/vs/base/browser/iframe.js +0 -126
- package/lib/vs/base/browser/keyboardEvent.js +0 -599
- package/lib/vs/base/browser/mouseEvent.js +0 -155
- package/lib/vs/base/browser/touch.js +0 -315
- package/lib/vs/base/browser/ui/actionbar/actionViewItems.js +0 -397
- package/lib/vs/base/browser/ui/actionbar/actionbar.js +0 -583
- package/lib/vs/base/browser/ui/checkbox/checkbox.js +0 -251
- package/lib/vs/base/browser/ui/codicons/codiconLabel.js +0 -31
- package/lib/vs/base/browser/ui/codicons/codiconStyles.js +0 -47
- package/lib/vs/base/browser/ui/contextview/contextview.js +0 -367
- package/lib/vs/base/browser/ui/dropdown/dropdown.js +0 -256
- package/lib/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +0 -120
- package/lib/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +0 -118
- package/lib/vs/base/browser/ui/list/list.js +0 -54
- package/lib/vs/base/browser/ui/list/listPaging.js +0 -322
- package/lib/vs/base/browser/ui/list/listView.js +0 -1388
- package/lib/vs/base/browser/ui/list/listWidget.js +0 -1709
- package/lib/vs/base/browser/ui/list/rangeMap.js +0 -223
- package/lib/vs/base/browser/ui/list/rowCache.js +0 -113
- package/lib/vs/base/browser/ui/list/splice.js +0 -23
- package/lib/vs/base/browser/ui/menu/menu.js +0 -1371
- package/lib/vs/base/browser/ui/menu/menubar.js +0 -1139
- package/lib/vs/base/browser/ui/scrollbar/abstractScrollbar.js +0 -278
- package/lib/vs/base/browser/ui/scrollbar/horizontalScrollbar.js +0 -115
- package/lib/vs/base/browser/ui/scrollbar/scrollableElement.js +0 -646
- package/lib/vs/base/browser/ui/scrollbar/scrollableElementOptions.js +0 -9
- package/lib/vs/base/browser/ui/scrollbar/scrollbarArrow.js +0 -106
- package/lib/vs/base/browser/ui/scrollbar/scrollbarState.js +0 -184
- package/lib/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js +0 -116
- package/lib/vs/base/browser/ui/scrollbar/verticalScrollbar.js +0 -114
- package/lib/vs/base/browser/ui/selectBox/selectBox.js +0 -85
- package/lib/vs/base/browser/ui/selectBox/selectBoxCustom.js +0 -985
- package/lib/vs/base/browser/ui/selectBox/selectBoxNative.js +0 -188
- package/lib/vs/base/browser/ui/toolbar/toolbar.js +0 -206
- package/lib/vs/base/browser/ui/widget.js +0 -69
- package/lib/vs/base/common/actions.js +0 -224
- package/lib/vs/base/common/amd.js +0 -31
- package/lib/vs/base/common/arrays.js +0 -641
- package/lib/vs/base/common/assert.js +0 -21
- package/lib/vs/base/common/async.js +0 -966
- package/lib/vs/base/common/buffer.js +0 -250
- package/lib/vs/base/common/cache.js +0 -40
- package/lib/vs/base/common/cancellation.js +0 -146
- package/lib/vs/base/common/charCode.js +0 -9
- package/lib/vs/base/common/codicon.js +0 -136
- package/lib/vs/base/common/codicons.js +0 -1378
- package/lib/vs/base/common/collections.js +0 -133
- package/lib/vs/base/common/color.js +0 -716
- package/lib/vs/base/common/comparers.js +0 -280
- package/lib/vs/base/common/console.js +0 -142
- package/lib/vs/base/common/date.js +0 -113
- package/lib/vs/base/common/decorators.js +0 -169
- package/lib/vs/base/common/errorMessage.js +0 -93
- package/lib/vs/base/common/errors.js +0 -213
- package/lib/vs/base/common/errorsWithActions.js +0 -28
- package/lib/vs/base/common/event.js +0 -873
- package/lib/vs/base/common/extpath.js +0 -401
- package/lib/vs/base/common/filters.js +0 -948
- package/lib/vs/base/common/functional.js +0 -28
- package/lib/vs/base/common/fuzzyScorer.js +0 -811
- package/lib/vs/base/common/glob.js +0 -696
- package/lib/vs/base/common/hash.js +0 -359
- package/lib/vs/base/common/history.js +0 -116
- package/lib/vs/base/common/htmlContent.js +0 -162
- package/lib/vs/base/common/idGenerator.js +0 -25
- package/lib/vs/base/common/iterator.js +0 -118
- package/lib/vs/base/common/json.js +0 -1624
- package/lib/vs/base/common/jsonEdit.js +0 -272
- package/lib/vs/base/common/jsonErrorMessages.js +0 -69
- package/lib/vs/base/common/jsonFormatter.js +0 -316
- package/lib/vs/base/common/jsonSchema.js +0 -9
- package/lib/vs/base/common/keyCodes.js +0 -591
- package/lib/vs/base/common/keybindingLabels.js +0 -231
- package/lib/vs/base/common/keybindingParser.js +0 -142
- package/lib/vs/base/common/labels.js +0 -430
- package/lib/vs/base/common/lazy.js +0 -71
- package/lib/vs/base/common/lifecycle.js +0 -308
- package/lib/vs/base/common/linkedList.js +0 -152
- package/lib/vs/base/common/linkedText.js +0 -73
- package/lib/vs/base/common/map.js +0 -1108
- package/lib/vs/base/common/marshalling.js +0 -80
- package/lib/vs/base/common/mime.js +0 -321
- package/lib/vs/base/common/navigator.js +0 -50
- package/lib/vs/base/common/network.js +0 -160
- package/lib/vs/base/common/normalization.js +0 -78
- package/lib/vs/base/common/numbers.js +0 -55
- package/lib/vs/base/common/objects.js +0 -268
- package/lib/vs/base/common/paging.js +0 -190
- package/lib/vs/base/common/parsers.js +0 -78
- package/lib/vs/base/common/path.js +0 -1550
- package/lib/vs/base/common/platform.js +0 -245
- package/lib/vs/base/common/process.js +0 -52
- package/lib/vs/base/common/processes.js +0 -32
- package/lib/vs/base/common/range.js +0 -79
- package/lib/vs/base/common/resourceTree.js +0 -185
- package/lib/vs/base/common/resources.js +0 -421
- package/lib/vs/base/common/scanCode.js +0 -1472
- package/lib/vs/base/common/scrollable.js +0 -397
- package/lib/vs/base/common/search.js +0 -55
- package/lib/vs/base/common/sequence.js +0 -64
- package/lib/vs/base/common/severity.js +0 -55
- package/lib/vs/base/common/skipList.js +0 -234
- package/lib/vs/base/common/stopwatch.js +0 -45
- package/lib/vs/base/common/stream.js +0 -418
- package/lib/vs/base/common/strings.js +0 -1283
- package/lib/vs/base/common/styler.js +0 -9
- package/lib/vs/base/common/types.js +0 -296
- package/lib/vs/base/common/uint.js +0 -46
- package/lib/vs/base/common/uri.js +0 -756
- package/lib/vs/base/common/uriIpc.js +0 -154
- package/lib/vs/base/common/uuid.js +0 -70
- package/lib/vs/nls.mock.js +0 -31
- package/lib/vs/platform/actions/browser/menuEntryActionViewItem.js +0 -342
- package/lib/vs/platform/actions/common/actions.js +0 -456
- package/lib/vs/platform/actions/common/menuService.js +0 -194
- package/lib/vs/platform/clipboard/browser/clipboardService.js +0 -99
- package/lib/vs/platform/clipboard/common/clipboardService.js +0 -14
- package/lib/vs/platform/contextkey/common/contextkey.js +0 -1210
- package/lib/vs/platform/contextkey/common/contextkeys.js +0 -23
- package/lib/vs/platform/contextview/browser/contextView.js +0 -15
- package/lib/vs/platform/contextview/browser/contextViewService.js +0 -96
- package/lib/vs/platform/environment/common/argv.js +0 -9
- package/lib/vs/platform/environment/common/environment.js +0 -15
- package/lib/vs/platform/instantiation/common/descriptors.js +0 -25
- package/lib/vs/platform/instantiation/common/extensions.js +0 -26
- package/lib/vs/platform/instantiation/common/graph.js +0 -93
- package/lib/vs/platform/instantiation/common/instantiation.js +0 -84
- package/lib/vs/platform/instantiation/common/instantiationService.js +0 -361
- package/lib/vs/platform/instantiation/common/serviceCollection.js +0 -39
- package/lib/vs/platform/keybinding/common/baseResolvedKeybinding.js +0 -73
- package/lib/vs/platform/keybinding/common/keybinding.js +0 -14
- package/lib/vs/platform/keybinding/common/keybindingResolver.js +0 -391
- package/lib/vs/platform/keybinding/common/keybindingsRegistry.js +0 -229
- package/lib/vs/platform/keybinding/common/resolvedKeybindingItem.js +0 -47
- package/lib/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js +0 -160
- package/lib/vs/platform/layout/browser/layoutService.js +0 -14
- package/lib/vs/platform/menubar/common/menubar.js +0 -34
- package/lib/vs/platform/registry/common/platform.js +0 -38
- package/lib/vs/platform/theme/browser/checkbox.js +0 -32
- package/lib/vs/platform/theme/common/colorRegistry.js +0 -1154
- package/lib/vs/platform/theme/common/styler.js +0 -290
- package/lib/vs/platform/theme/common/theme.js +0 -21
- package/lib/vs/platform/theme/common/themeService.js +0 -176
- package/lib/vs/platform/theme/common/tokenClassificationRegistry.js +0 -540
- package/lib/vs/platform/theme/test/common/testThemeService.js +0 -98
|
@@ -1,1154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.workbenchColorsSchemaId = exports.resolveColorValue = exports.oneOf = exports.transparent = exports.lighten = exports.darken = exports.chartsPurple = exports.chartsGreen = exports.chartsOrange = exports.chartsYellow = exports.chartsBlue = exports.chartsRed = exports.chartsLines = exports.chartsForeground = exports.problemsInfoIconForeground = exports.problemsWarningIconForeground = exports.problemsErrorIconForeground = exports.minimapSliderActiveBackground = exports.minimapSliderHoverBackground = exports.minimapSliderBackground = exports.minimapBackground = exports.minimapWarning = exports.minimapError = exports.minimapSelection = exports.minimapFindMatch = exports.overviewRulerSelectionHighlightForeground = exports.overviewRulerFindMatchForeground = exports.overviewRulerCommonContentForeground = exports.overviewRulerIncomingContentForeground = exports.overviewRulerCurrentContentForeground = exports.mergeBorder = exports.mergeCommonContentBackground = exports.mergeCommonHeaderBackground = exports.mergeIncomingContentBackground = exports.mergeIncomingHeaderBackground = exports.mergeCurrentContentBackground = exports.mergeCurrentHeaderBackground = exports.breadcrumbsPickerBackground = exports.breadcrumbsActiveSelectionForeground = exports.breadcrumbsFocusForeground = exports.breadcrumbsBackground = exports.breadcrumbsForeground = exports.snippetFinalTabstopHighlightBorder = exports.snippetFinalTabstopHighlightBackground = exports.snippetTabstopHighlightBorder = exports.snippetTabstopHighlightBackground = exports.menuSeparatorBackground = exports.menuSelectionBorder = exports.menuSelectionBackground = exports.menuSelectionForeground = exports.menuBackground = exports.menuForeground = exports.menuBorder = exports.listDeemphasizedForeground = exports.treeIndentGuidesStroke = exports.listFilterMatchHighlightBorder = exports.listFilterMatchHighlight = exports.listFilterWidgetNoMatchesOutline = exports.listFilterWidgetOutline = exports.listFilterWidgetBackground = exports.listWarningForeground = exports.listErrorForeground = exports.listInvalidItemForeground = exports.listHighlightForeground = exports.listDropBackground = exports.listHoverForeground = exports.listHoverBackground = exports.listInactiveFocusBackground = exports.listInactiveSelectionForeground = exports.listInactiveSelectionBackground = exports.listActiveSelectionForeground = exports.listActiveSelectionBackground = exports.listFocusForeground = exports.listFocusBackground = exports.diffDiagonalFill = exports.diffBorder = exports.diffRemovedOutline = exports.diffInsertedOutline = exports.diffRemoved = exports.diffInserted = exports.defaultRemoveColor = exports.defaultInsertColor = exports.editorLightBulbAutoFixForeground = exports.editorLightBulbForeground = exports.editorActiveLinkForeground = exports.editorHoverStatusBarBackground = exports.editorHoverBorder = exports.editorHoverForeground = exports.editorHoverBackground = exports.editorHoverHighlight = exports.searchEditorFindMatchBorder = exports.searchEditorFindMatch = exports.editorFindRangeHighlightBorder = exports.editorFindMatchHighlightBorder = exports.editorFindMatchBorder = exports.editorFindRangeHighlight = exports.editorFindMatchHighlight = exports.editorFindMatch = exports.editorSelectionHighlightBorder = exports.editorSelectionHighlight = exports.editorInactiveSelection = exports.editorSelectionForeground = exports.editorSelectionBackground = exports.pickerGroupBorder = exports.pickerGroupForeground = exports.quickInputTitleBackground = exports.quickInputForeground = exports.quickInputBackground = exports.editorWidgetResizeBorder = exports.editorWidgetBorder = exports.editorWidgetForeground = exports.editorWidgetBackground = exports.editorForeground = exports.editorBackground = exports.editorHintBorder = exports.editorHintForeground = exports.editorInfoBorder = exports.editorInfoForeground = exports.editorWarningBorder = exports.editorWarningForeground = exports.editorErrorBorder = exports.editorErrorForeground = exports.progressBarBackground = exports.scrollbarSliderActiveBackground = exports.scrollbarSliderHoverBackground = exports.scrollbarSliderBackground = exports.scrollbarShadow = exports.badgeForeground = exports.badgeBackground = exports.buttonSecondaryHoverBackground = exports.buttonSecondaryBackground = exports.buttonSecondaryForeground = exports.buttonHoverBackground = exports.buttonBackground = exports.buttonForeground = exports.simpleCheckboxBorder = exports.simpleCheckboxForeground = exports.simpleCheckboxBackground = exports.selectBorder = exports.selectForeground = exports.selectListBackground = exports.selectBackground = exports.inputValidationErrorBorder = exports.inputValidationErrorForeground = exports.inputValidationErrorBackground = exports.inputValidationWarningBorder = exports.inputValidationWarningForeground = exports.inputValidationWarningBackground = exports.inputValidationInfoBorder = exports.inputValidationInfoForeground = exports.inputValidationInfoBackground = exports.inputPlaceholderForeground = exports.inputActiveOptionForeground = exports.inputActiveOptionBackground = exports.inputActiveOptionBorder = exports.inputBorder = exports.inputForeground = exports.inputBackground = exports.widgetShadow = exports.textCodeBlockBackground = exports.textBlockQuoteBorder = exports.textBlockQuoteBackground = exports.textPreformatForeground = exports.textLinkActiveForeground = exports.textLinkForeground = exports.textSeparatorForeground = exports.selectionBackground = exports.activeContrastBorder = exports.contrastBorder = exports.focusBorder = exports.iconForeground = exports.descriptionForeground = exports.errorForeground = exports.foreground = exports.getColorRegistry = exports.registerColor = exports.Extensions = void 0;
|
|
11
|
-
|
|
12
|
-
const color_1 = require("../../../base/common/color");
|
|
13
|
-
|
|
14
|
-
const event_1 = require("../../../base/common/event");
|
|
15
|
-
|
|
16
|
-
const nls = require("../../../nls"); // color registry
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.Extensions = {
|
|
20
|
-
ColorContribution: 'base.contributions.colors'
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
class ColorRegistry {
|
|
24
|
-
constructor() {
|
|
25
|
-
this._onDidChangeSchema = new event_1.Emitter();
|
|
26
|
-
this.onDidChangeSchema = this._onDidChangeSchema.event;
|
|
27
|
-
this.colorSchema = {
|
|
28
|
-
type: 'object',
|
|
29
|
-
properties: {}
|
|
30
|
-
};
|
|
31
|
-
this.colorReferenceSchema = {
|
|
32
|
-
type: 'string',
|
|
33
|
-
enum: [],
|
|
34
|
-
enumDescriptions: []
|
|
35
|
-
};
|
|
36
|
-
this.colorsById = {};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
registerColor(id, defaults, description, needsTransparency = false, deprecationMessage) {
|
|
40
|
-
let colorContribution = {
|
|
41
|
-
id,
|
|
42
|
-
description,
|
|
43
|
-
defaults,
|
|
44
|
-
needsTransparency,
|
|
45
|
-
deprecationMessage
|
|
46
|
-
};
|
|
47
|
-
this.colorsById[id] = colorContribution;
|
|
48
|
-
let propertySchema = {
|
|
49
|
-
type: 'string',
|
|
50
|
-
description,
|
|
51
|
-
format: 'color-hex',
|
|
52
|
-
defaultSnippets: [{
|
|
53
|
-
body: '${1:#ff0000}'
|
|
54
|
-
}]
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
if (deprecationMessage) {
|
|
58
|
-
propertySchema.deprecationMessage = deprecationMessage;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
this.colorSchema.properties[id] = propertySchema;
|
|
62
|
-
this.colorReferenceSchema.enum.push(id);
|
|
63
|
-
this.colorReferenceSchema.enumDescriptions.push(description);
|
|
64
|
-
|
|
65
|
-
this._onDidChangeSchema.fire();
|
|
66
|
-
|
|
67
|
-
return id;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
deregisterColor(id) {
|
|
71
|
-
delete this.colorsById[id];
|
|
72
|
-
delete this.colorSchema.properties[id];
|
|
73
|
-
const index = this.colorReferenceSchema.enum.indexOf(id);
|
|
74
|
-
|
|
75
|
-
if (index !== -1) {
|
|
76
|
-
this.colorReferenceSchema.enum.splice(index, 1);
|
|
77
|
-
this.colorReferenceSchema.enumDescriptions.splice(index, 1);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
this._onDidChangeSchema.fire();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
getColors() {
|
|
84
|
-
return Object.keys(this.colorsById).map(id => this.colorsById[id]);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
resolveDefaultColor(id, theme) {
|
|
88
|
-
const colorDesc = this.colorsById[id];
|
|
89
|
-
|
|
90
|
-
if (colorDesc && colorDesc.defaults) {
|
|
91
|
-
const colorValue = colorDesc.defaults[theme.type];
|
|
92
|
-
return resolveColorValue(colorValue, theme);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return undefined;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
getColorSchema() {
|
|
99
|
-
return this.colorSchema;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
getColorReferenceSchema() {
|
|
103
|
-
return this.colorReferenceSchema;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
toString() {
|
|
107
|
-
let sorter = (a, b) => {
|
|
108
|
-
let cat1 = a.indexOf('.') === -1 ? 0 : 1;
|
|
109
|
-
let cat2 = b.indexOf('.') === -1 ? 0 : 1;
|
|
110
|
-
|
|
111
|
-
if (cat1 !== cat2) {
|
|
112
|
-
return cat1 - cat2;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return a.localeCompare(b);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
return Object.keys(this.colorsById).sort(sorter).map(k => `- \`${k}\`: ${this.colorsById[k].description}`).join('\n');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const colorRegistry = new ColorRegistry();
|
|
124
|
-
|
|
125
|
-
function registerColor(id, defaults, description, needsTransparency, deprecationMessage) {
|
|
126
|
-
return colorRegistry.registerColor(id, defaults, description, needsTransparency, deprecationMessage);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
exports.registerColor = registerColor;
|
|
130
|
-
|
|
131
|
-
function getColorRegistry() {
|
|
132
|
-
return colorRegistry;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
exports.getColorRegistry = getColorRegistry; // ----- base colors
|
|
136
|
-
|
|
137
|
-
exports.foreground = registerColor('foreground', {
|
|
138
|
-
dark: '#CCCCCC',
|
|
139
|
-
light: '#616161',
|
|
140
|
-
hc: '#FFFFFF'
|
|
141
|
-
}, nls.localize('foreground', "Overall foreground color. This color is only used if not overridden by a component."));
|
|
142
|
-
exports.errorForeground = registerColor('errorForeground', {
|
|
143
|
-
dark: '#F48771',
|
|
144
|
-
light: '#A1260D',
|
|
145
|
-
hc: '#F48771'
|
|
146
|
-
}, nls.localize('errorForeground', "Overall foreground color for error messages. This color is only used if not overridden by a component."));
|
|
147
|
-
exports.descriptionForeground = registerColor('descriptionForeground', {
|
|
148
|
-
light: '#717171',
|
|
149
|
-
dark: transparent(exports.foreground, 0.7),
|
|
150
|
-
hc: transparent(exports.foreground, 0.7)
|
|
151
|
-
}, nls.localize('descriptionForeground', "Foreground color for description text providing additional information, for example for a label."));
|
|
152
|
-
exports.iconForeground = registerColor('icon.foreground', {
|
|
153
|
-
dark: '#C5C5C5',
|
|
154
|
-
light: '#424242',
|
|
155
|
-
hc: '#FFFFFF'
|
|
156
|
-
}, nls.localize('iconForeground', "The default color for icons in the workbench."));
|
|
157
|
-
exports.focusBorder = registerColor('focusBorder', {
|
|
158
|
-
dark: '#007FD4',
|
|
159
|
-
light: '#0090F1',
|
|
160
|
-
hc: '#F38518'
|
|
161
|
-
}, nls.localize('focusBorder', "Overall border color for focused elements. This color is only used if not overridden by a component."));
|
|
162
|
-
exports.contrastBorder = registerColor('contrastBorder', {
|
|
163
|
-
light: null,
|
|
164
|
-
dark: null,
|
|
165
|
-
hc: '#6FC3DF'
|
|
166
|
-
}, nls.localize('contrastBorder', "An extra border around elements to separate them from others for greater contrast."));
|
|
167
|
-
exports.activeContrastBorder = registerColor('contrastActiveBorder', {
|
|
168
|
-
light: null,
|
|
169
|
-
dark: null,
|
|
170
|
-
hc: exports.focusBorder
|
|
171
|
-
}, nls.localize('activeContrastBorder', "An extra border around active elements to separate them from others for greater contrast."));
|
|
172
|
-
exports.selectionBackground = registerColor('selection.background', {
|
|
173
|
-
light: null,
|
|
174
|
-
dark: null,
|
|
175
|
-
hc: null
|
|
176
|
-
}, nls.localize('selectionBackground', "The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")); // ------ text colors
|
|
177
|
-
|
|
178
|
-
exports.textSeparatorForeground = registerColor('textSeparator.foreground', {
|
|
179
|
-
light: '#0000002e',
|
|
180
|
-
dark: '#ffffff2e',
|
|
181
|
-
hc: color_1.Color.black
|
|
182
|
-
}, nls.localize('textSeparatorForeground', "Color for text separators."));
|
|
183
|
-
exports.textLinkForeground = registerColor('textLink.foreground', {
|
|
184
|
-
light: '#006AB1',
|
|
185
|
-
dark: '#3794FF',
|
|
186
|
-
hc: '#3794FF'
|
|
187
|
-
}, nls.localize('textLinkForeground', "Foreground color for links in text."));
|
|
188
|
-
exports.textLinkActiveForeground = registerColor('textLink.activeForeground', {
|
|
189
|
-
light: '#006AB1',
|
|
190
|
-
dark: '#3794FF',
|
|
191
|
-
hc: '#3794FF'
|
|
192
|
-
}, nls.localize('textLinkActiveForeground', "Foreground color for links in text when clicked on and on mouse hover."));
|
|
193
|
-
exports.textPreformatForeground = registerColor('textPreformat.foreground', {
|
|
194
|
-
light: '#A31515',
|
|
195
|
-
dark: '#D7BA7D',
|
|
196
|
-
hc: '#D7BA7D'
|
|
197
|
-
}, nls.localize('textPreformatForeground', "Foreground color for preformatted text segments."));
|
|
198
|
-
exports.textBlockQuoteBackground = registerColor('textBlockQuote.background', {
|
|
199
|
-
light: '#7f7f7f1a',
|
|
200
|
-
dark: '#7f7f7f1a',
|
|
201
|
-
hc: null
|
|
202
|
-
}, nls.localize('textBlockQuoteBackground', "Background color for block quotes in text."));
|
|
203
|
-
exports.textBlockQuoteBorder = registerColor('textBlockQuote.border', {
|
|
204
|
-
light: '#007acc80',
|
|
205
|
-
dark: '#007acc80',
|
|
206
|
-
hc: color_1.Color.white
|
|
207
|
-
}, nls.localize('textBlockQuoteBorder', "Border color for block quotes in text."));
|
|
208
|
-
exports.textCodeBlockBackground = registerColor('textCodeBlock.background', {
|
|
209
|
-
light: '#dcdcdc66',
|
|
210
|
-
dark: '#0a0a0a66',
|
|
211
|
-
hc: color_1.Color.black
|
|
212
|
-
}, nls.localize('textCodeBlockBackground', "Background color for code blocks in text.")); // ----- widgets
|
|
213
|
-
|
|
214
|
-
exports.widgetShadow = registerColor('widget.shadow', {
|
|
215
|
-
dark: '#000000',
|
|
216
|
-
light: '#A8A8A8',
|
|
217
|
-
hc: null
|
|
218
|
-
}, nls.localize('widgetShadow', 'Shadow color of widgets such as find/replace inside the editor.'));
|
|
219
|
-
exports.inputBackground = registerColor('input.background', {
|
|
220
|
-
dark: '#3C3C3C',
|
|
221
|
-
light: color_1.Color.white,
|
|
222
|
-
hc: color_1.Color.black
|
|
223
|
-
}, nls.localize('inputBoxBackground', "Input box background."));
|
|
224
|
-
exports.inputForeground = registerColor('input.foreground', {
|
|
225
|
-
dark: exports.foreground,
|
|
226
|
-
light: exports.foreground,
|
|
227
|
-
hc: exports.foreground
|
|
228
|
-
}, nls.localize('inputBoxForeground', "Input box foreground."));
|
|
229
|
-
exports.inputBorder = registerColor('input.border', {
|
|
230
|
-
dark: null,
|
|
231
|
-
light: null,
|
|
232
|
-
hc: exports.contrastBorder
|
|
233
|
-
}, nls.localize('inputBoxBorder', "Input box border."));
|
|
234
|
-
exports.inputActiveOptionBorder = registerColor('inputOption.activeBorder', {
|
|
235
|
-
dark: '#007ACC00',
|
|
236
|
-
light: '#007ACC00',
|
|
237
|
-
hc: exports.contrastBorder
|
|
238
|
-
}, nls.localize('inputBoxActiveOptionBorder', "Border color of activated options in input fields."));
|
|
239
|
-
exports.inputActiveOptionBackground = registerColor('inputOption.activeBackground', {
|
|
240
|
-
dark: transparent(exports.focusBorder, 0.4),
|
|
241
|
-
light: transparent(exports.focusBorder, 0.2),
|
|
242
|
-
hc: color_1.Color.transparent
|
|
243
|
-
}, nls.localize('inputOption.activeBackground', "Background color of activated options in input fields."));
|
|
244
|
-
exports.inputActiveOptionForeground = registerColor('inputOption.activeForeground', {
|
|
245
|
-
dark: color_1.Color.white,
|
|
246
|
-
light: color_1.Color.black,
|
|
247
|
-
hc: null
|
|
248
|
-
}, nls.localize('inputOption.activeForeground', "Foreground color of activated options in input fields."));
|
|
249
|
-
exports.inputPlaceholderForeground = registerColor('input.placeholderForeground', {
|
|
250
|
-
light: transparent(exports.foreground, 0.5),
|
|
251
|
-
dark: transparent(exports.foreground, 0.5),
|
|
252
|
-
hc: transparent(exports.foreground, 0.7)
|
|
253
|
-
}, nls.localize('inputPlaceholderForeground', "Input box foreground color for placeholder text."));
|
|
254
|
-
exports.inputValidationInfoBackground = registerColor('inputValidation.infoBackground', {
|
|
255
|
-
dark: '#063B49',
|
|
256
|
-
light: '#D6ECF2',
|
|
257
|
-
hc: color_1.Color.black
|
|
258
|
-
}, nls.localize('inputValidationInfoBackground', "Input validation background color for information severity."));
|
|
259
|
-
exports.inputValidationInfoForeground = registerColor('inputValidation.infoForeground', {
|
|
260
|
-
dark: null,
|
|
261
|
-
light: null,
|
|
262
|
-
hc: null
|
|
263
|
-
}, nls.localize('inputValidationInfoForeground', "Input validation foreground color for information severity."));
|
|
264
|
-
exports.inputValidationInfoBorder = registerColor('inputValidation.infoBorder', {
|
|
265
|
-
dark: '#007acc',
|
|
266
|
-
light: '#007acc',
|
|
267
|
-
hc: exports.contrastBorder
|
|
268
|
-
}, nls.localize('inputValidationInfoBorder', "Input validation border color for information severity."));
|
|
269
|
-
exports.inputValidationWarningBackground = registerColor('inputValidation.warningBackground', {
|
|
270
|
-
dark: '#352A05',
|
|
271
|
-
light: '#F6F5D2',
|
|
272
|
-
hc: color_1.Color.black
|
|
273
|
-
}, nls.localize('inputValidationWarningBackground', "Input validation background color for warning severity."));
|
|
274
|
-
exports.inputValidationWarningForeground = registerColor('inputValidation.warningForeground', {
|
|
275
|
-
dark: null,
|
|
276
|
-
light: null,
|
|
277
|
-
hc: null
|
|
278
|
-
}, nls.localize('inputValidationWarningForeground', "Input validation foreground color for warning severity."));
|
|
279
|
-
exports.inputValidationWarningBorder = registerColor('inputValidation.warningBorder', {
|
|
280
|
-
dark: '#B89500',
|
|
281
|
-
light: '#B89500',
|
|
282
|
-
hc: exports.contrastBorder
|
|
283
|
-
}, nls.localize('inputValidationWarningBorder', "Input validation border color for warning severity."));
|
|
284
|
-
exports.inputValidationErrorBackground = registerColor('inputValidation.errorBackground', {
|
|
285
|
-
dark: '#5A1D1D',
|
|
286
|
-
light: '#F2DEDE',
|
|
287
|
-
hc: color_1.Color.black
|
|
288
|
-
}, nls.localize('inputValidationErrorBackground', "Input validation background color for error severity."));
|
|
289
|
-
exports.inputValidationErrorForeground = registerColor('inputValidation.errorForeground', {
|
|
290
|
-
dark: null,
|
|
291
|
-
light: null,
|
|
292
|
-
hc: null
|
|
293
|
-
}, nls.localize('inputValidationErrorForeground', "Input validation foreground color for error severity."));
|
|
294
|
-
exports.inputValidationErrorBorder = registerColor('inputValidation.errorBorder', {
|
|
295
|
-
dark: '#BE1100',
|
|
296
|
-
light: '#BE1100',
|
|
297
|
-
hc: exports.contrastBorder
|
|
298
|
-
}, nls.localize('inputValidationErrorBorder', "Input validation border color for error severity."));
|
|
299
|
-
exports.selectBackground = registerColor('dropdown.background', {
|
|
300
|
-
dark: '#3C3C3C',
|
|
301
|
-
light: color_1.Color.white,
|
|
302
|
-
hc: color_1.Color.black
|
|
303
|
-
}, nls.localize('dropdownBackground', "Dropdown background."));
|
|
304
|
-
exports.selectListBackground = registerColor('dropdown.listBackground', {
|
|
305
|
-
dark: null,
|
|
306
|
-
light: null,
|
|
307
|
-
hc: color_1.Color.black
|
|
308
|
-
}, nls.localize('dropdownListBackground', "Dropdown list background."));
|
|
309
|
-
exports.selectForeground = registerColor('dropdown.foreground', {
|
|
310
|
-
dark: '#F0F0F0',
|
|
311
|
-
light: null,
|
|
312
|
-
hc: color_1.Color.white
|
|
313
|
-
}, nls.localize('dropdownForeground', "Dropdown foreground."));
|
|
314
|
-
exports.selectBorder = registerColor('dropdown.border', {
|
|
315
|
-
dark: exports.selectBackground,
|
|
316
|
-
light: '#CECECE',
|
|
317
|
-
hc: exports.contrastBorder
|
|
318
|
-
}, nls.localize('dropdownBorder', "Dropdown border."));
|
|
319
|
-
exports.simpleCheckboxBackground = registerColor('checkbox.background', {
|
|
320
|
-
dark: exports.selectBackground,
|
|
321
|
-
light: exports.selectBackground,
|
|
322
|
-
hc: exports.selectBackground
|
|
323
|
-
}, nls.localize('checkbox.background', "Background color of checkbox widget."));
|
|
324
|
-
exports.simpleCheckboxForeground = registerColor('checkbox.foreground', {
|
|
325
|
-
dark: exports.selectForeground,
|
|
326
|
-
light: exports.selectForeground,
|
|
327
|
-
hc: exports.selectForeground
|
|
328
|
-
}, nls.localize('checkbox.foreground', "Foreground color of checkbox widget."));
|
|
329
|
-
exports.simpleCheckboxBorder = registerColor('checkbox.border', {
|
|
330
|
-
dark: exports.selectBorder,
|
|
331
|
-
light: exports.selectBorder,
|
|
332
|
-
hc: exports.selectBorder
|
|
333
|
-
}, nls.localize('checkbox.border', "Border color of checkbox widget."));
|
|
334
|
-
exports.buttonForeground = registerColor('button.foreground', {
|
|
335
|
-
dark: color_1.Color.white,
|
|
336
|
-
light: color_1.Color.white,
|
|
337
|
-
hc: color_1.Color.white
|
|
338
|
-
}, nls.localize('buttonForeground', "Button foreground color."));
|
|
339
|
-
exports.buttonBackground = registerColor('button.background', {
|
|
340
|
-
dark: '#0E639C',
|
|
341
|
-
light: '#007ACC',
|
|
342
|
-
hc: null
|
|
343
|
-
}, nls.localize('buttonBackground', "Button background color."));
|
|
344
|
-
exports.buttonHoverBackground = registerColor('button.hoverBackground', {
|
|
345
|
-
dark: lighten(exports.buttonBackground, 0.2),
|
|
346
|
-
light: darken(exports.buttonBackground, 0.2),
|
|
347
|
-
hc: null
|
|
348
|
-
}, nls.localize('buttonHoverBackground', "Button background color when hovering."));
|
|
349
|
-
exports.buttonSecondaryForeground = registerColor('button.secondaryForeground', {
|
|
350
|
-
dark: color_1.Color.white,
|
|
351
|
-
light: color_1.Color.white,
|
|
352
|
-
hc: color_1.Color.white
|
|
353
|
-
}, nls.localize('buttonSecondaryForeground', "Secondary button foreground color."));
|
|
354
|
-
exports.buttonSecondaryBackground = registerColor('button.secondaryBackground', {
|
|
355
|
-
dark: '#3A3D41',
|
|
356
|
-
light: '#5F6A79',
|
|
357
|
-
hc: null
|
|
358
|
-
}, nls.localize('buttonSecondaryBackground', "Secondary button background color."));
|
|
359
|
-
exports.buttonSecondaryHoverBackground = registerColor('button.secondaryHoverBackground', {
|
|
360
|
-
dark: lighten(exports.buttonSecondaryBackground, 0.2),
|
|
361
|
-
light: darken(exports.buttonSecondaryBackground, 0.2),
|
|
362
|
-
hc: null
|
|
363
|
-
}, nls.localize('buttonSecondaryHoverBackground', "Secondary button background color when hovering."));
|
|
364
|
-
exports.badgeBackground = registerColor('badge.background', {
|
|
365
|
-
dark: '#4D4D4D',
|
|
366
|
-
light: '#C4C4C4',
|
|
367
|
-
hc: color_1.Color.black
|
|
368
|
-
}, nls.localize('badgeBackground', "Badge background color. Badges are small information labels, e.g. for search results count."));
|
|
369
|
-
exports.badgeForeground = registerColor('badge.foreground', {
|
|
370
|
-
dark: color_1.Color.white,
|
|
371
|
-
light: '#333',
|
|
372
|
-
hc: color_1.Color.white
|
|
373
|
-
}, nls.localize('badgeForeground', "Badge foreground color. Badges are small information labels, e.g. for search results count."));
|
|
374
|
-
exports.scrollbarShadow = registerColor('scrollbar.shadow', {
|
|
375
|
-
dark: '#000000',
|
|
376
|
-
light: '#DDDDDD',
|
|
377
|
-
hc: null
|
|
378
|
-
}, nls.localize('scrollbarShadow', "Scrollbar shadow to indicate that the view is scrolled."));
|
|
379
|
-
exports.scrollbarSliderBackground = registerColor('scrollbarSlider.background', {
|
|
380
|
-
dark: color_1.Color.fromHex('#797979').transparent(0.4),
|
|
381
|
-
light: color_1.Color.fromHex('#646464').transparent(0.4),
|
|
382
|
-
hc: transparent(exports.contrastBorder, 0.6)
|
|
383
|
-
}, nls.localize('scrollbarSliderBackground', "Scrollbar slider background color."));
|
|
384
|
-
exports.scrollbarSliderHoverBackground = registerColor('scrollbarSlider.hoverBackground', {
|
|
385
|
-
dark: color_1.Color.fromHex('#646464').transparent(0.7),
|
|
386
|
-
light: color_1.Color.fromHex('#646464').transparent(0.7),
|
|
387
|
-
hc: transparent(exports.contrastBorder, 0.8)
|
|
388
|
-
}, nls.localize('scrollbarSliderHoverBackground', "Scrollbar slider background color when hovering."));
|
|
389
|
-
exports.scrollbarSliderActiveBackground = registerColor('scrollbarSlider.activeBackground', {
|
|
390
|
-
dark: color_1.Color.fromHex('#BFBFBF').transparent(0.4),
|
|
391
|
-
light: color_1.Color.fromHex('#000000').transparent(0.6),
|
|
392
|
-
hc: exports.contrastBorder
|
|
393
|
-
}, nls.localize('scrollbarSliderActiveBackground', "Scrollbar slider background color when clicked on."));
|
|
394
|
-
exports.progressBarBackground = registerColor('progressBar.background', {
|
|
395
|
-
dark: color_1.Color.fromHex('#0E70C0'),
|
|
396
|
-
light: color_1.Color.fromHex('#0E70C0'),
|
|
397
|
-
hc: exports.contrastBorder
|
|
398
|
-
}, nls.localize('progressBarBackground', "Background color of the progress bar that can show for long running operations."));
|
|
399
|
-
exports.editorErrorForeground = registerColor('editorError.foreground', {
|
|
400
|
-
dark: '#F48771',
|
|
401
|
-
light: '#E51400',
|
|
402
|
-
hc: null
|
|
403
|
-
}, nls.localize('editorError.foreground', 'Foreground color of error squigglies in the editor.'));
|
|
404
|
-
exports.editorErrorBorder = registerColor('editorError.border', {
|
|
405
|
-
dark: null,
|
|
406
|
-
light: null,
|
|
407
|
-
hc: color_1.Color.fromHex('#E47777').transparent(0.8)
|
|
408
|
-
}, nls.localize('errorBorder', 'Border color of error boxes in the editor.'));
|
|
409
|
-
exports.editorWarningForeground = registerColor('editorWarning.foreground', {
|
|
410
|
-
dark: '#CCA700',
|
|
411
|
-
light: '#E9A700',
|
|
412
|
-
hc: null
|
|
413
|
-
}, nls.localize('editorWarning.foreground', 'Foreground color of warning squigglies in the editor.'));
|
|
414
|
-
exports.editorWarningBorder = registerColor('editorWarning.border', {
|
|
415
|
-
dark: null,
|
|
416
|
-
light: null,
|
|
417
|
-
hc: color_1.Color.fromHex('#FFCC00').transparent(0.8)
|
|
418
|
-
}, nls.localize('warningBorder', 'Border color of warning boxes in the editor.'));
|
|
419
|
-
exports.editorInfoForeground = registerColor('editorInfo.foreground', {
|
|
420
|
-
dark: '#75BEFF',
|
|
421
|
-
light: '#75BEFF',
|
|
422
|
-
hc: null
|
|
423
|
-
}, nls.localize('editorInfo.foreground', 'Foreground color of info squigglies in the editor.'));
|
|
424
|
-
exports.editorInfoBorder = registerColor('editorInfo.border', {
|
|
425
|
-
dark: null,
|
|
426
|
-
light: null,
|
|
427
|
-
hc: color_1.Color.fromHex('#75BEFF').transparent(0.8)
|
|
428
|
-
}, nls.localize('infoBorder', 'Border color of info boxes in the editor.'));
|
|
429
|
-
exports.editorHintForeground = registerColor('editorHint.foreground', {
|
|
430
|
-
dark: color_1.Color.fromHex('#eeeeee').transparent(0.7),
|
|
431
|
-
light: '#6c6c6c',
|
|
432
|
-
hc: null
|
|
433
|
-
}, nls.localize('editorHint.foreground', 'Foreground color of hint squigglies in the editor.'));
|
|
434
|
-
exports.editorHintBorder = registerColor('editorHint.border', {
|
|
435
|
-
dark: null,
|
|
436
|
-
light: null,
|
|
437
|
-
hc: color_1.Color.fromHex('#eeeeee').transparent(0.8)
|
|
438
|
-
}, nls.localize('hintBorder', 'Border color of hint boxes in the editor.'));
|
|
439
|
-
/**
|
|
440
|
-
* Editor background color.
|
|
441
|
-
* Because of bug https://monacotools.visualstudio.com/DefaultCollection/Monaco/_workitems/edit/13254
|
|
442
|
-
* we are *not* using the color white (or #ffffff, rgba(255,255,255)) but something very close to white.
|
|
443
|
-
*/
|
|
444
|
-
|
|
445
|
-
exports.editorBackground = registerColor('editor.background', {
|
|
446
|
-
light: '#fffffe',
|
|
447
|
-
dark: '#1E1E1E',
|
|
448
|
-
hc: color_1.Color.black
|
|
449
|
-
}, nls.localize('editorBackground', "Editor background color."));
|
|
450
|
-
/**
|
|
451
|
-
* Editor foreground color.
|
|
452
|
-
*/
|
|
453
|
-
|
|
454
|
-
exports.editorForeground = registerColor('editor.foreground', {
|
|
455
|
-
light: '#333333',
|
|
456
|
-
dark: '#BBBBBB',
|
|
457
|
-
hc: color_1.Color.white
|
|
458
|
-
}, nls.localize('editorForeground', "Editor default foreground color."));
|
|
459
|
-
/**
|
|
460
|
-
* Editor widgets
|
|
461
|
-
*/
|
|
462
|
-
|
|
463
|
-
exports.editorWidgetBackground = registerColor('editorWidget.background', {
|
|
464
|
-
dark: '#252526',
|
|
465
|
-
light: '#F3F3F3',
|
|
466
|
-
hc: '#0C141F'
|
|
467
|
-
}, nls.localize('editorWidgetBackground', 'Background color of editor widgets, such as find/replace.'));
|
|
468
|
-
exports.editorWidgetForeground = registerColor('editorWidget.foreground', {
|
|
469
|
-
dark: exports.foreground,
|
|
470
|
-
light: exports.foreground,
|
|
471
|
-
hc: exports.foreground
|
|
472
|
-
}, nls.localize('editorWidgetForeground', 'Foreground color of editor widgets, such as find/replace.'));
|
|
473
|
-
exports.editorWidgetBorder = registerColor('editorWidget.border', {
|
|
474
|
-
dark: '#454545',
|
|
475
|
-
light: '#C8C8C8',
|
|
476
|
-
hc: exports.contrastBorder
|
|
477
|
-
}, 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.'));
|
|
478
|
-
exports.editorWidgetResizeBorder = registerColor('editorWidget.resizeBorder', {
|
|
479
|
-
light: null,
|
|
480
|
-
dark: null,
|
|
481
|
-
hc: null
|
|
482
|
-
}, 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."));
|
|
483
|
-
/**
|
|
484
|
-
* Quick pick widget
|
|
485
|
-
*/
|
|
486
|
-
|
|
487
|
-
exports.quickInputBackground = registerColor('quickInput.background', {
|
|
488
|
-
dark: exports.editorWidgetBackground,
|
|
489
|
-
light: exports.editorWidgetBackground,
|
|
490
|
-
hc: exports.editorWidgetBackground
|
|
491
|
-
}, nls.localize('pickerBackground', "Quick picker background color. The quick picker widget is the container for pickers like the command palette."));
|
|
492
|
-
exports.quickInputForeground = registerColor('quickInput.foreground', {
|
|
493
|
-
dark: exports.editorWidgetForeground,
|
|
494
|
-
light: exports.editorWidgetForeground,
|
|
495
|
-
hc: exports.editorWidgetForeground
|
|
496
|
-
}, nls.localize('pickerForeground', "Quick picker foreground color. The quick picker widget is the container for pickers like the command palette."));
|
|
497
|
-
exports.quickInputTitleBackground = registerColor('quickInputTitle.background', {
|
|
498
|
-
dark: new color_1.Color(new color_1.RGBA(255, 255, 255, 0.105)),
|
|
499
|
-
light: new color_1.Color(new color_1.RGBA(0, 0, 0, 0.06)),
|
|
500
|
-
hc: '#000000'
|
|
501
|
-
}, nls.localize('pickerTitleBackground', "Quick picker title background color. The quick picker widget is the container for pickers like the command palette."));
|
|
502
|
-
exports.pickerGroupForeground = registerColor('pickerGroup.foreground', {
|
|
503
|
-
dark: '#3794FF',
|
|
504
|
-
light: '#0066BF',
|
|
505
|
-
hc: color_1.Color.white
|
|
506
|
-
}, nls.localize('pickerGroupForeground', "Quick picker color for grouping labels."));
|
|
507
|
-
exports.pickerGroupBorder = registerColor('pickerGroup.border', {
|
|
508
|
-
dark: '#3F3F46',
|
|
509
|
-
light: '#CCCEDB',
|
|
510
|
-
hc: color_1.Color.white
|
|
511
|
-
}, nls.localize('pickerGroupBorder', "Quick picker color for grouping borders."));
|
|
512
|
-
/**
|
|
513
|
-
* Editor selection colors.
|
|
514
|
-
*/
|
|
515
|
-
|
|
516
|
-
exports.editorSelectionBackground = registerColor('editor.selectionBackground', {
|
|
517
|
-
light: '#ADD6FF',
|
|
518
|
-
dark: '#264F78',
|
|
519
|
-
hc: '#f3f518'
|
|
520
|
-
}, nls.localize('editorSelectionBackground', "Color of the editor selection."));
|
|
521
|
-
exports.editorSelectionForeground = registerColor('editor.selectionForeground', {
|
|
522
|
-
light: null,
|
|
523
|
-
dark: null,
|
|
524
|
-
hc: '#000000'
|
|
525
|
-
}, nls.localize('editorSelectionForeground', "Color of the selected text for high contrast."));
|
|
526
|
-
exports.editorInactiveSelection = registerColor('editor.inactiveSelectionBackground', {
|
|
527
|
-
light: transparent(exports.editorSelectionBackground, 0.5),
|
|
528
|
-
dark: transparent(exports.editorSelectionBackground, 0.5),
|
|
529
|
-
hc: transparent(exports.editorSelectionBackground, 0.5)
|
|
530
|
-
}, 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);
|
|
531
|
-
exports.editorSelectionHighlight = registerColor('editor.selectionHighlightBackground', {
|
|
532
|
-
light: lessProminent(exports.editorSelectionBackground, exports.editorBackground, 0.3, 0.6),
|
|
533
|
-
dark: lessProminent(exports.editorSelectionBackground, exports.editorBackground, 0.3, 0.6),
|
|
534
|
-
hc: null
|
|
535
|
-
}, 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);
|
|
536
|
-
exports.editorSelectionHighlightBorder = registerColor('editor.selectionHighlightBorder', {
|
|
537
|
-
light: null,
|
|
538
|
-
dark: null,
|
|
539
|
-
hc: exports.activeContrastBorder
|
|
540
|
-
}, nls.localize('editorSelectionHighlightBorder', "Border color for regions with the same content as the selection."));
|
|
541
|
-
/**
|
|
542
|
-
* Editor find match colors.
|
|
543
|
-
*/
|
|
544
|
-
|
|
545
|
-
exports.editorFindMatch = registerColor('editor.findMatchBackground', {
|
|
546
|
-
light: '#A8AC94',
|
|
547
|
-
dark: '#515C6A',
|
|
548
|
-
hc: null
|
|
549
|
-
}, nls.localize('editorFindMatch', "Color of the current search match."));
|
|
550
|
-
exports.editorFindMatchHighlight = registerColor('editor.findMatchHighlightBackground', {
|
|
551
|
-
light: '#EA5C0055',
|
|
552
|
-
dark: '#EA5C0055',
|
|
553
|
-
hc: null
|
|
554
|
-
}, nls.localize('findMatchHighlight', "Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."), true);
|
|
555
|
-
exports.editorFindRangeHighlight = registerColor('editor.findRangeHighlightBackground', {
|
|
556
|
-
dark: '#3a3d4166',
|
|
557
|
-
light: '#b4b4b44d',
|
|
558
|
-
hc: null
|
|
559
|
-
}, nls.localize('findRangeHighlight', "Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."), true);
|
|
560
|
-
exports.editorFindMatchBorder = registerColor('editor.findMatchBorder', {
|
|
561
|
-
light: null,
|
|
562
|
-
dark: null,
|
|
563
|
-
hc: exports.activeContrastBorder
|
|
564
|
-
}, nls.localize('editorFindMatchBorder', "Border color of the current search match."));
|
|
565
|
-
exports.editorFindMatchHighlightBorder = registerColor('editor.findMatchHighlightBorder', {
|
|
566
|
-
light: null,
|
|
567
|
-
dark: null,
|
|
568
|
-
hc: exports.activeContrastBorder
|
|
569
|
-
}, nls.localize('findMatchHighlightBorder', "Border color of the other search matches."));
|
|
570
|
-
exports.editorFindRangeHighlightBorder = registerColor('editor.findRangeHighlightBorder', {
|
|
571
|
-
dark: null,
|
|
572
|
-
light: null,
|
|
573
|
-
hc: transparent(exports.activeContrastBorder, 0.4)
|
|
574
|
-
}, 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);
|
|
575
|
-
/**
|
|
576
|
-
* Search Editor query match colors.
|
|
577
|
-
*
|
|
578
|
-
* Distinct from normal editor find match to allow for better differentiation
|
|
579
|
-
*/
|
|
580
|
-
|
|
581
|
-
exports.searchEditorFindMatch = registerColor('searchEditor.findMatchBackground', {
|
|
582
|
-
light: transparent(exports.editorFindMatchHighlight, 0.66),
|
|
583
|
-
dark: transparent(exports.editorFindMatchHighlight, 0.66),
|
|
584
|
-
hc: exports.editorFindMatchHighlight
|
|
585
|
-
}, nls.localize('searchEditor.queryMatch', "Color of the Search Editor query matches."));
|
|
586
|
-
exports.searchEditorFindMatchBorder = registerColor('searchEditor.findMatchBorder', {
|
|
587
|
-
light: transparent(exports.editorFindMatchHighlightBorder, 0.66),
|
|
588
|
-
dark: transparent(exports.editorFindMatchHighlightBorder, 0.66),
|
|
589
|
-
hc: exports.editorFindMatchHighlightBorder
|
|
590
|
-
}, nls.localize('searchEditor.editorFindMatchBorder', "Border color of the Search Editor query matches."));
|
|
591
|
-
/**
|
|
592
|
-
* Editor hover
|
|
593
|
-
*/
|
|
594
|
-
|
|
595
|
-
exports.editorHoverHighlight = registerColor('editor.hoverHighlightBackground', {
|
|
596
|
-
light: '#ADD6FF26',
|
|
597
|
-
dark: '#264f7840',
|
|
598
|
-
hc: '#ADD6FF26'
|
|
599
|
-
}, 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);
|
|
600
|
-
exports.editorHoverBackground = registerColor('editorHoverWidget.background', {
|
|
601
|
-
light: exports.editorWidgetBackground,
|
|
602
|
-
dark: exports.editorWidgetBackground,
|
|
603
|
-
hc: exports.editorWidgetBackground
|
|
604
|
-
}, nls.localize('hoverBackground', 'Background color of the editor hover.'));
|
|
605
|
-
exports.editorHoverForeground = registerColor('editorHoverWidget.foreground', {
|
|
606
|
-
light: exports.editorWidgetForeground,
|
|
607
|
-
dark: exports.editorWidgetForeground,
|
|
608
|
-
hc: exports.editorWidgetForeground
|
|
609
|
-
}, nls.localize('hoverForeground', 'Foreground color of the editor hover.'));
|
|
610
|
-
exports.editorHoverBorder = registerColor('editorHoverWidget.border', {
|
|
611
|
-
light: exports.editorWidgetBorder,
|
|
612
|
-
dark: exports.editorWidgetBorder,
|
|
613
|
-
hc: exports.editorWidgetBorder
|
|
614
|
-
}, nls.localize('hoverBorder', 'Border color of the editor hover.'));
|
|
615
|
-
exports.editorHoverStatusBarBackground = registerColor('editorHoverWidget.statusBarBackground', {
|
|
616
|
-
dark: lighten(exports.editorHoverBackground, 0.2),
|
|
617
|
-
light: darken(exports.editorHoverBackground, 0.05),
|
|
618
|
-
hc: exports.editorWidgetBackground
|
|
619
|
-
}, nls.localize('statusBarBackground', "Background color of the editor hover status bar."));
|
|
620
|
-
/**
|
|
621
|
-
* Editor link colors
|
|
622
|
-
*/
|
|
623
|
-
|
|
624
|
-
exports.editorActiveLinkForeground = registerColor('editorLink.activeForeground', {
|
|
625
|
-
dark: '#4E94CE',
|
|
626
|
-
light: color_1.Color.blue,
|
|
627
|
-
hc: color_1.Color.cyan
|
|
628
|
-
}, nls.localize('activeLinkForeground', 'Color of active links.'));
|
|
629
|
-
/**
|
|
630
|
-
* Editor lighbulb icon colors
|
|
631
|
-
*/
|
|
632
|
-
|
|
633
|
-
exports.editorLightBulbForeground = registerColor('editorLightBulb.foreground', {
|
|
634
|
-
dark: '#FFCC00',
|
|
635
|
-
light: '#DDB100',
|
|
636
|
-
hc: '#FFCC00'
|
|
637
|
-
}, nls.localize('editorLightBulbForeground', "The color used for the lightbulb actions icon."));
|
|
638
|
-
exports.editorLightBulbAutoFixForeground = registerColor('editorLightBulbAutoFix.foreground', {
|
|
639
|
-
dark: '#75BEFF',
|
|
640
|
-
light: '#007ACC',
|
|
641
|
-
hc: '#75BEFF'
|
|
642
|
-
}, nls.localize('editorLightBulbAutoFixForeground', "The color used for the lightbulb auto fix actions icon."));
|
|
643
|
-
/**
|
|
644
|
-
* Diff Editor Colors
|
|
645
|
-
*/
|
|
646
|
-
|
|
647
|
-
exports.defaultInsertColor = new color_1.Color(new color_1.RGBA(155, 185, 85, 0.2));
|
|
648
|
-
exports.defaultRemoveColor = new color_1.Color(new color_1.RGBA(255, 0, 0, 0.2));
|
|
649
|
-
exports.diffInserted = registerColor('diffEditor.insertedTextBackground', {
|
|
650
|
-
dark: exports.defaultInsertColor,
|
|
651
|
-
light: exports.defaultInsertColor,
|
|
652
|
-
hc: null
|
|
653
|
-
}, nls.localize('diffEditorInserted', 'Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
654
|
-
exports.diffRemoved = registerColor('diffEditor.removedTextBackground', {
|
|
655
|
-
dark: exports.defaultRemoveColor,
|
|
656
|
-
light: exports.defaultRemoveColor,
|
|
657
|
-
hc: null
|
|
658
|
-
}, nls.localize('diffEditorRemoved', 'Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
659
|
-
exports.diffInsertedOutline = registerColor('diffEditor.insertedTextBorder', {
|
|
660
|
-
dark: null,
|
|
661
|
-
light: null,
|
|
662
|
-
hc: '#33ff2eff'
|
|
663
|
-
}, nls.localize('diffEditorInsertedOutline', 'Outline color for the text that got inserted.'));
|
|
664
|
-
exports.diffRemovedOutline = registerColor('diffEditor.removedTextBorder', {
|
|
665
|
-
dark: null,
|
|
666
|
-
light: null,
|
|
667
|
-
hc: '#FF008F'
|
|
668
|
-
}, nls.localize('diffEditorRemovedOutline', 'Outline color for text that got removed.'));
|
|
669
|
-
exports.diffBorder = registerColor('diffEditor.border', {
|
|
670
|
-
dark: null,
|
|
671
|
-
light: null,
|
|
672
|
-
hc: exports.contrastBorder
|
|
673
|
-
}, nls.localize('diffEditorBorder', 'Border color between the two text editors.'));
|
|
674
|
-
exports.diffDiagonalFill = registerColor('diffEditor.diagonalFill', {
|
|
675
|
-
dark: '#cccccc33',
|
|
676
|
-
light: '#22222233',
|
|
677
|
-
hc: null
|
|
678
|
-
}, nls.localize('diffDiagonalFill', "Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views."));
|
|
679
|
-
/**
|
|
680
|
-
* List and tree colors
|
|
681
|
-
*/
|
|
682
|
-
|
|
683
|
-
exports.listFocusBackground = registerColor('list.focusBackground', {
|
|
684
|
-
dark: '#062F4A',
|
|
685
|
-
light: '#D6EBFF',
|
|
686
|
-
hc: null
|
|
687
|
-
}, nls.localize('listFocusBackground', "List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));
|
|
688
|
-
exports.listFocusForeground = registerColor('list.focusForeground', {
|
|
689
|
-
dark: null,
|
|
690
|
-
light: null,
|
|
691
|
-
hc: null
|
|
692
|
-
}, nls.localize('listFocusForeground', "List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));
|
|
693
|
-
exports.listActiveSelectionBackground = registerColor('list.activeSelectionBackground', {
|
|
694
|
-
dark: '#094771',
|
|
695
|
-
light: '#0074E8',
|
|
696
|
-
hc: null
|
|
697
|
-
}, nls.localize('listActiveSelectionBackground', "List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));
|
|
698
|
-
exports.listActiveSelectionForeground = registerColor('list.activeSelectionForeground', {
|
|
699
|
-
dark: color_1.Color.white,
|
|
700
|
-
light: color_1.Color.white,
|
|
701
|
-
hc: null
|
|
702
|
-
}, nls.localize('listActiveSelectionForeground', "List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));
|
|
703
|
-
exports.listInactiveSelectionBackground = registerColor('list.inactiveSelectionBackground', {
|
|
704
|
-
dark: '#37373D',
|
|
705
|
-
light: '#E4E6F1',
|
|
706
|
-
hc: null
|
|
707
|
-
}, nls.localize('listInactiveSelectionBackground', "List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not."));
|
|
708
|
-
exports.listInactiveSelectionForeground = registerColor('list.inactiveSelectionForeground', {
|
|
709
|
-
dark: null,
|
|
710
|
-
light: null,
|
|
711
|
-
hc: null
|
|
712
|
-
}, nls.localize('listInactiveSelectionForeground', "List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not."));
|
|
713
|
-
exports.listInactiveFocusBackground = registerColor('list.inactiveFocusBackground', {
|
|
714
|
-
dark: null,
|
|
715
|
-
light: null,
|
|
716
|
-
hc: null
|
|
717
|
-
}, nls.localize('listInactiveFocusBackground', "List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not."));
|
|
718
|
-
exports.listHoverBackground = registerColor('list.hoverBackground', {
|
|
719
|
-
dark: '#2A2D2E',
|
|
720
|
-
light: '#F0F0F0',
|
|
721
|
-
hc: null
|
|
722
|
-
}, nls.localize('listHoverBackground', "List/Tree background when hovering over items using the mouse."));
|
|
723
|
-
exports.listHoverForeground = registerColor('list.hoverForeground', {
|
|
724
|
-
dark: null,
|
|
725
|
-
light: null,
|
|
726
|
-
hc: null
|
|
727
|
-
}, nls.localize('listHoverForeground', "List/Tree foreground when hovering over items using the mouse."));
|
|
728
|
-
exports.listDropBackground = registerColor('list.dropBackground', {
|
|
729
|
-
dark: exports.listFocusBackground,
|
|
730
|
-
light: exports.listFocusBackground,
|
|
731
|
-
hc: null
|
|
732
|
-
}, nls.localize('listDropBackground', "List/Tree drag and drop background when moving items around using the mouse."));
|
|
733
|
-
exports.listHighlightForeground = registerColor('list.highlightForeground', {
|
|
734
|
-
dark: '#0097fb',
|
|
735
|
-
light: '#0066BF',
|
|
736
|
-
hc: exports.focusBorder
|
|
737
|
-
}, nls.localize('highlight', 'List/Tree foreground color of the match highlights when searching inside the list/tree.'));
|
|
738
|
-
exports.listInvalidItemForeground = registerColor('list.invalidItemForeground', {
|
|
739
|
-
dark: '#B89500',
|
|
740
|
-
light: '#B89500',
|
|
741
|
-
hc: '#B89500'
|
|
742
|
-
}, nls.localize('invalidItemForeground', 'List/Tree foreground color for invalid items, for example an unresolved root in explorer.'));
|
|
743
|
-
exports.listErrorForeground = registerColor('list.errorForeground', {
|
|
744
|
-
dark: '#F88070',
|
|
745
|
-
light: '#B01011',
|
|
746
|
-
hc: null
|
|
747
|
-
}, nls.localize('listErrorForeground', 'Foreground color of list items containing errors.'));
|
|
748
|
-
exports.listWarningForeground = registerColor('list.warningForeground', {
|
|
749
|
-
dark: '#CCA700',
|
|
750
|
-
light: '#855F00',
|
|
751
|
-
hc: null
|
|
752
|
-
}, nls.localize('listWarningForeground', 'Foreground color of list items containing warnings.'));
|
|
753
|
-
exports.listFilterWidgetBackground = registerColor('listFilterWidget.background', {
|
|
754
|
-
light: '#efc1ad',
|
|
755
|
-
dark: '#653723',
|
|
756
|
-
hc: color_1.Color.black
|
|
757
|
-
}, nls.localize('listFilterWidgetBackground', 'Background color of the type filter widget in lists and trees.'));
|
|
758
|
-
exports.listFilterWidgetOutline = registerColor('listFilterWidget.outline', {
|
|
759
|
-
dark: color_1.Color.transparent,
|
|
760
|
-
light: color_1.Color.transparent,
|
|
761
|
-
hc: '#f38518'
|
|
762
|
-
}, nls.localize('listFilterWidgetOutline', 'Outline color of the type filter widget in lists and trees.'));
|
|
763
|
-
exports.listFilterWidgetNoMatchesOutline = registerColor('listFilterWidget.noMatchesOutline', {
|
|
764
|
-
dark: '#BE1100',
|
|
765
|
-
light: '#BE1100',
|
|
766
|
-
hc: exports.contrastBorder
|
|
767
|
-
}, nls.localize('listFilterWidgetNoMatchesOutline', 'Outline color of the type filter widget in lists and trees, when there are no matches.'));
|
|
768
|
-
exports.listFilterMatchHighlight = registerColor('list.filterMatchBackground', {
|
|
769
|
-
dark: exports.editorFindMatchHighlight,
|
|
770
|
-
light: exports.editorFindMatchHighlight,
|
|
771
|
-
hc: null
|
|
772
|
-
}, nls.localize('listFilterMatchHighlight', 'Background color of the filtered match.'));
|
|
773
|
-
exports.listFilterMatchHighlightBorder = registerColor('list.filterMatchBorder', {
|
|
774
|
-
dark: exports.editorFindMatchHighlightBorder,
|
|
775
|
-
light: exports.editorFindMatchHighlightBorder,
|
|
776
|
-
hc: exports.contrastBorder
|
|
777
|
-
}, nls.localize('listFilterMatchHighlightBorder', 'Border color of the filtered match.'));
|
|
778
|
-
exports.treeIndentGuidesStroke = registerColor('tree.indentGuidesStroke', {
|
|
779
|
-
dark: '#585858',
|
|
780
|
-
light: '#a9a9a9',
|
|
781
|
-
hc: '#a9a9a9'
|
|
782
|
-
}, nls.localize('treeIndentGuidesStroke', "Tree stroke color for the indentation guides."));
|
|
783
|
-
exports.listDeemphasizedForeground = registerColor('list.deemphasizedForeground', {
|
|
784
|
-
dark: '#8C8C8C',
|
|
785
|
-
light: '#8E8E90',
|
|
786
|
-
hc: '#A7A8A9'
|
|
787
|
-
}, nls.localize('listDeemphasizedForeground', "List/Tree foreground color for items that are deemphasized. "));
|
|
788
|
-
/**
|
|
789
|
-
* Menu colors
|
|
790
|
-
*/
|
|
791
|
-
|
|
792
|
-
exports.menuBorder = registerColor('menu.border', {
|
|
793
|
-
dark: null,
|
|
794
|
-
light: null,
|
|
795
|
-
hc: exports.contrastBorder
|
|
796
|
-
}, nls.localize('menuBorder', "Border color of menus."));
|
|
797
|
-
exports.menuForeground = registerColor('menu.foreground', {
|
|
798
|
-
dark: exports.selectForeground,
|
|
799
|
-
light: exports.foreground,
|
|
800
|
-
hc: exports.selectForeground
|
|
801
|
-
}, nls.localize('menuForeground', "Foreground color of menu items."));
|
|
802
|
-
exports.menuBackground = registerColor('menu.background', {
|
|
803
|
-
dark: exports.selectBackground,
|
|
804
|
-
light: exports.selectBackground,
|
|
805
|
-
hc: exports.selectBackground
|
|
806
|
-
}, nls.localize('menuBackground', "Background color of menu items."));
|
|
807
|
-
exports.menuSelectionForeground = registerColor('menu.selectionForeground', {
|
|
808
|
-
dark: exports.listActiveSelectionForeground,
|
|
809
|
-
light: exports.listActiveSelectionForeground,
|
|
810
|
-
hc: exports.listActiveSelectionForeground
|
|
811
|
-
}, nls.localize('menuSelectionForeground', "Foreground color of the selected menu item in menus."));
|
|
812
|
-
exports.menuSelectionBackground = registerColor('menu.selectionBackground', {
|
|
813
|
-
dark: exports.listActiveSelectionBackground,
|
|
814
|
-
light: exports.listActiveSelectionBackground,
|
|
815
|
-
hc: exports.listActiveSelectionBackground
|
|
816
|
-
}, nls.localize('menuSelectionBackground', "Background color of the selected menu item in menus."));
|
|
817
|
-
exports.menuSelectionBorder = registerColor('menu.selectionBorder', {
|
|
818
|
-
dark: null,
|
|
819
|
-
light: null,
|
|
820
|
-
hc: exports.activeContrastBorder
|
|
821
|
-
}, nls.localize('menuSelectionBorder', "Border color of the selected menu item in menus."));
|
|
822
|
-
exports.menuSeparatorBackground = registerColor('menu.separatorBackground', {
|
|
823
|
-
dark: '#BBBBBB',
|
|
824
|
-
light: '#888888',
|
|
825
|
-
hc: exports.contrastBorder
|
|
826
|
-
}, nls.localize('menuSeparatorBackground', "Color of a separator menu item in menus."));
|
|
827
|
-
/**
|
|
828
|
-
* Snippet placeholder colors
|
|
829
|
-
*/
|
|
830
|
-
|
|
831
|
-
exports.snippetTabstopHighlightBackground = registerColor('editor.snippetTabstopHighlightBackground', {
|
|
832
|
-
dark: new color_1.Color(new color_1.RGBA(124, 124, 124, 0.3)),
|
|
833
|
-
light: new color_1.Color(new color_1.RGBA(10, 50, 100, 0.2)),
|
|
834
|
-
hc: new color_1.Color(new color_1.RGBA(124, 124, 124, 0.3))
|
|
835
|
-
}, nls.localize('snippetTabstopHighlightBackground', "Highlight background color of a snippet tabstop."));
|
|
836
|
-
exports.snippetTabstopHighlightBorder = registerColor('editor.snippetTabstopHighlightBorder', {
|
|
837
|
-
dark: null,
|
|
838
|
-
light: null,
|
|
839
|
-
hc: null
|
|
840
|
-
}, nls.localize('snippetTabstopHighlightBorder', "Highlight border color of a snippet tabstop."));
|
|
841
|
-
exports.snippetFinalTabstopHighlightBackground = registerColor('editor.snippetFinalTabstopHighlightBackground', {
|
|
842
|
-
dark: null,
|
|
843
|
-
light: null,
|
|
844
|
-
hc: null
|
|
845
|
-
}, nls.localize('snippetFinalTabstopHighlightBackground', "Highlight background color of the final tabstop of a snippet."));
|
|
846
|
-
exports.snippetFinalTabstopHighlightBorder = registerColor('editor.snippetFinalTabstopHighlightBorder', {
|
|
847
|
-
dark: '#525252',
|
|
848
|
-
light: new color_1.Color(new color_1.RGBA(10, 50, 100, 0.5)),
|
|
849
|
-
hc: '#525252'
|
|
850
|
-
}, nls.localize('snippetFinalTabstopHighlightBorder', "Highlight border color of the final tabstop of a snippet."));
|
|
851
|
-
/**
|
|
852
|
-
* Breadcrumb colors
|
|
853
|
-
*/
|
|
854
|
-
|
|
855
|
-
exports.breadcrumbsForeground = registerColor('breadcrumb.foreground', {
|
|
856
|
-
light: transparent(exports.foreground, 0.8),
|
|
857
|
-
dark: transparent(exports.foreground, 0.8),
|
|
858
|
-
hc: transparent(exports.foreground, 0.8)
|
|
859
|
-
}, nls.localize('breadcrumbsFocusForeground', "Color of focused breadcrumb items."));
|
|
860
|
-
exports.breadcrumbsBackground = registerColor('breadcrumb.background', {
|
|
861
|
-
light: exports.editorBackground,
|
|
862
|
-
dark: exports.editorBackground,
|
|
863
|
-
hc: exports.editorBackground
|
|
864
|
-
}, nls.localize('breadcrumbsBackground', "Background color of breadcrumb items."));
|
|
865
|
-
exports.breadcrumbsFocusForeground = registerColor('breadcrumb.focusForeground', {
|
|
866
|
-
light: darken(exports.foreground, 0.2),
|
|
867
|
-
dark: lighten(exports.foreground, 0.1),
|
|
868
|
-
hc: lighten(exports.foreground, 0.1)
|
|
869
|
-
}, nls.localize('breadcrumbsFocusForeground', "Color of focused breadcrumb items."));
|
|
870
|
-
exports.breadcrumbsActiveSelectionForeground = registerColor('breadcrumb.activeSelectionForeground', {
|
|
871
|
-
light: darken(exports.foreground, 0.2),
|
|
872
|
-
dark: lighten(exports.foreground, 0.1),
|
|
873
|
-
hc: lighten(exports.foreground, 0.1)
|
|
874
|
-
}, nls.localize('breadcrumbsSelectedForegound', "Color of selected breadcrumb items."));
|
|
875
|
-
exports.breadcrumbsPickerBackground = registerColor('breadcrumbPicker.background', {
|
|
876
|
-
light: exports.editorWidgetBackground,
|
|
877
|
-
dark: exports.editorWidgetBackground,
|
|
878
|
-
hc: exports.editorWidgetBackground
|
|
879
|
-
}, nls.localize('breadcrumbsSelectedBackground', "Background color of breadcrumb item picker."));
|
|
880
|
-
/**
|
|
881
|
-
* Merge-conflict colors
|
|
882
|
-
*/
|
|
883
|
-
|
|
884
|
-
const headerTransparency = 0.5;
|
|
885
|
-
const currentBaseColor = color_1.Color.fromHex('#40C8AE').transparent(headerTransparency);
|
|
886
|
-
const incomingBaseColor = color_1.Color.fromHex('#40A6FF').transparent(headerTransparency);
|
|
887
|
-
const commonBaseColor = color_1.Color.fromHex('#606060').transparent(0.4);
|
|
888
|
-
const contentTransparency = 0.4;
|
|
889
|
-
const rulerTransparency = 1;
|
|
890
|
-
exports.mergeCurrentHeaderBackground = registerColor('merge.currentHeaderBackground', {
|
|
891
|
-
dark: currentBaseColor,
|
|
892
|
-
light: currentBaseColor,
|
|
893
|
-
hc: null
|
|
894
|
-
}, nls.localize('mergeCurrentHeaderBackground', 'Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
895
|
-
exports.mergeCurrentContentBackground = registerColor('merge.currentContentBackground', {
|
|
896
|
-
dark: transparent(exports.mergeCurrentHeaderBackground, contentTransparency),
|
|
897
|
-
light: transparent(exports.mergeCurrentHeaderBackground, contentTransparency),
|
|
898
|
-
hc: transparent(exports.mergeCurrentHeaderBackground, contentTransparency)
|
|
899
|
-
}, nls.localize('mergeCurrentContentBackground', 'Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
900
|
-
exports.mergeIncomingHeaderBackground = registerColor('merge.incomingHeaderBackground', {
|
|
901
|
-
dark: incomingBaseColor,
|
|
902
|
-
light: incomingBaseColor,
|
|
903
|
-
hc: null
|
|
904
|
-
}, nls.localize('mergeIncomingHeaderBackground', 'Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
905
|
-
exports.mergeIncomingContentBackground = registerColor('merge.incomingContentBackground', {
|
|
906
|
-
dark: transparent(exports.mergeIncomingHeaderBackground, contentTransparency),
|
|
907
|
-
light: transparent(exports.mergeIncomingHeaderBackground, contentTransparency),
|
|
908
|
-
hc: transparent(exports.mergeIncomingHeaderBackground, contentTransparency)
|
|
909
|
-
}, nls.localize('mergeIncomingContentBackground', 'Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
910
|
-
exports.mergeCommonHeaderBackground = registerColor('merge.commonHeaderBackground', {
|
|
911
|
-
dark: commonBaseColor,
|
|
912
|
-
light: commonBaseColor,
|
|
913
|
-
hc: null
|
|
914
|
-
}, 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);
|
|
915
|
-
exports.mergeCommonContentBackground = registerColor('merge.commonContentBackground', {
|
|
916
|
-
dark: transparent(exports.mergeCommonHeaderBackground, contentTransparency),
|
|
917
|
-
light: transparent(exports.mergeCommonHeaderBackground, contentTransparency),
|
|
918
|
-
hc: transparent(exports.mergeCommonHeaderBackground, contentTransparency)
|
|
919
|
-
}, 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);
|
|
920
|
-
exports.mergeBorder = registerColor('merge.border', {
|
|
921
|
-
dark: null,
|
|
922
|
-
light: null,
|
|
923
|
-
hc: '#C3DF6F'
|
|
924
|
-
}, nls.localize('mergeBorder', 'Border color on headers and the splitter in inline merge-conflicts.'));
|
|
925
|
-
exports.overviewRulerCurrentContentForeground = registerColor('editorOverviewRuler.currentContentForeground', {
|
|
926
|
-
dark: transparent(exports.mergeCurrentHeaderBackground, rulerTransparency),
|
|
927
|
-
light: transparent(exports.mergeCurrentHeaderBackground, rulerTransparency),
|
|
928
|
-
hc: exports.mergeBorder
|
|
929
|
-
}, nls.localize('overviewRulerCurrentContentForeground', 'Current overview ruler foreground for inline merge-conflicts.'));
|
|
930
|
-
exports.overviewRulerIncomingContentForeground = registerColor('editorOverviewRuler.incomingContentForeground', {
|
|
931
|
-
dark: transparent(exports.mergeIncomingHeaderBackground, rulerTransparency),
|
|
932
|
-
light: transparent(exports.mergeIncomingHeaderBackground, rulerTransparency),
|
|
933
|
-
hc: exports.mergeBorder
|
|
934
|
-
}, nls.localize('overviewRulerIncomingContentForeground', 'Incoming overview ruler foreground for inline merge-conflicts.'));
|
|
935
|
-
exports.overviewRulerCommonContentForeground = registerColor('editorOverviewRuler.commonContentForeground', {
|
|
936
|
-
dark: transparent(exports.mergeCommonHeaderBackground, rulerTransparency),
|
|
937
|
-
light: transparent(exports.mergeCommonHeaderBackground, rulerTransparency),
|
|
938
|
-
hc: exports.mergeBorder
|
|
939
|
-
}, nls.localize('overviewRulerCommonContentForeground', 'Common ancestor overview ruler foreground for inline merge-conflicts.'));
|
|
940
|
-
exports.overviewRulerFindMatchForeground = registerColor('editorOverviewRuler.findMatchForeground', {
|
|
941
|
-
dark: '#d186167e',
|
|
942
|
-
light: '#d186167e',
|
|
943
|
-
hc: '#AB5A00'
|
|
944
|
-
}, nls.localize('overviewRulerFindMatchForeground', 'Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
945
|
-
exports.overviewRulerSelectionHighlightForeground = registerColor('editorOverviewRuler.selectionHighlightForeground', {
|
|
946
|
-
dark: '#A0A0A0CC',
|
|
947
|
-
light: '#A0A0A0CC',
|
|
948
|
-
hc: '#A0A0A0CC'
|
|
949
|
-
}, nls.localize('overviewRulerSelectionHighlightForeground', 'Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
950
|
-
exports.minimapFindMatch = registerColor('minimap.findMatchHighlight', {
|
|
951
|
-
light: '#d18616',
|
|
952
|
-
dark: '#d18616',
|
|
953
|
-
hc: '#AB5A00'
|
|
954
|
-
}, nls.localize('minimapFindMatchHighlight', 'Minimap marker color for find matches.'), true);
|
|
955
|
-
exports.minimapSelection = registerColor('minimap.selectionHighlight', {
|
|
956
|
-
light: '#ADD6FF',
|
|
957
|
-
dark: '#264F78',
|
|
958
|
-
hc: '#ffffff'
|
|
959
|
-
}, nls.localize('minimapSelectionHighlight', 'Minimap marker color for the editor selection.'), true);
|
|
960
|
-
exports.minimapError = registerColor('minimap.errorHighlight', {
|
|
961
|
-
dark: new color_1.Color(new color_1.RGBA(255, 18, 18, 0.7)),
|
|
962
|
-
light: new color_1.Color(new color_1.RGBA(255, 18, 18, 0.7)),
|
|
963
|
-
hc: new color_1.Color(new color_1.RGBA(255, 50, 50, 1))
|
|
964
|
-
}, nls.localize('minimapError', 'Minimap marker color for errors.'));
|
|
965
|
-
exports.minimapWarning = registerColor('minimap.warningHighlight', {
|
|
966
|
-
dark: exports.editorWarningForeground,
|
|
967
|
-
light: exports.editorWarningForeground,
|
|
968
|
-
hc: exports.editorWarningBorder
|
|
969
|
-
}, nls.localize('overviewRuleWarning', 'Minimap marker color for warnings.'));
|
|
970
|
-
exports.minimapBackground = registerColor('minimap.background', {
|
|
971
|
-
dark: null,
|
|
972
|
-
light: null,
|
|
973
|
-
hc: null
|
|
974
|
-
}, nls.localize('minimapBackground', "Minimap background color."));
|
|
975
|
-
exports.minimapSliderBackground = registerColor('minimapSlider.background', {
|
|
976
|
-
light: transparent(exports.scrollbarSliderBackground, 0.5),
|
|
977
|
-
dark: transparent(exports.scrollbarSliderBackground, 0.5),
|
|
978
|
-
hc: transparent(exports.scrollbarSliderBackground, 0.5)
|
|
979
|
-
}, nls.localize('minimapSliderBackground', "Minimap slider background color."));
|
|
980
|
-
exports.minimapSliderHoverBackground = registerColor('minimapSlider.hoverBackground', {
|
|
981
|
-
light: transparent(exports.scrollbarSliderHoverBackground, 0.5),
|
|
982
|
-
dark: transparent(exports.scrollbarSliderHoverBackground, 0.5),
|
|
983
|
-
hc: transparent(exports.scrollbarSliderHoverBackground, 0.5)
|
|
984
|
-
}, nls.localize('minimapSliderHoverBackground', "Minimap slider background color when hovering."));
|
|
985
|
-
exports.minimapSliderActiveBackground = registerColor('minimapSlider.activeBackground', {
|
|
986
|
-
light: transparent(exports.scrollbarSliderActiveBackground, 0.5),
|
|
987
|
-
dark: transparent(exports.scrollbarSliderActiveBackground, 0.5),
|
|
988
|
-
hc: transparent(exports.scrollbarSliderActiveBackground, 0.5)
|
|
989
|
-
}, nls.localize('minimapSliderActiveBackground', "Minimap slider background color when clicked on."));
|
|
990
|
-
exports.problemsErrorIconForeground = registerColor('problemsErrorIcon.foreground', {
|
|
991
|
-
dark: exports.editorErrorForeground,
|
|
992
|
-
light: exports.editorErrorForeground,
|
|
993
|
-
hc: exports.editorErrorForeground
|
|
994
|
-
}, nls.localize('problemsErrorIconForeground', "The color used for the problems error icon."));
|
|
995
|
-
exports.problemsWarningIconForeground = registerColor('problemsWarningIcon.foreground', {
|
|
996
|
-
dark: exports.editorWarningForeground,
|
|
997
|
-
light: exports.editorWarningForeground,
|
|
998
|
-
hc: exports.editorWarningForeground
|
|
999
|
-
}, nls.localize('problemsWarningIconForeground', "The color used for the problems warning icon."));
|
|
1000
|
-
exports.problemsInfoIconForeground = registerColor('problemsInfoIcon.foreground', {
|
|
1001
|
-
dark: exports.editorInfoForeground,
|
|
1002
|
-
light: exports.editorInfoForeground,
|
|
1003
|
-
hc: exports.editorInfoForeground
|
|
1004
|
-
}, nls.localize('problemsInfoIconForeground', "The color used for the problems info icon."));
|
|
1005
|
-
/**
|
|
1006
|
-
* Chart colors
|
|
1007
|
-
*/
|
|
1008
|
-
|
|
1009
|
-
exports.chartsForeground = registerColor('charts.foreground', {
|
|
1010
|
-
dark: exports.foreground,
|
|
1011
|
-
light: exports.foreground,
|
|
1012
|
-
hc: exports.foreground
|
|
1013
|
-
}, nls.localize('chartsForeground', "The foreground color used in charts."));
|
|
1014
|
-
exports.chartsLines = registerColor('charts.lines', {
|
|
1015
|
-
dark: transparent(exports.foreground, .5),
|
|
1016
|
-
light: transparent(exports.foreground, .5),
|
|
1017
|
-
hc: transparent(exports.foreground, .5)
|
|
1018
|
-
}, nls.localize('chartsLines', "The color used for horizontal lines in charts."));
|
|
1019
|
-
exports.chartsRed = registerColor('charts.red', {
|
|
1020
|
-
dark: exports.editorErrorForeground,
|
|
1021
|
-
light: exports.editorErrorForeground,
|
|
1022
|
-
hc: exports.editorErrorForeground
|
|
1023
|
-
}, nls.localize('chartsRed', "The red color used charts."));
|
|
1024
|
-
exports.chartsBlue = registerColor('charts.blue', {
|
|
1025
|
-
dark: exports.editorInfoForeground,
|
|
1026
|
-
light: exports.editorInfoForeground,
|
|
1027
|
-
hc: exports.editorInfoForeground
|
|
1028
|
-
}, nls.localize('chartsBlue', "The blue color used charts."));
|
|
1029
|
-
exports.chartsYellow = registerColor('charts.yellow', {
|
|
1030
|
-
dark: exports.editorWarningForeground,
|
|
1031
|
-
light: exports.editorWarningForeground,
|
|
1032
|
-
hc: exports.editorWarningForeground
|
|
1033
|
-
}, nls.localize('chartsYellow', "The yellow color used charts."));
|
|
1034
|
-
exports.chartsOrange = registerColor('charts.orange', {
|
|
1035
|
-
dark: exports.minimapFindMatch,
|
|
1036
|
-
light: exports.minimapFindMatch,
|
|
1037
|
-
hc: exports.minimapFindMatch
|
|
1038
|
-
}, nls.localize('chartsOrange', "The orange color used charts."));
|
|
1039
|
-
exports.chartsGreen = registerColor('charts.green', {
|
|
1040
|
-
dark: '#89D185',
|
|
1041
|
-
light: '#388A34',
|
|
1042
|
-
hc: '#89D185'
|
|
1043
|
-
}, nls.localize('chartsGreen', "The green color used charts."));
|
|
1044
|
-
exports.chartsPurple = registerColor('charts.purple', {
|
|
1045
|
-
dark: '#B180D7',
|
|
1046
|
-
light: '#652D90',
|
|
1047
|
-
hc: '#B180D7'
|
|
1048
|
-
}, nls.localize('chartsPurple', "The purple color used charts.")); // ----- color functions
|
|
1049
|
-
|
|
1050
|
-
function darken(colorValue, factor) {
|
|
1051
|
-
return theme => {
|
|
1052
|
-
let color = resolveColorValue(colorValue, theme);
|
|
1053
|
-
|
|
1054
|
-
if (color) {
|
|
1055
|
-
return color.darken(factor);
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
return undefined;
|
|
1059
|
-
};
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
exports.darken = darken;
|
|
1063
|
-
|
|
1064
|
-
function lighten(colorValue, factor) {
|
|
1065
|
-
return theme => {
|
|
1066
|
-
let color = resolveColorValue(colorValue, theme);
|
|
1067
|
-
|
|
1068
|
-
if (color) {
|
|
1069
|
-
return color.lighten(factor);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
return undefined;
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
exports.lighten = lighten;
|
|
1077
|
-
|
|
1078
|
-
function transparent(colorValue, factor) {
|
|
1079
|
-
return theme => {
|
|
1080
|
-
let color = resolveColorValue(colorValue, theme);
|
|
1081
|
-
|
|
1082
|
-
if (color) {
|
|
1083
|
-
return color.transparent(factor);
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
return undefined;
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
exports.transparent = transparent;
|
|
1091
|
-
|
|
1092
|
-
function oneOf(...colorValues) {
|
|
1093
|
-
return theme => {
|
|
1094
|
-
for (let colorValue of colorValues) {
|
|
1095
|
-
let color = resolveColorValue(colorValue, theme);
|
|
1096
|
-
|
|
1097
|
-
if (color) {
|
|
1098
|
-
return color;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
return undefined;
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
exports.oneOf = oneOf;
|
|
1107
|
-
|
|
1108
|
-
function lessProminent(colorValue, backgroundColorValue, factor, transparency) {
|
|
1109
|
-
return theme => {
|
|
1110
|
-
let from = resolveColorValue(colorValue, theme);
|
|
1111
|
-
|
|
1112
|
-
if (from) {
|
|
1113
|
-
let backgroundColor = resolveColorValue(backgroundColorValue, theme);
|
|
1114
|
-
|
|
1115
|
-
if (backgroundColor) {
|
|
1116
|
-
if (from.isDarkerThan(backgroundColor)) {
|
|
1117
|
-
return color_1.Color.getLighterColor(from, backgroundColor, factor).transparent(transparency);
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
return color_1.Color.getDarkerColor(from, backgroundColor, factor).transparent(transparency);
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
return from.transparent(factor * transparency);
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
return undefined;
|
|
1127
|
-
};
|
|
1128
|
-
} // ----- implementation
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* @param colorValue Resolve a color value in the context of a theme
|
|
1132
|
-
*/
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
function resolveColorValue(colorValue, theme) {
|
|
1136
|
-
if (colorValue === null) {
|
|
1137
|
-
return undefined;
|
|
1138
|
-
} else if (typeof colorValue === 'string') {
|
|
1139
|
-
if (colorValue[0] === '#') {
|
|
1140
|
-
return color_1.Color.fromHex(colorValue);
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
return theme.getColor(colorValue);
|
|
1144
|
-
} else if (colorValue instanceof color_1.Color) {
|
|
1145
|
-
return colorValue;
|
|
1146
|
-
} else if (typeof colorValue === 'function') {
|
|
1147
|
-
return colorValue(theme);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
return undefined;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
exports.resolveColorValue = resolveColorValue;
|
|
1154
|
-
exports.workbenchColorsSchemaId = 'vscode://schemas/workbench-colors'; // setTimeout(_ => console.log(colorRegistry.toString()), 5000);
|