@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,35 @@
|
|
|
1
|
+
export * from './activity-bar';
|
|
2
|
+
export * from './badge';
|
|
3
|
+
export * from './base';
|
|
4
|
+
export * from './breadcrumb';
|
|
5
|
+
export * from './button';
|
|
6
|
+
export * from './dropdown';
|
|
7
|
+
export * from './editor';
|
|
8
|
+
export * from './input';
|
|
9
|
+
export * from './checkbox';
|
|
10
|
+
export * from './list-tree';
|
|
11
|
+
export * from './menu-bar';
|
|
12
|
+
export * from './menu';
|
|
13
|
+
export * from './merge-conflict';
|
|
14
|
+
export * from './notification';
|
|
15
|
+
export * from './panel';
|
|
16
|
+
export * from './picker';
|
|
17
|
+
export * from './progress-bar';
|
|
18
|
+
export * from './quick-input';
|
|
19
|
+
export * from './scrollbar';
|
|
20
|
+
export * from './settings';
|
|
21
|
+
export * from './sidebar';
|
|
22
|
+
export * from './snippet';
|
|
23
|
+
export * from './status-bar';
|
|
24
|
+
export * from './tab';
|
|
25
|
+
export * from './text';
|
|
26
|
+
export * from './title-bar';
|
|
27
|
+
export * from './welcome-page';
|
|
28
|
+
export * from './pick-view';
|
|
29
|
+
export * from './debug';
|
|
30
|
+
export * from './debugToolbar';
|
|
31
|
+
export * from './charts';
|
|
32
|
+
export * from './minimap';
|
|
33
|
+
export * from './testing';
|
|
34
|
+
|
|
35
|
+
export * from './custom';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { registerColor, transparent } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { contrastBorder, focusBorder, foreground } from './base';
|
|
7
|
+
import { secondaryForegroundColor } from './basic-color';
|
|
8
|
+
|
|
9
|
+
export const inputBorder = registerColor(
|
|
10
|
+
'input.border',
|
|
11
|
+
{ dark: '#00000000', light: '#00000000', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
12
|
+
localize('inputBoxBorder', 'Input box border.'),
|
|
13
|
+
);
|
|
14
|
+
export const inputBackground = registerColor(
|
|
15
|
+
'input.background',
|
|
16
|
+
{ dark: '#00000040', light: Color.white, hcDark: Color.black, hcLight: Color.white },
|
|
17
|
+
localize('inputBoxBackground', 'Input box background.'),
|
|
18
|
+
);
|
|
19
|
+
export const inputForeground = registerColor(
|
|
20
|
+
'input.foreground',
|
|
21
|
+
{ dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
|
|
22
|
+
localize('inputBoxForeground', 'Input box foreground.'),
|
|
23
|
+
);
|
|
24
|
+
export const inputPlaceholderForeground = registerColor(
|
|
25
|
+
'input.placeholderForeground',
|
|
26
|
+
{
|
|
27
|
+
light: transparent(foreground, 0.5),
|
|
28
|
+
dark: transparent(foreground, 0.5),
|
|
29
|
+
hcDark: transparent(foreground, 0.7),
|
|
30
|
+
hcLight: transparent(foreground, 0.7),
|
|
31
|
+
},
|
|
32
|
+
localize('inputPlaceholderForeground', 'Input box foreground color for placeholder text.'),
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export const inputActiveOptionBorder = registerColor(
|
|
36
|
+
'inputOption.activeBorder',
|
|
37
|
+
{ dark: '#007ACC', light: '#007ACC', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
38
|
+
localize('inputBoxActiveOptionBorder', 'Border color of activated options in input fields.'),
|
|
39
|
+
);
|
|
40
|
+
export const inputActiveOptionHoverBackground = registerColor(
|
|
41
|
+
'inputOption.hoverBackground',
|
|
42
|
+
{ dark: '#5a5d5e80', light: '#b8b8b850', hcDark: null, hcLight: null },
|
|
43
|
+
localize('inputOption.hoverBackground', 'Background color of activated options in input fields.'),
|
|
44
|
+
);
|
|
45
|
+
export const inputActiveOptionBackground = registerColor(
|
|
46
|
+
'inputOption.activeBackground',
|
|
47
|
+
{
|
|
48
|
+
dark: transparent(focusBorder, 0.4),
|
|
49
|
+
light: transparent(focusBorder, 0.2),
|
|
50
|
+
hcDark: Color.transparent,
|
|
51
|
+
hcLight: Color.transparent,
|
|
52
|
+
},
|
|
53
|
+
localize('inputOption.activeBackground', 'Background hover color of options in input fields.'),
|
|
54
|
+
);
|
|
55
|
+
export const inputActiveOptionForeground = registerColor(
|
|
56
|
+
'inputOption.activeForeground',
|
|
57
|
+
{ dark: Color.white, light: Color.black, hcDark: null, hcLight: foreground },
|
|
58
|
+
localize('inputOption.activeForeground', 'Foreground color of activated options in input fields.'),
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export const inputValidationInfoBackground = registerColor(
|
|
62
|
+
'inputValidation.infoBackground',
|
|
63
|
+
{ dark: '#063B49', light: '#D6ECF2', hcDark: Color.black, hcLight: Color.white },
|
|
64
|
+
localize('inputValidationInfoBackground', 'Input validation background color for information severity.'),
|
|
65
|
+
);
|
|
66
|
+
export const inputValidationInfoForeground = registerColor(
|
|
67
|
+
'inputValidation.infoForeground',
|
|
68
|
+
{ dark: null, light: null, hcDark: null, hcLight: foreground },
|
|
69
|
+
localize('inputValidationInfoForeground', 'Input validation foreground color for information severity.'),
|
|
70
|
+
);
|
|
71
|
+
export const inputValidationInfoBorder = registerColor(
|
|
72
|
+
'inputValidation.infoBorder',
|
|
73
|
+
{ dark: '#007acc', light: '#007acc', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
74
|
+
localize('inputValidationInfoBorder', 'Input validation border color for information severity.'),
|
|
75
|
+
);
|
|
76
|
+
export const inputValidationWarningBackground = registerColor(
|
|
77
|
+
'inputValidation.warningBackground',
|
|
78
|
+
{ dark: '#352A05', light: '#F6F5D2', hcDark: Color.black, hcLight: Color.white },
|
|
79
|
+
localize('inputValidationWarningBackground', 'Input validation background color for warning severity.'),
|
|
80
|
+
);
|
|
81
|
+
export const inputValidationWarningForeground = registerColor(
|
|
82
|
+
'inputValidation.warningForeground',
|
|
83
|
+
{ dark: null, light: null, hcDark: null, hcLight: foreground },
|
|
84
|
+
localize('inputValidationWarningForeground', 'Input validation foreground color for warning severity.'),
|
|
85
|
+
);
|
|
86
|
+
export const inputValidationWarningBorder = registerColor(
|
|
87
|
+
'inputValidation.warningBorder',
|
|
88
|
+
{ dark: '#B89500', light: '#B89500', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
89
|
+
localize('inputValidationWarningBorder', 'Input validation border color for warning severity.'),
|
|
90
|
+
);
|
|
91
|
+
export const inputValidationErrorBackground = registerColor(
|
|
92
|
+
'inputValidation.errorBackground',
|
|
93
|
+
{ dark: '#5A1D1D', light: '#F2DEDE', hcDark: Color.black, hcLight: Color.white },
|
|
94
|
+
localize('inputValidationErrorBackground', 'Input validation background color for error severity.'),
|
|
95
|
+
);
|
|
96
|
+
export const inputValidationErrorForeground = registerColor(
|
|
97
|
+
'inputValidation.errorForeground',
|
|
98
|
+
{ dark: null, light: null, hcDark: null, hcLight: foreground },
|
|
99
|
+
localize('inputValidationErrorForeground', 'Input validation foreground color for error severity.'),
|
|
100
|
+
);
|
|
101
|
+
export const inputValidationErrorBorder = registerColor(
|
|
102
|
+
'inputValidation.errorBorder',
|
|
103
|
+
{ dark: '#BE1100', light: '#BE1100', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
104
|
+
localize('inputValidationErrorBorder', 'Input validation border color for error severity.'),
|
|
105
|
+
);
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { darken, lighten, registerColor, transparent } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { activeContrastBorder, contrastBorder, focusBorder, foreground, widgetShadow } from './base';
|
|
7
|
+
import { editorFindMatchHighlight, editorFindMatchHighlightBorder, editorWidgetBackground } from './editor';
|
|
8
|
+
|
|
9
|
+
export const listFocusBackground = registerColor(
|
|
10
|
+
'list.focusBackground',
|
|
11
|
+
{ dark: '#062F4A', light: '#D6EBFF', hcDark: null, hcLight: null },
|
|
12
|
+
localize(
|
|
13
|
+
'listFocusBackground',
|
|
14
|
+
'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.',
|
|
15
|
+
),
|
|
16
|
+
);
|
|
17
|
+
export const listFocusForeground = registerColor(
|
|
18
|
+
'list.focusForeground',
|
|
19
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
20
|
+
localize(
|
|
21
|
+
'listFocusForeground',
|
|
22
|
+
'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.',
|
|
23
|
+
),
|
|
24
|
+
);
|
|
25
|
+
export const listFocusAndSelectionOutline = registerColor(
|
|
26
|
+
'list.focusAndSelectionOutline',
|
|
27
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
28
|
+
localize(
|
|
29
|
+
'listFocusAndSelectionOutline',
|
|
30
|
+
'List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.',
|
|
31
|
+
),
|
|
32
|
+
);
|
|
33
|
+
export const listActiveSelectionBackground = registerColor(
|
|
34
|
+
'list.activeSelectionBackground',
|
|
35
|
+
{ dark: '#04395E', light: '#0060C0', hcDark: null, hcLight: Color.fromHex('#0F4A85').transparent(0.1) },
|
|
36
|
+
localize(
|
|
37
|
+
'listActiveSelectionBackground',
|
|
38
|
+
'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.',
|
|
39
|
+
),
|
|
40
|
+
);
|
|
41
|
+
export const listActiveSelectionForeground = registerColor(
|
|
42
|
+
'list.activeSelectionForeground',
|
|
43
|
+
{ dark: Color.white, light: Color.white, hcDark: null, hcLight: null },
|
|
44
|
+
localize(
|
|
45
|
+
'listActiveSelectionForeground',
|
|
46
|
+
'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.',
|
|
47
|
+
),
|
|
48
|
+
);
|
|
49
|
+
export const listActiveSelectionIconForeground = registerColor(
|
|
50
|
+
'list.activeSelectionIconForeground',
|
|
51
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
52
|
+
localize(
|
|
53
|
+
'listActiveSelectionIconForeground',
|
|
54
|
+
'List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.',
|
|
55
|
+
),
|
|
56
|
+
);
|
|
57
|
+
export const listInactiveSelectionBackground = registerColor(
|
|
58
|
+
'list.inactiveSelectionBackground',
|
|
59
|
+
{ dark: '#37373D', light: '#E4E6F1', hcDark: null, hcLight: Color.fromHex('#0F4A85').transparent(0.1) },
|
|
60
|
+
localize(
|
|
61
|
+
'listInactiveSelectionBackground',
|
|
62
|
+
'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.',
|
|
63
|
+
),
|
|
64
|
+
);
|
|
65
|
+
export const listInactiveSelectionForeground = registerColor(
|
|
66
|
+
'list.inactiveSelectionForeground',
|
|
67
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
68
|
+
localize(
|
|
69
|
+
'listInactiveSelectionForeground',
|
|
70
|
+
'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.',
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
export const listInactiveSelectionIconForeground = registerColor(
|
|
74
|
+
'list.inactiveSelectionIconForeground',
|
|
75
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
76
|
+
localize(
|
|
77
|
+
'listInactiveSelectionIconForeground',
|
|
78
|
+
'List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.',
|
|
79
|
+
),
|
|
80
|
+
);
|
|
81
|
+
export const listInactiveFocusBackground = registerColor(
|
|
82
|
+
'list.inactiveFocusBackground',
|
|
83
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
84
|
+
localize(
|
|
85
|
+
'listInactiveFocusBackground',
|
|
86
|
+
'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.',
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
export const listInactiveFocusOutline = registerColor(
|
|
90
|
+
'list.inactiveFocusOutline',
|
|
91
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
92
|
+
localize(
|
|
93
|
+
'listInactiveFocusOutline',
|
|
94
|
+
'List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.',
|
|
95
|
+
),
|
|
96
|
+
);
|
|
97
|
+
export const listHoverBackground = registerColor(
|
|
98
|
+
'list.hoverBackground',
|
|
99
|
+
{ dark: '#2A2D2E', light: '#F0F0F0', hcDark: '#2A2D2E', hcLight: Color.fromHex('#0F4A85').transparent(0.1) },
|
|
100
|
+
localize('listHoverBackground', 'List/Tree background when hovering over items using the mouse.'),
|
|
101
|
+
);
|
|
102
|
+
export const listHoverForeground = registerColor(
|
|
103
|
+
'list.hoverForeground',
|
|
104
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
105
|
+
localize('listHoverForeground', 'List/Tree foreground when hovering over items using the mouse.'),
|
|
106
|
+
);
|
|
107
|
+
export const listDropBackground = registerColor(
|
|
108
|
+
'list.dropBackground',
|
|
109
|
+
{ dark: '#062F4A', light: '#D6EBFF', hcDark: null, hcLight: null },
|
|
110
|
+
localize('listDropBackground', 'List/Tree drag and drop background when moving items around using the mouse.'),
|
|
111
|
+
);
|
|
112
|
+
export const listHighlightForeground = registerColor(
|
|
113
|
+
'list.highlightForeground',
|
|
114
|
+
{ dark: '#2AAAFF', light: '#0066BF', hcDark: focusBorder, hcLight: focusBorder },
|
|
115
|
+
localize('highlight', 'List/Tree foreground color of the match highlights when searching inside the list/tree.'),
|
|
116
|
+
);
|
|
117
|
+
export const listInvalidItemForeground = registerColor(
|
|
118
|
+
'list.invalidItemForeground',
|
|
119
|
+
{ dark: '#B89500', light: '#B89500', hcDark: '#B89500', hcLight: '#B5200D' },
|
|
120
|
+
localize(
|
|
121
|
+
'invalidItemForeground',
|
|
122
|
+
'List/Tree foreground color for invalid items, for example an unresolved root in explorer.',
|
|
123
|
+
),
|
|
124
|
+
);
|
|
125
|
+
export const listErrorForeground = registerColor(
|
|
126
|
+
'list.errorForeground',
|
|
127
|
+
{ dark: '#F88070', light: '#B01011', hcDark: null, hcLight: null },
|
|
128
|
+
localize('listErrorForeground', 'Foreground color of list items containing errors.'),
|
|
129
|
+
);
|
|
130
|
+
export const listWarningForeground = registerColor(
|
|
131
|
+
'list.warningForeground',
|
|
132
|
+
{ dark: '#CCA700', light: '#855F00', hcDark: null, hcLight: null },
|
|
133
|
+
localize('listWarningForeground', 'Foreground color of list items containing warnings.'),
|
|
134
|
+
);
|
|
135
|
+
export const listFilterWidgetBackground = registerColor(
|
|
136
|
+
'listFilterWidget.background',
|
|
137
|
+
{
|
|
138
|
+
light: darken(editorWidgetBackground, 0),
|
|
139
|
+
dark: lighten(editorWidgetBackground, 0),
|
|
140
|
+
hcDark: editorWidgetBackground,
|
|
141
|
+
hcLight: editorWidgetBackground,
|
|
142
|
+
},
|
|
143
|
+
localize('listFilterWidgetBackground', 'Background color of the type filter widget in lists and trees.'),
|
|
144
|
+
);
|
|
145
|
+
export const listFilterWidgetOutline = registerColor(
|
|
146
|
+
'listFilterWidget.outline',
|
|
147
|
+
{ dark: Color.transparent, light: Color.transparent, hcDark: '#f38518', hcLight: '#007ACC' },
|
|
148
|
+
localize('listFilterWidgetOutline', 'Outline color of the type filter widget in lists and trees.'),
|
|
149
|
+
);
|
|
150
|
+
export const listFilterWidgetNoMatchesOutline = registerColor(
|
|
151
|
+
'listFilterWidget.noMatchesOutline',
|
|
152
|
+
{ dark: '#BE1100', light: '#BE1100', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
153
|
+
localize(
|
|
154
|
+
'listFilterWidgetNoMatchesOutline',
|
|
155
|
+
'Outline color of the type filter widget in lists and trees, when there are no matches.',
|
|
156
|
+
),
|
|
157
|
+
);
|
|
158
|
+
export const listFilterWidgetShadow = registerColor(
|
|
159
|
+
'listFilterWidget.shadow',
|
|
160
|
+
{ dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow },
|
|
161
|
+
localize('listFilterWidgetShadow', 'Shadown color of the type filter widget in lists and trees.'),
|
|
162
|
+
);
|
|
163
|
+
export const listFilterMatchHighlight = registerColor(
|
|
164
|
+
'list.filterMatchBackground',
|
|
165
|
+
{ dark: editorFindMatchHighlight, light: editorFindMatchHighlight, hcDark: null, hcLight: null },
|
|
166
|
+
localize('listFilterMatchHighlight', 'Background color of the filtered match.'),
|
|
167
|
+
);
|
|
168
|
+
export const listFilterMatchHighlightBorder = registerColor(
|
|
169
|
+
'list.filterMatchBorder',
|
|
170
|
+
{
|
|
171
|
+
dark: editorFindMatchHighlightBorder,
|
|
172
|
+
light: editorFindMatchHighlightBorder,
|
|
173
|
+
hcDark: contrastBorder,
|
|
174
|
+
hcLight: activeContrastBorder,
|
|
175
|
+
},
|
|
176
|
+
localize('listFilterMatchHighlightBorder', 'Border color of the filtered match.'),
|
|
177
|
+
);
|
|
178
|
+
export const treeIndentGuidesStroke = registerColor(
|
|
179
|
+
'tree.indentGuidesStroke',
|
|
180
|
+
{ dark: '#585858', light: '#a9a9a9', hcDark: '#a9a9a9', hcLight: '#a5a5a5' },
|
|
181
|
+
localize('treeIndentGuidesStroke', 'Tree stroke color for the indentation guides.'),
|
|
182
|
+
);
|
|
183
|
+
export const listFocusOutline = registerColor(
|
|
184
|
+
'list.focusOutline',
|
|
185
|
+
{ dark: focusBorder, light: focusBorder, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
|
|
186
|
+
localize(
|
|
187
|
+
'listFocusOutline',
|
|
188
|
+
'List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.',
|
|
189
|
+
),
|
|
190
|
+
);
|
|
191
|
+
export const tableColumnsBorder = registerColor(
|
|
192
|
+
'tree.tableColumnsBorder',
|
|
193
|
+
{ dark: '#CCCCCC20', light: '#61616120', hcDark: null, hcLight: null },
|
|
194
|
+
localize('tableColumnsBorder', 'Table border color between columns.'),
|
|
195
|
+
);
|
|
196
|
+
export const tableOddRowsBackgroundColor = registerColor(
|
|
197
|
+
'tree.tableOddRowsBackground',
|
|
198
|
+
{ dark: transparent(foreground, 0.04), light: transparent(foreground, 0.04), hcDark: null, hcLight: null },
|
|
199
|
+
localize('tableOddRowsBackgroundColor', 'Background color for odd table rows.'),
|
|
200
|
+
);
|
|
201
|
+
export const listDeemphasizedForeground = registerColor(
|
|
202
|
+
'list.deemphasizedForeground',
|
|
203
|
+
{ dark: '#8C8C8C', light: '#8E8E90', hcDark: '#A7A8A9', hcLight: '#666666' },
|
|
204
|
+
localize('listDeemphasizedForeground', 'List/Tree foreground color for items that are deemphasized. '),
|
|
205
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { transparent, registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { activeContrastBorder } from './base';
|
|
7
|
+
import { TITLE_BAR_ACTIVE_FOREGROUND } from './title-bar';
|
|
8
|
+
import { toolbarHoverBackground } from './toolbar';
|
|
9
|
+
|
|
10
|
+
// < --- Menubar --- >
|
|
11
|
+
|
|
12
|
+
export const MENUBAR_SELECTION_FOREGROUND = registerColor(
|
|
13
|
+
'menubar.selectionForeground',
|
|
14
|
+
{
|
|
15
|
+
dark: TITLE_BAR_ACTIVE_FOREGROUND,
|
|
16
|
+
light: TITLE_BAR_ACTIVE_FOREGROUND,
|
|
17
|
+
hcDark: TITLE_BAR_ACTIVE_FOREGROUND,
|
|
18
|
+
hcLight: TITLE_BAR_ACTIVE_FOREGROUND,
|
|
19
|
+
},
|
|
20
|
+
localize('menubarSelectionForeground', 'Foreground color of the selected menu item in the menubar.'),
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export const MENUBAR_SELECTION_BACKGROUND = registerColor(
|
|
24
|
+
'menubar.selectionBackground',
|
|
25
|
+
{
|
|
26
|
+
dark: toolbarHoverBackground,
|
|
27
|
+
light: toolbarHoverBackground,
|
|
28
|
+
hcDark: null,
|
|
29
|
+
hcLight: null,
|
|
30
|
+
},
|
|
31
|
+
localize('menubarSelectionBackground', 'Background color of the selected menu item in the menubar.'),
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export const MENUBAR_SELECTION_BORDER = registerColor(
|
|
35
|
+
'menubar.selectionBorder',
|
|
36
|
+
{
|
|
37
|
+
dark: null,
|
|
38
|
+
light: null,
|
|
39
|
+
hcDark: activeContrastBorder,
|
|
40
|
+
hcLight: activeContrastBorder,
|
|
41
|
+
},
|
|
42
|
+
localize('menubarSelectionBorder', 'Border color of the selected menu item in the menubar.'),
|
|
43
|
+
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { registerColor } from '../utils';
|
|
4
|
+
|
|
5
|
+
import { contrastBorder, activeContrastBorder, foreground } from './base';
|
|
6
|
+
import { selectBackground, selectForeground } from './dropdown';
|
|
7
|
+
import { listActiveSelectionForeground, listActiveSelectionBackground } from './list-tree';
|
|
8
|
+
|
|
9
|
+
export const menuBorder = registerColor(
|
|
10
|
+
'menu.border',
|
|
11
|
+
{ dark: null, light: null, hcDark: contrastBorder, hcLight: contrastBorder },
|
|
12
|
+
localize('menuBorder', 'Border color of menus.'),
|
|
13
|
+
);
|
|
14
|
+
export const menuForeground = registerColor(
|
|
15
|
+
'menu.foreground',
|
|
16
|
+
{ dark: selectForeground, light: foreground, hcDark: selectForeground, hcLight: selectForeground },
|
|
17
|
+
localize('menuForeground', 'Foreground color of menu items.'),
|
|
18
|
+
);
|
|
19
|
+
export const menuBackground = registerColor(
|
|
20
|
+
'menu.background',
|
|
21
|
+
{ dark: selectBackground, light: selectBackground, hcDark: selectBackground, hcLight: selectBackground },
|
|
22
|
+
localize('menuBackground', 'Background color of menu items.'),
|
|
23
|
+
);
|
|
24
|
+
export const menuSelectionForeground = registerColor(
|
|
25
|
+
'menu.selectionForeground',
|
|
26
|
+
{
|
|
27
|
+
dark: listActiveSelectionForeground,
|
|
28
|
+
light: listActiveSelectionForeground,
|
|
29
|
+
hcDark: listActiveSelectionForeground,
|
|
30
|
+
hcLight: listActiveSelectionForeground,
|
|
31
|
+
},
|
|
32
|
+
localize('menuSelectionForeground', 'Foreground color of the selected menu item in menus.'),
|
|
33
|
+
);
|
|
34
|
+
export const menuSelectionBackground = registerColor(
|
|
35
|
+
'menu.selectionBackground',
|
|
36
|
+
{
|
|
37
|
+
dark: listActiveSelectionBackground,
|
|
38
|
+
light: listActiveSelectionBackground,
|
|
39
|
+
hcDark: listActiveSelectionBackground,
|
|
40
|
+
hcLight: listActiveSelectionBackground,
|
|
41
|
+
},
|
|
42
|
+
localize('menuSelectionBackground', 'Background color of the selected menu item in menus.'),
|
|
43
|
+
);
|
|
44
|
+
export const menuSelectionBorder = registerColor(
|
|
45
|
+
'menu.selectionBorder',
|
|
46
|
+
{ dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
|
|
47
|
+
localize('menuSelectionBorder', 'Border color of the selected menu item in menus.'),
|
|
48
|
+
);
|
|
49
|
+
export const menuSeparatorBackground = registerColor(
|
|
50
|
+
'menu.separatorBackground',
|
|
51
|
+
{ dark: '#606060', light: '#D4D4D4', hcDark: contrastBorder, hcLight: contrastBorder },
|
|
52
|
+
localize('menuSeparatorBackground', 'Color of a separator menu item in menus.'),
|
|
53
|
+
);
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { transparent, registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Merge-conflict colors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const headerTransparency = 0.5;
|
|
11
|
+
const currentBaseColor = Color.fromHex('#40C8AE').transparent(headerTransparency);
|
|
12
|
+
const incomingBaseColor = Color.fromHex('#40A6FF').transparent(headerTransparency);
|
|
13
|
+
const commonBaseColor = Color.fromHex('#606060').transparent(0.4);
|
|
14
|
+
const contentTransparency = 0.4;
|
|
15
|
+
const rulerTransparency = 1;
|
|
16
|
+
|
|
17
|
+
export const mergeCurrentHeaderBackground = registerColor(
|
|
18
|
+
'merge.currentHeaderBackground',
|
|
19
|
+
{ dark: currentBaseColor, light: currentBaseColor, hcDark: null, hcLight: null },
|
|
20
|
+
localize(
|
|
21
|
+
'mergeCurrentHeaderBackground',
|
|
22
|
+
'Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.',
|
|
23
|
+
),
|
|
24
|
+
true,
|
|
25
|
+
);
|
|
26
|
+
export const mergeCurrentContentBackground = registerColor(
|
|
27
|
+
'merge.currentContentBackground',
|
|
28
|
+
{
|
|
29
|
+
dark: transparent(mergeCurrentHeaderBackground, contentTransparency),
|
|
30
|
+
light: transparent(mergeCurrentHeaderBackground, contentTransparency),
|
|
31
|
+
hcDark: transparent(mergeCurrentHeaderBackground, contentTransparency),
|
|
32
|
+
hcLight: transparent(mergeCurrentHeaderBackground, contentTransparency),
|
|
33
|
+
},
|
|
34
|
+
localize(
|
|
35
|
+
'mergeCurrentContentBackground',
|
|
36
|
+
'Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.',
|
|
37
|
+
),
|
|
38
|
+
true,
|
|
39
|
+
);
|
|
40
|
+
export const mergeIncomingHeaderBackground = registerColor(
|
|
41
|
+
'merge.incomingHeaderBackground',
|
|
42
|
+
{ dark: incomingBaseColor, light: incomingBaseColor, hcDark: null, hcLight: null },
|
|
43
|
+
localize(
|
|
44
|
+
'mergeIncomingHeaderBackground',
|
|
45
|
+
'Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.',
|
|
46
|
+
),
|
|
47
|
+
true,
|
|
48
|
+
);
|
|
49
|
+
export const mergeIncomingContentBackground = registerColor(
|
|
50
|
+
'merge.incomingContentBackground',
|
|
51
|
+
{
|
|
52
|
+
dark: transparent(mergeIncomingHeaderBackground, contentTransparency),
|
|
53
|
+
light: transparent(mergeIncomingHeaderBackground, contentTransparency),
|
|
54
|
+
hcDark: transparent(mergeIncomingHeaderBackground, contentTransparency),
|
|
55
|
+
hcLight: transparent(mergeIncomingHeaderBackground, contentTransparency),
|
|
56
|
+
},
|
|
57
|
+
localize(
|
|
58
|
+
'mergeIncomingContentBackground',
|
|
59
|
+
'Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.',
|
|
60
|
+
),
|
|
61
|
+
true,
|
|
62
|
+
);
|
|
63
|
+
export const mergeCommonHeaderBackground = registerColor(
|
|
64
|
+
'merge.commonHeaderBackground',
|
|
65
|
+
{ dark: commonBaseColor, light: commonBaseColor, hcDark: null, hcLight: null },
|
|
66
|
+
localize(
|
|
67
|
+
'mergeCommonHeaderBackground',
|
|
68
|
+
'Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.',
|
|
69
|
+
),
|
|
70
|
+
true,
|
|
71
|
+
);
|
|
72
|
+
export const mergeCommonContentBackground = registerColor(
|
|
73
|
+
'merge.commonContentBackground',
|
|
74
|
+
{
|
|
75
|
+
dark: transparent(mergeCommonHeaderBackground, contentTransparency),
|
|
76
|
+
light: transparent(mergeCommonHeaderBackground, contentTransparency),
|
|
77
|
+
hcDark: transparent(mergeCommonHeaderBackground, contentTransparency),
|
|
78
|
+
hcLight: transparent(mergeCommonHeaderBackground, contentTransparency),
|
|
79
|
+
},
|
|
80
|
+
localize(
|
|
81
|
+
'mergeCommonContentBackground',
|
|
82
|
+
'Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.',
|
|
83
|
+
),
|
|
84
|
+
true,
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
export const mergeBorder = registerColor(
|
|
88
|
+
'merge.border',
|
|
89
|
+
{ dark: null, light: null, hcDark: '#C3DF6F', hcLight: '#007ACC' },
|
|
90
|
+
localize('mergeBorder', 'Border color on headers and the splitter in inline merge-conflicts.'),
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
export const overviewRulerCurrentContentForeground = registerColor(
|
|
94
|
+
'editorOverviewRuler.currentContentForeground',
|
|
95
|
+
{
|
|
96
|
+
dark: transparent(mergeCurrentHeaderBackground, rulerTransparency),
|
|
97
|
+
light: transparent(mergeCurrentHeaderBackground, rulerTransparency),
|
|
98
|
+
hcDark: mergeBorder,
|
|
99
|
+
hcLight: mergeBorder,
|
|
100
|
+
},
|
|
101
|
+
localize('overviewRulerCurrentContentForeground', 'Current overview ruler foreground for inline merge-conflicts.'),
|
|
102
|
+
);
|
|
103
|
+
export const overviewRulerIncomingContentForeground = registerColor(
|
|
104
|
+
'editorOverviewRuler.incomingContentForeground',
|
|
105
|
+
{
|
|
106
|
+
dark: transparent(mergeIncomingHeaderBackground, rulerTransparency),
|
|
107
|
+
light: transparent(mergeIncomingHeaderBackground, rulerTransparency),
|
|
108
|
+
hcDark: mergeBorder,
|
|
109
|
+
hcLight: mergeBorder,
|
|
110
|
+
},
|
|
111
|
+
localize('overviewRulerIncomingContentForeground', 'Incoming overview ruler foreground for inline merge-conflicts.'),
|
|
112
|
+
);
|
|
113
|
+
export const overviewRulerCommonContentForeground = registerColor(
|
|
114
|
+
'editorOverviewRuler.commonContentForeground',
|
|
115
|
+
{
|
|
116
|
+
dark: transparent(mergeCommonHeaderBackground, rulerTransparency),
|
|
117
|
+
light: transparent(mergeCommonHeaderBackground, rulerTransparency),
|
|
118
|
+
hcDark: mergeBorder,
|
|
119
|
+
hcLight: mergeBorder,
|
|
120
|
+
},
|
|
121
|
+
localize(
|
|
122
|
+
'overviewRulerCommonContentForeground',
|
|
123
|
+
'Common ancestor overview ruler foreground for inline merge-conflicts.',
|
|
124
|
+
),
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
export const overviewRulerFindMatchForeground = registerColor(
|
|
128
|
+
'editorOverviewRuler.findMatchForeground',
|
|
129
|
+
{ dark: '#d186167e', light: '#d186167e', hcDark: '#AB5A00', hcLight: null },
|
|
130
|
+
localize(
|
|
131
|
+
'overviewRulerFindMatchForeground',
|
|
132
|
+
'Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations.',
|
|
133
|
+
),
|
|
134
|
+
true,
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
export const overviewRulerSelectionHighlightForeground = registerColor(
|
|
138
|
+
'editorOverviewRuler.selectionHighlightForeground',
|
|
139
|
+
{ dark: '#A0A0A0CC', light: '#A0A0A0CC', hcDark: '#A0A0A0CC', hcLight: '#A0A0A0CC' },
|
|
140
|
+
localize(
|
|
141
|
+
'overviewRulerSelectionHighlightForeground',
|
|
142
|
+
'Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations.',
|
|
143
|
+
),
|
|
144
|
+
true,
|
|
145
|
+
);
|