@opensumi/ide-theme 2.21.13 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/icon-theme-data.js.map +1 -1
- package/lib/browser/icon-theme-store.js.map +1 -1
- package/lib/browser/icon.service.d.ts +3 -1
- package/lib/browser/icon.service.d.ts.map +1 -1
- package/lib/browser/icon.service.js +56 -24
- package/lib/browser/icon.service.js.map +1 -1
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/semantic-tokens-registry.js.map +1 -1
- package/lib/browser/style.service.js.map +1 -1
- package/lib/browser/theme-data.js +7 -7
- package/lib/browser/theme-data.js.map +1 -1
- package/lib/browser/theme-store.js.map +1 -1
- package/lib/browser/theme.contribution.js +3 -3
- package/lib/browser/theme.contribution.js.map +1 -1
- package/lib/browser/workbench.theme.service.js +2 -2
- package/lib/browser/workbench.theme.service.js.map +1 -1
- package/lib/common/color-tokens/basic-color.d.ts +1 -1
- package/lib/common/color-tokens/basic-color.d.ts.map +1 -1
- package/lib/common/color-tokens/editor.d.ts +13 -0
- package/lib/common/color-tokens/editor.d.ts.map +1 -1
- package/lib/common/color-tokens/editor.js +35 -1
- package/lib/common/color-tokens/editor.js.map +1 -1
- package/lib/common/color.js +40 -40
- package/lib/common/color.js.map +1 -1
- package/lib/common/mocks/theme.service.js.map +1 -1
- package/lib/common/plistParser.js +40 -40
- package/lib/common/plistParser.js.map +1 -1
- package/lib/common/semantic-tokens-registry.d.ts +7 -7
- package/lib/common/semantic-tokens-registry.d.ts.map +1 -1
- package/lib/common/theme.service.d.ts +26 -6
- package/lib/common/theme.service.d.ts.map +1 -1
- package/lib/common/theme.service.js.map +1 -1
- package/package.json +11 -10
- package/src/browser/default-theme.ts +547 -0
- package/src/browser/icon-theme-data.ts +294 -0
- package/src/browser/icon-theme-store.ts +38 -0
- package/src/browser/icon.less +15 -0
- package/src/browser/icon.service.ts +457 -0
- package/src/browser/index.ts +45 -0
- package/src/browser/semantic-tokens-registry.ts +217 -0
- package/src/browser/style.service.ts +51 -0
- package/src/browser/theme-data.ts +719 -0
- package/src/browser/theme-store.ts +95 -0
- package/src/browser/theme.contribution.ts +343 -0
- package/src/browser/workbench.theme.service.ts +703 -0
- package/src/common/color-registry.ts +52 -0
- package/src/common/color-tokens/activity-bar.ts +122 -0
- package/src/common/color-tokens/badge.ts +31 -0
- package/src/common/color-tokens/base.ts +90 -0
- package/src/common/color-tokens/basic-color.ts +9 -0
- package/src/common/color-tokens/breadcrumb.ts +60 -0
- package/src/common/color-tokens/button.ts +69 -0
- package/src/common/color-tokens/charts.ts +68 -0
- package/src/common/color-tokens/checkbox.ts +23 -0
- package/src/common/color-tokens/custom/actionbar.ts +51 -0
- package/src/common/color-tokens/custom/activity-bar.ts +16 -0
- package/src/common/color-tokens/custom/badge.ts +30 -0
- package/src/common/color-tokens/custom/base.ts +111 -0
- package/src/common/color-tokens/custom/button.ts +359 -0
- package/src/common/color-tokens/custom/checkbox.ts +36 -0
- package/src/common/color-tokens/custom/decoration.ts +71 -0
- package/src/common/color-tokens/custom/editor.ts +27 -0
- package/src/common/color-tokens/custom/extension.ts +9 -0
- package/src/common/color-tokens/custom/icon.ts +30 -0
- package/src/common/color-tokens/custom/index.ts +26 -0
- package/src/common/color-tokens/custom/input.ts +48 -0
- package/src/common/color-tokens/custom/menu.ts +61 -0
- package/src/common/color-tokens/custom/modal.ts +57 -0
- package/src/common/color-tokens/custom/notification.ts +16 -0
- package/src/common/color-tokens/custom/panel.ts +112 -0
- package/src/common/color-tokens/custom/popover.ts +28 -0
- package/src/common/color-tokens/custom/select.ts +155 -0
- package/src/common/color-tokens/custom/settings.ts +32 -0
- package/src/common/color-tokens/custom/statusbar.ts +16 -0
- package/src/common/color-tokens/custom/tab.ts +31 -0
- package/src/common/color-tokens/custom/tooltip.ts +55 -0
- package/src/common/color-tokens/custom/tree.ts +106 -0
- package/src/common/color-tokens/debug.ts +103 -0
- package/src/common/color-tokens/debugToolbar.ts +134 -0
- package/src/common/color-tokens/dropdown.ts +27 -0
- package/src/common/color-tokens/editor.ts +945 -0
- package/src/common/color-tokens/index.ts +35 -0
- package/src/common/color-tokens/input.ts +105 -0
- package/src/common/color-tokens/list-tree.ts +205 -0
- package/src/common/color-tokens/menu-bar.ts +43 -0
- package/src/common/color-tokens/menu.ts +53 -0
- package/src/common/color-tokens/merge-conflict.ts +145 -0
- package/src/common/color-tokens/minimap.ts +99 -0
- package/src/common/color-tokens/notification.ts +169 -0
- package/src/common/color-tokens/panel.ts +177 -0
- package/src/common/color-tokens/pick-view.ts +96 -0
- package/src/common/color-tokens/picker.ts +15 -0
- package/src/common/color-tokens/progress-bar.ts +12 -0
- package/src/common/color-tokens/quick-input.ts +57 -0
- package/src/common/color-tokens/scrollbar.ts +42 -0
- package/src/common/color-tokens/settings.ts +126 -0
- package/src/common/color-tokens/sidebar.ts +121 -0
- package/src/common/color-tokens/snippet.ts +33 -0
- package/src/common/color-tokens/status-bar.ts +350 -0
- package/src/common/color-tokens/tab.ts +346 -0
- package/src/common/color-tokens/testing.ts +105 -0
- package/src/common/color-tokens/text.ts +41 -0
- package/src/common/color-tokens/title-bar.ts +62 -0
- package/src/common/color-tokens/toolbar.ts +28 -0
- package/src/common/color-tokens/welcome-page.ts +27 -0
- package/src/common/color.ts +647 -0
- package/src/common/default-themes.ts +273 -0
- package/src/common/event.ts +9 -0
- package/src/common/index.ts +8 -0
- package/src/common/mocks/theme.service.ts +55 -0
- package/src/common/plistParser.ts +525 -0
- package/src/common/semantic-tokens-registry.ts +439 -0
- package/src/common/style.ts +9 -0
- package/src/common/theme.service.ts +363 -0
- package/src/common/themeCompatibility.ts +95 -0
- package/src/common/utils.ts +195 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color, RGBA } from '../../common/color';
|
|
4
|
+
import { registerColor, transparent } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { checkboxBackground, checkboxBorder, checkboxForeground } from './checkbox';
|
|
7
|
+
import { selectBackground, selectForeground, selectBorder } from './dropdown';
|
|
8
|
+
import { editorWidgetBorder } from './editor';
|
|
9
|
+
import { inputBackground, inputForeground, inputBorder } from './input';
|
|
10
|
+
import { listHoverBackground } from './list-tree';
|
|
11
|
+
import { PANEL_BORDER } from './panel';
|
|
12
|
+
|
|
13
|
+
// Enum control colors
|
|
14
|
+
export const settingsSelectBackground = registerColor(
|
|
15
|
+
'settings.dropdownBackground',
|
|
16
|
+
{ dark: selectBackground, light: selectBackground, hcDark: selectBackground, hcLight: selectBackground },
|
|
17
|
+
localize('settingsDropdownBackground', 'Settings editor dropdown background.'),
|
|
18
|
+
);
|
|
19
|
+
export const settingsSelectForeground = registerColor(
|
|
20
|
+
'settings.dropdownForeground',
|
|
21
|
+
{ dark: selectForeground, light: selectForeground, hcDark: selectForeground, hcLight: selectForeground },
|
|
22
|
+
localize('settingsDropdownForeground', 'Settings editor dropdown foreground.'),
|
|
23
|
+
);
|
|
24
|
+
export const settingsSelectBorder = registerColor(
|
|
25
|
+
'settings.dropdownBorder',
|
|
26
|
+
{ dark: selectBorder, light: selectBorder, hcDark: selectBorder, hcLight: selectBorder },
|
|
27
|
+
localize('settingsDropdownBorder', 'Settings editor dropdown border.'),
|
|
28
|
+
);
|
|
29
|
+
export const settingsSelectListBorder = registerColor(
|
|
30
|
+
'settings.dropdownListBorder',
|
|
31
|
+
{ dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder },
|
|
32
|
+
localize(
|
|
33
|
+
'settingsDropdownListBorder',
|
|
34
|
+
'Settings editor dropdown list border. This surrounds the options and separates the options from the description.',
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
// Bool control colors
|
|
39
|
+
export const settingsCheckboxBackground = registerColor(
|
|
40
|
+
'settings.checkboxBackground',
|
|
41
|
+
{ dark: checkboxBackground, light: checkboxBackground, hcDark: checkboxBackground, hcLight: checkboxBackground },
|
|
42
|
+
localize('settingsCheckboxBackground', 'Settings editor checkbox background.'),
|
|
43
|
+
);
|
|
44
|
+
export const settingsCheckboxForeground = registerColor(
|
|
45
|
+
'settings.checkboxForeground',
|
|
46
|
+
{ dark: checkboxForeground, light: checkboxForeground, hcDark: checkboxForeground, hcLight: checkboxForeground },
|
|
47
|
+
localize('settingsCheckboxForeground', 'Settings editor checkbox foreground.'),
|
|
48
|
+
);
|
|
49
|
+
export const settingsCheckboxBorder = registerColor(
|
|
50
|
+
'settings.checkboxBorder',
|
|
51
|
+
{ dark: checkboxBorder, light: checkboxBorder, hcDark: checkboxBorder, hcLight: checkboxBorder },
|
|
52
|
+
localize('settingsCheckboxBorder', 'Settings editor checkbox border.'),
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
// Text control colors
|
|
56
|
+
export const settingsTextInputBackground = registerColor(
|
|
57
|
+
'settings.textInputBackground',
|
|
58
|
+
{ dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground },
|
|
59
|
+
localize('textInputBoxBackground', 'Settings editor text input box background.'),
|
|
60
|
+
);
|
|
61
|
+
export const settingsTextInputForeground = registerColor(
|
|
62
|
+
'settings.textInputForeground',
|
|
63
|
+
{ dark: inputForeground, light: inputForeground, hcDark: inputForeground, hcLight: inputForeground },
|
|
64
|
+
localize('textInputBoxForeground', 'Settings editor text input box foreground.'),
|
|
65
|
+
);
|
|
66
|
+
export const settingsTextInputBorder = registerColor(
|
|
67
|
+
'settings.textInputBorder',
|
|
68
|
+
{ dark: inputBorder, light: inputBorder, hcDark: inputBorder, hcLight: inputBorder },
|
|
69
|
+
localize('textInputBoxBorder', 'Settings editor text input box border.'),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
// Number control colors
|
|
73
|
+
export const settingsNumberInputBackground = registerColor(
|
|
74
|
+
'settings.numberInputBackground',
|
|
75
|
+
{ dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground },
|
|
76
|
+
localize('numberInputBoxBackground', 'Settings editor number input box background.'),
|
|
77
|
+
);
|
|
78
|
+
export const settingsNumberInputForeground = registerColor(
|
|
79
|
+
'settings.numberInputForeground',
|
|
80
|
+
{ dark: inputForeground, light: inputForeground, hcDark: inputForeground, hcLight: inputForeground },
|
|
81
|
+
localize('numberInputBoxForeground', 'Settings editor number input box foreground.'),
|
|
82
|
+
);
|
|
83
|
+
export const settingsNumberInputBorder = registerColor(
|
|
84
|
+
'settings.numberInputBorder',
|
|
85
|
+
{ dark: inputBorder, light: inputBorder, hcDark: inputBorder, hcLight: inputBorder },
|
|
86
|
+
localize('numberInputBoxBorder', 'Settings editor number input box border.'),
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
export const focusedRowBackground = registerColor(
|
|
90
|
+
'settings.focusedRowBackground',
|
|
91
|
+
{
|
|
92
|
+
dark: transparent(listHoverBackground, 0.6),
|
|
93
|
+
light: transparent(listHoverBackground, 0.6),
|
|
94
|
+
hcDark: null,
|
|
95
|
+
hcLight: null,
|
|
96
|
+
},
|
|
97
|
+
localize('focusedRowBackground', 'The background color of a settings row when focused.'),
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
export const settingsHeaderForeground = registerColor(
|
|
101
|
+
'settings.headerForeground',
|
|
102
|
+
{ light: '#444444', dark: '#e7e7e7', hcDark: '#ffffff', hcLight: '#292929' },
|
|
103
|
+
localize('headerForeground', 'The foreground color for a section header or active title.'),
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
export const modifiedItemIndicator = registerColor(
|
|
107
|
+
'settings.modifiedItemIndicator',
|
|
108
|
+
{
|
|
109
|
+
light: new Color(new RGBA(102, 175, 224)),
|
|
110
|
+
dark: new Color(new RGBA(12, 125, 157)),
|
|
111
|
+
hcDark: new Color(new RGBA(0, 73, 122)),
|
|
112
|
+
hcLight: new Color(new RGBA(102, 175, 224)),
|
|
113
|
+
},
|
|
114
|
+
localize('modifiedItemForeground', 'The color of the modified setting indicator.'),
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
export const settingsHeaderBorder = registerColor(
|
|
118
|
+
'settings.headerBorder',
|
|
119
|
+
{ dark: PANEL_BORDER, light: PANEL_BORDER, hcDark: PANEL_BORDER, hcLight: PANEL_BORDER },
|
|
120
|
+
localize('settingsHeaderBorder', 'The color of the header container border.'),
|
|
121
|
+
);
|
|
122
|
+
export const settingsSashBorder = registerColor(
|
|
123
|
+
'settings.sashBorder',
|
|
124
|
+
{ dark: PANEL_BORDER, light: PANEL_BORDER, hcDark: PANEL_BORDER, hcLight: PANEL_BORDER },
|
|
125
|
+
localize('settingsSashBorder', 'The color of the Settings editor splitview sash border.'),
|
|
126
|
+
);
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { contrastBorder } from './base';
|
|
7
|
+
import { EDITOR_DRAG_AND_DROP_BACKGROUND } from './editor';
|
|
8
|
+
|
|
9
|
+
// < --- Side Bar --- >
|
|
10
|
+
|
|
11
|
+
export const SIDE_BAR_BACKGROUND = registerColor(
|
|
12
|
+
'sideBar.background',
|
|
13
|
+
{
|
|
14
|
+
dark: '#252526',
|
|
15
|
+
light: '#F3F3F3',
|
|
16
|
+
hcDark: '#000000',
|
|
17
|
+
hcLight: '#FFFFFF',
|
|
18
|
+
},
|
|
19
|
+
localize(
|
|
20
|
+
'sideBarBackground',
|
|
21
|
+
'Side bar background color. The side bar is the container for views like explorer and search.',
|
|
22
|
+
),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const SIDE_BAR_FOREGROUND = registerColor(
|
|
26
|
+
'sideBar.foreground',
|
|
27
|
+
{
|
|
28
|
+
dark: null,
|
|
29
|
+
light: null,
|
|
30
|
+
hcDark: null,
|
|
31
|
+
hcLight: null,
|
|
32
|
+
},
|
|
33
|
+
localize(
|
|
34
|
+
'sideBarForeground',
|
|
35
|
+
'Side bar foreground color. The side bar is the container for views like explorer and search.',
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
export const SIDE_BAR_BORDER = registerColor(
|
|
40
|
+
'sideBar.border',
|
|
41
|
+
{
|
|
42
|
+
dark: null,
|
|
43
|
+
light: null,
|
|
44
|
+
hcDark: contrastBorder,
|
|
45
|
+
hcLight: contrastBorder,
|
|
46
|
+
},
|
|
47
|
+
localize(
|
|
48
|
+
'sideBarBorder',
|
|
49
|
+
'Side bar border color on the side separating to the editor. The side bar is the container for views like explorer and search.',
|
|
50
|
+
),
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
export const SIDE_BAR_TITLE_FOREGROUND = registerColor(
|
|
54
|
+
'sideBarTitle.foreground',
|
|
55
|
+
{
|
|
56
|
+
dark: SIDE_BAR_FOREGROUND,
|
|
57
|
+
light: SIDE_BAR_FOREGROUND,
|
|
58
|
+
hcDark: SIDE_BAR_FOREGROUND,
|
|
59
|
+
hcLight: SIDE_BAR_FOREGROUND,
|
|
60
|
+
},
|
|
61
|
+
localize(
|
|
62
|
+
'sideBarTitleForeground',
|
|
63
|
+
'Side bar title foreground color. The side bar is the container for views like explorer and search.',
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
export const SIDE_BAR_DRAG_AND_DROP_BACKGROUND = registerColor(
|
|
68
|
+
'sideBar.dropBackground',
|
|
69
|
+
{
|
|
70
|
+
dark: EDITOR_DRAG_AND_DROP_BACKGROUND,
|
|
71
|
+
light: EDITOR_DRAG_AND_DROP_BACKGROUND,
|
|
72
|
+
hcDark: EDITOR_DRAG_AND_DROP_BACKGROUND,
|
|
73
|
+
hcLight: EDITOR_DRAG_AND_DROP_BACKGROUND,
|
|
74
|
+
},
|
|
75
|
+
localize(
|
|
76
|
+
'sideBarDragAndDropBackground',
|
|
77
|
+
'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.',
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
export const SIDE_BAR_SECTION_HEADER_BACKGROUND = registerColor(
|
|
82
|
+
'sideBarSectionHeader.background',
|
|
83
|
+
{
|
|
84
|
+
dark: Color.fromHex('#808080').transparent(0.2),
|
|
85
|
+
light: Color.fromHex('#808080').transparent(0.2),
|
|
86
|
+
hcDark: null,
|
|
87
|
+
hcLight: null,
|
|
88
|
+
},
|
|
89
|
+
localize(
|
|
90
|
+
'sideBarSectionHeaderBackground',
|
|
91
|
+
'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.',
|
|
92
|
+
),
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
export const SIDE_BAR_SECTION_HEADER_FOREGROUND = registerColor(
|
|
96
|
+
'sideBarSectionHeader.foreground',
|
|
97
|
+
{
|
|
98
|
+
dark: SIDE_BAR_FOREGROUND,
|
|
99
|
+
light: SIDE_BAR_FOREGROUND,
|
|
100
|
+
hcDark: SIDE_BAR_FOREGROUND,
|
|
101
|
+
hcLight: SIDE_BAR_FOREGROUND,
|
|
102
|
+
},
|
|
103
|
+
localize(
|
|
104
|
+
'sideBarSectionHeaderForeground',
|
|
105
|
+
'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.',
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
export const SIDE_BAR_SECTION_HEADER_BORDER = registerColor(
|
|
110
|
+
'sideBarSectionHeader.border',
|
|
111
|
+
{
|
|
112
|
+
dark: contrastBorder,
|
|
113
|
+
light: contrastBorder,
|
|
114
|
+
hcDark: contrastBorder,
|
|
115
|
+
hcLight: contrastBorder,
|
|
116
|
+
},
|
|
117
|
+
localize(
|
|
118
|
+
'sideBarSectionHeaderBorder',
|
|
119
|
+
'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.',
|
|
120
|
+
),
|
|
121
|
+
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color, RGBA } from '../../common/color';
|
|
4
|
+
import { registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Snippet placeholder colors
|
|
8
|
+
*/
|
|
9
|
+
export const snippetTabstopHighlightBackground = registerColor(
|
|
10
|
+
'editor.snippetTabstopHighlightBackground',
|
|
11
|
+
{
|
|
12
|
+
dark: new Color(new RGBA(124, 124, 124, 0.3)),
|
|
13
|
+
light: new Color(new RGBA(10, 50, 100, 0.2)),
|
|
14
|
+
hcDark: new Color(new RGBA(124, 124, 124, 0.3)),
|
|
15
|
+
hcLight: new Color(new RGBA(10, 50, 100, 0.2)),
|
|
16
|
+
},
|
|
17
|
+
localize('snippetTabstopHighlightBackground', 'Highlight background color of a snippet tabstop.'),
|
|
18
|
+
);
|
|
19
|
+
export const snippetTabstopHighlightBorder = registerColor(
|
|
20
|
+
'editor.snippetTabstopHighlightBorder',
|
|
21
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
22
|
+
localize('snippetTabstopHighlightBorder', 'Highlight border color of a snippet tabstop.'),
|
|
23
|
+
);
|
|
24
|
+
export const snippetFinalTabstopHighlightBackground = registerColor(
|
|
25
|
+
'editor.snippetFinalTabstopHighlightBackground',
|
|
26
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
27
|
+
localize('snippetFinalTabstopHighlightBackground', 'Highlight background color of the final tabstop of a snippet.'),
|
|
28
|
+
);
|
|
29
|
+
export const snippetFinalTabstopHighlightBorder = registerColor(
|
|
30
|
+
'editor.snippetFinalTabstopHighlightBorder',
|
|
31
|
+
{ dark: '#525252', light: new Color(new RGBA(10, 50, 100, 0.5)), hcDark: '#525252', hcLight: '#292929' },
|
|
32
|
+
localize('snippetFinalTabstopHighlightBorder', 'Highlight border color of the final tabstop of a snippet.'),
|
|
33
|
+
);
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { darken, registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { ACTIVITY_BAR_BADGE_BACKGROUND, ACTIVITY_BAR_BADGE_FOREGROUND } from './activity-bar';
|
|
7
|
+
import { activeContrastBorder, contrastBorder, errorForeground } from './base';
|
|
8
|
+
import { editorForeground, editorWarningForeground } from './editor';
|
|
9
|
+
|
|
10
|
+
// < --- Status --- >
|
|
11
|
+
|
|
12
|
+
export const STATUS_BAR_FOREGROUND = registerColor(
|
|
13
|
+
'statusBar.foreground',
|
|
14
|
+
{
|
|
15
|
+
dark: '#FFFFFF',
|
|
16
|
+
light: '#FFFFFF',
|
|
17
|
+
hcDark: '#FFFFFF',
|
|
18
|
+
hcLight: editorForeground,
|
|
19
|
+
},
|
|
20
|
+
localize(
|
|
21
|
+
'statusBarForeground',
|
|
22
|
+
'Status bar foreground color when a workspace or folder is opened. The status bar is shown in the bottom of the window.',
|
|
23
|
+
),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export const STATUS_BAR_NO_FOLDER_FOREGROUND = registerColor(
|
|
27
|
+
'statusBar.noFolderForeground',
|
|
28
|
+
{
|
|
29
|
+
dark: STATUS_BAR_FOREGROUND,
|
|
30
|
+
light: STATUS_BAR_FOREGROUND,
|
|
31
|
+
hcDark: STATUS_BAR_FOREGROUND,
|
|
32
|
+
hcLight: STATUS_BAR_FOREGROUND,
|
|
33
|
+
},
|
|
34
|
+
localize(
|
|
35
|
+
'statusBarNoFolderForeground',
|
|
36
|
+
'Status bar foreground color when no folder is opened. The status bar is shown in the bottom of the window.',
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export const STATUS_BAR_BACKGROUND = registerColor(
|
|
41
|
+
'statusBar.background',
|
|
42
|
+
{
|
|
43
|
+
dark: '#007ACC',
|
|
44
|
+
light: '#007ACC',
|
|
45
|
+
hcDark: null,
|
|
46
|
+
hcLight: null,
|
|
47
|
+
},
|
|
48
|
+
localize(
|
|
49
|
+
'statusBarBackground',
|
|
50
|
+
'Status bar background color when a workspace or folder is opened. The status bar is shown in the bottom of the window.',
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export const STATUS_BAR_NO_FOLDER_BACKGROUND = registerColor(
|
|
55
|
+
'statusBar.noFolderBackground',
|
|
56
|
+
{
|
|
57
|
+
dark: '#68217A',
|
|
58
|
+
light: '#68217A',
|
|
59
|
+
hcDark: null,
|
|
60
|
+
hcLight: null,
|
|
61
|
+
},
|
|
62
|
+
localize(
|
|
63
|
+
'statusBarNoFolderBackground',
|
|
64
|
+
'Status bar background color when no folder is opened. The status bar is shown in the bottom of the window.',
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
export const STATUS_BAR_BORDER = registerColor(
|
|
69
|
+
'statusBar.border',
|
|
70
|
+
{
|
|
71
|
+
dark: null,
|
|
72
|
+
light: null,
|
|
73
|
+
hcDark: contrastBorder,
|
|
74
|
+
hcLight: contrastBorder,
|
|
75
|
+
},
|
|
76
|
+
localize(
|
|
77
|
+
'statusBarBorder',
|
|
78
|
+
'Status bar border color separating to the sidebar and editor. The status bar is shown in the bottom of the window.',
|
|
79
|
+
),
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
export const STATUS_BAR_FOCUS_BORDER = registerColor(
|
|
83
|
+
'statusBar.focusBorder',
|
|
84
|
+
{
|
|
85
|
+
dark: STATUS_BAR_FOREGROUND,
|
|
86
|
+
light: STATUS_BAR_FOREGROUND,
|
|
87
|
+
hcDark: null,
|
|
88
|
+
hcLight: STATUS_BAR_FOREGROUND,
|
|
89
|
+
},
|
|
90
|
+
localize(
|
|
91
|
+
'statusBarFocusBorder',
|
|
92
|
+
'Status bar border color when focused on keyboard navigation. The status bar is shown in the bottom of the window.',
|
|
93
|
+
),
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
export const STATUS_BAR_NO_FOLDER_BORDER = registerColor(
|
|
97
|
+
'statusBar.noFolderBorder',
|
|
98
|
+
{
|
|
99
|
+
dark: STATUS_BAR_BORDER,
|
|
100
|
+
light: STATUS_BAR_BORDER,
|
|
101
|
+
hcDark: STATUS_BAR_BORDER,
|
|
102
|
+
hcLight: STATUS_BAR_BORDER,
|
|
103
|
+
},
|
|
104
|
+
localize(
|
|
105
|
+
'statusBarNoFolderBorder',
|
|
106
|
+
'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.',
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
export const STATUS_BAR_ITEM_ACTIVE_BACKGROUND = registerColor(
|
|
111
|
+
'statusBarItem.activeBackground',
|
|
112
|
+
{
|
|
113
|
+
dark: Color.white.transparent(0.18),
|
|
114
|
+
light: Color.white.transparent(0.18),
|
|
115
|
+
hcDark: Color.white.transparent(0.18),
|
|
116
|
+
hcLight: Color.black.transparent(0.18),
|
|
117
|
+
},
|
|
118
|
+
localize(
|
|
119
|
+
'statusBarItemActiveBackground',
|
|
120
|
+
'Status bar item background color when clicking. The status bar is shown in the bottom of the window.',
|
|
121
|
+
),
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
export const STATUS_BAR_ITEM_FOCUS_BORDER = registerColor(
|
|
125
|
+
'statusBarItem.focusBorder',
|
|
126
|
+
{
|
|
127
|
+
dark: STATUS_BAR_FOREGROUND,
|
|
128
|
+
light: STATUS_BAR_FOREGROUND,
|
|
129
|
+
hcDark: null,
|
|
130
|
+
hcLight: activeContrastBorder,
|
|
131
|
+
},
|
|
132
|
+
localize(
|
|
133
|
+
'statusBarItemFocusBorder',
|
|
134
|
+
'Status bar item border color when focused on keyboard navigation. The status bar is shown in the bottom of the window.',
|
|
135
|
+
),
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
export const STATUS_BAR_ITEM_HOVER_BACKGROUND = registerColor(
|
|
139
|
+
'statusBarItem.hoverBackground',
|
|
140
|
+
{
|
|
141
|
+
dark: Color.white.transparent(0.12),
|
|
142
|
+
light: Color.white.transparent(0.12),
|
|
143
|
+
hcDark: Color.white.transparent(0.12),
|
|
144
|
+
hcLight: Color.black.transparent(0.12),
|
|
145
|
+
},
|
|
146
|
+
localize(
|
|
147
|
+
'statusBarItemHoverBackground',
|
|
148
|
+
'Status bar item background color when hovering. The status bar is shown in the bottom of the window.',
|
|
149
|
+
),
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
export const STATUS_BAR_ITEM_COMPACT_HOVER_BACKGROUND = registerColor(
|
|
153
|
+
'statusBarItem.compactHoverBackground',
|
|
154
|
+
{
|
|
155
|
+
dark: Color.white.transparent(0.2),
|
|
156
|
+
light: Color.white.transparent(0.2),
|
|
157
|
+
hcDark: Color.white.transparent(0.2),
|
|
158
|
+
hcLight: Color.black.transparent(0.2),
|
|
159
|
+
},
|
|
160
|
+
localize(
|
|
161
|
+
'statusBarItemCompactHoverBackground',
|
|
162
|
+
'Status bar item background color when hovering an item that contains two hovers. The status bar is shown in the bottom of the window.',
|
|
163
|
+
),
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
export const STATUS_BAR_PROMINENT_ITEM_FOREGROUND = registerColor(
|
|
167
|
+
'statusBarItem.prominentForeground',
|
|
168
|
+
{
|
|
169
|
+
dark: STATUS_BAR_FOREGROUND,
|
|
170
|
+
light: STATUS_BAR_FOREGROUND,
|
|
171
|
+
hcDark: STATUS_BAR_FOREGROUND,
|
|
172
|
+
hcLight: STATUS_BAR_FOREGROUND,
|
|
173
|
+
},
|
|
174
|
+
localize(
|
|
175
|
+
'statusBarProminentItemForeground',
|
|
176
|
+
'Status bar prominent items foreground color. Prominent items stand out from other status bar entries to indicate importance. Change mode `Toggle Tab Key Moves Focus` from command palette to see an example. The status bar is shown in the bottom of the window.',
|
|
177
|
+
),
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
export const STATUS_BAR_PROMINENT_ITEM_BACKGROUND = registerColor(
|
|
181
|
+
'statusBarItem.prominentBackground',
|
|
182
|
+
{
|
|
183
|
+
dark: Color.black.transparent(0.5),
|
|
184
|
+
light: Color.black.transparent(0.5),
|
|
185
|
+
hcDark: Color.black.transparent(0.5),
|
|
186
|
+
hcLight: Color.black.transparent(0.5),
|
|
187
|
+
},
|
|
188
|
+
localize(
|
|
189
|
+
'statusBarProminentItemBackground',
|
|
190
|
+
'Status bar prominent items background color. Prominent items stand out from other status bar entries to indicate importance. Change mode `Toggle Tab Key Moves Focus` from command palette to see an example. The status bar is shown in the bottom of the window.',
|
|
191
|
+
),
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
export const STATUS_BAR_PROMINENT_ITEM_HOVER_BACKGROUND = registerColor(
|
|
195
|
+
'statusBarItem.prominentHoverBackground',
|
|
196
|
+
{
|
|
197
|
+
dark: Color.black.transparent(0.3),
|
|
198
|
+
light: Color.black.transparent(0.3),
|
|
199
|
+
hcDark: Color.black.transparent(0.3),
|
|
200
|
+
hcLight: null,
|
|
201
|
+
},
|
|
202
|
+
localize(
|
|
203
|
+
'statusBarProminentItemHoverBackground',
|
|
204
|
+
'Status bar prominent items background color when hovering. Prominent items stand out from other status bar entries to indicate importance. Change mode `Toggle Tab Key Moves Focus` from command palette to see an example. The status bar is shown in the bottom of the window.',
|
|
205
|
+
),
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
export const STATUS_BAR_ERROR_ITEM_BACKGROUND = registerColor(
|
|
209
|
+
'statusBarItem.errorBackground',
|
|
210
|
+
{
|
|
211
|
+
dark: darken(errorForeground, 0.4),
|
|
212
|
+
light: darken(errorForeground, 0.4),
|
|
213
|
+
hcDark: null,
|
|
214
|
+
hcLight: '#B5200D',
|
|
215
|
+
},
|
|
216
|
+
localize(
|
|
217
|
+
'statusBarErrorItemBackground',
|
|
218
|
+
'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.',
|
|
219
|
+
),
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
export const STATUS_BAR_ERROR_ITEM_FOREGROUND = registerColor(
|
|
223
|
+
'statusBarItem.errorForeground',
|
|
224
|
+
{
|
|
225
|
+
dark: Color.white,
|
|
226
|
+
light: Color.white,
|
|
227
|
+
hcDark: Color.white,
|
|
228
|
+
hcLight: Color.white,
|
|
229
|
+
},
|
|
230
|
+
localize(
|
|
231
|
+
'statusBarErrorItemForeground',
|
|
232
|
+
'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.',
|
|
233
|
+
),
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
export const STATUS_BAR_WARNING_ITEM_BACKGROUND = registerColor(
|
|
237
|
+
'statusBarItem.warningBackground',
|
|
238
|
+
{
|
|
239
|
+
dark: darken(editorWarningForeground, 0.4),
|
|
240
|
+
light: darken(editorWarningForeground, 0.4),
|
|
241
|
+
hcDark: null,
|
|
242
|
+
hcLight: '#895503',
|
|
243
|
+
},
|
|
244
|
+
localize(
|
|
245
|
+
'statusBarWarningItemBackground',
|
|
246
|
+
'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.',
|
|
247
|
+
),
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
export const STATUS_BAR_WARNING_ITEM_FOREGROUND = registerColor(
|
|
251
|
+
'statusBarItem.warningForeground',
|
|
252
|
+
{
|
|
253
|
+
dark: Color.white,
|
|
254
|
+
light: Color.white,
|
|
255
|
+
hcDark: Color.white,
|
|
256
|
+
hcLight: Color.white,
|
|
257
|
+
},
|
|
258
|
+
localize(
|
|
259
|
+
'statusBarWarningItemForeground',
|
|
260
|
+
'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.',
|
|
261
|
+
),
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
// < --- Remote --- >
|
|
265
|
+
|
|
266
|
+
export const STATUS_BAR_HOST_NAME_BACKGROUND = registerColor(
|
|
267
|
+
'statusBarItem.remoteBackground',
|
|
268
|
+
{
|
|
269
|
+
dark: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
270
|
+
light: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
271
|
+
hcDark: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
272
|
+
hcLight: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
273
|
+
},
|
|
274
|
+
localize('statusBarItemHostBackground', 'Background color for the remote indicator on the status bar.'),
|
|
275
|
+
);
|
|
276
|
+
|
|
277
|
+
export const STATUS_BAR_HOST_NAME_FOREGROUND = registerColor(
|
|
278
|
+
'statusBarItem.remoteForeground',
|
|
279
|
+
{
|
|
280
|
+
dark: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
281
|
+
light: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
282
|
+
hcDark: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
283
|
+
hcLight: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
284
|
+
},
|
|
285
|
+
localize('statusBarItemHostForeground', 'Foreground color for the remote indicator on the status bar.'),
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
export const EXTENSION_BADGE_REMOTE_BACKGROUND = registerColor(
|
|
289
|
+
'extensionBadge.remoteBackground',
|
|
290
|
+
{
|
|
291
|
+
dark: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
292
|
+
light: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
293
|
+
hcDark: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
294
|
+
hcLight: ACTIVITY_BAR_BADGE_BACKGROUND,
|
|
295
|
+
},
|
|
296
|
+
localize('extensionBadge.remoteBackground', 'Background color for the remote badge in the extensions view.'),
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
export const EXTENSION_BADGE_REMOTE_FOREGROUND = registerColor(
|
|
300
|
+
'extensionBadge.remoteForeground',
|
|
301
|
+
{
|
|
302
|
+
dark: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
303
|
+
light: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
304
|
+
hcDark: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
305
|
+
hcLight: ACTIVITY_BAR_BADGE_FOREGROUND,
|
|
306
|
+
},
|
|
307
|
+
localize('extensionBadge.remoteForeground', 'Foreground color for the remote badge in the extensions view.'),
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
export const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor(
|
|
311
|
+
'statusBar.debuggingBackground',
|
|
312
|
+
{
|
|
313
|
+
dark: '#CC6633',
|
|
314
|
+
light: '#CC6633',
|
|
315
|
+
hcDark: '#BA592C',
|
|
316
|
+
hcLight: '#B5200D',
|
|
317
|
+
},
|
|
318
|
+
localize(
|
|
319
|
+
'statusBarDebuggingBackground',
|
|
320
|
+
'Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window',
|
|
321
|
+
),
|
|
322
|
+
);
|
|
323
|
+
|
|
324
|
+
export const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor(
|
|
325
|
+
'statusBar.debuggingForeground',
|
|
326
|
+
{
|
|
327
|
+
dark: STATUS_BAR_FOREGROUND,
|
|
328
|
+
light: STATUS_BAR_FOREGROUND,
|
|
329
|
+
hcDark: STATUS_BAR_FOREGROUND,
|
|
330
|
+
hcLight: '#FFFFFF',
|
|
331
|
+
},
|
|
332
|
+
localize(
|
|
333
|
+
'statusBarDebuggingForeground',
|
|
334
|
+
'Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window',
|
|
335
|
+
),
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
export const STATUS_BAR_DEBUGGING_BORDER = registerColor(
|
|
339
|
+
'statusBar.debuggingBorder',
|
|
340
|
+
{
|
|
341
|
+
dark: STATUS_BAR_BORDER,
|
|
342
|
+
light: STATUS_BAR_BORDER,
|
|
343
|
+
hcDark: STATUS_BAR_BORDER,
|
|
344
|
+
hcLight: STATUS_BAR_BORDER,
|
|
345
|
+
},
|
|
346
|
+
localize(
|
|
347
|
+
'statusBarDebuggingBorder',
|
|
348
|
+
'Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window',
|
|
349
|
+
),
|
|
350
|
+
);
|