@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,52 @@
|
|
|
1
|
+
/* ---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
import { Color } from '../common/color';
|
|
7
|
+
import { ITheme } from '../common/theme.service';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
IColorRegistry,
|
|
11
|
+
registerColor,
|
|
12
|
+
getColorRegistry,
|
|
13
|
+
transparent,
|
|
14
|
+
darken,
|
|
15
|
+
lighten,
|
|
16
|
+
lessProminent,
|
|
17
|
+
resolveColorValue,
|
|
18
|
+
} from './utils';
|
|
19
|
+
|
|
20
|
+
// ------ API types
|
|
21
|
+
|
|
22
|
+
// color registry
|
|
23
|
+
export const Extensions = {
|
|
24
|
+
ColorContribution: 'base.contributions.colors',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// < --- Workbench (not customizable) --- >
|
|
28
|
+
|
|
29
|
+
export function WORKBENCH_BACKGROUND(theme: ITheme): Color {
|
|
30
|
+
switch (theme.type) {
|
|
31
|
+
case 'dark':
|
|
32
|
+
return Color.fromHex('#252526');
|
|
33
|
+
case 'light':
|
|
34
|
+
return Color.fromHex('#F3F3F3');
|
|
35
|
+
default:
|
|
36
|
+
return Color.fromHex('#000000');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
lighten,
|
|
42
|
+
darken,
|
|
43
|
+
transparent,
|
|
44
|
+
lessProminent,
|
|
45
|
+
resolveColorValue,
|
|
46
|
+
IColorRegistry,
|
|
47
|
+
registerColor,
|
|
48
|
+
getColorRegistry,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// 导出所有的 color token
|
|
52
|
+
export * from './color-tokens';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { transparent, registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { contrastBorder } from './base';
|
|
7
|
+
import { editorForeground } from './editor';
|
|
8
|
+
import { SIDE_BAR_BORDER } from './sidebar';
|
|
9
|
+
|
|
10
|
+
// < --- Activity Bar --- >
|
|
11
|
+
|
|
12
|
+
export const ACTIVITY_BAR_BACKGROUND = registerColor(
|
|
13
|
+
'activityBar.background',
|
|
14
|
+
{
|
|
15
|
+
dark: '#333333',
|
|
16
|
+
light: '#2C2C2C',
|
|
17
|
+
hcDark: '#000000',
|
|
18
|
+
hcLight: '#FFFFFF',
|
|
19
|
+
},
|
|
20
|
+
localize(
|
|
21
|
+
'activityBarBackground',
|
|
22
|
+
'Activity bar background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
23
|
+
),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export const ACTIVITY_BAR_FOREGROUND = registerColor(
|
|
27
|
+
'activityBar.foreground',
|
|
28
|
+
{
|
|
29
|
+
dark: Color.white,
|
|
30
|
+
light: Color.white,
|
|
31
|
+
hcDark: Color.white,
|
|
32
|
+
hcLight: editorForeground,
|
|
33
|
+
},
|
|
34
|
+
localize(
|
|
35
|
+
'activityBarForeground',
|
|
36
|
+
'Activity bar item foreground color when it is active. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export const ACTIVITY_BAR_INACTIVE_FOREGROUND = registerColor(
|
|
41
|
+
'activityBar.inactiveForeground',
|
|
42
|
+
{
|
|
43
|
+
dark: transparent(ACTIVITY_BAR_FOREGROUND, 0.6),
|
|
44
|
+
light: transparent(ACTIVITY_BAR_FOREGROUND, 0.6),
|
|
45
|
+
hcDark: Color.white,
|
|
46
|
+
hcLight: editorForeground,
|
|
47
|
+
},
|
|
48
|
+
localize(
|
|
49
|
+
'activityBarInActiveForeground',
|
|
50
|
+
'Activity bar item foreground color when it is inactive. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export const ACTIVITY_BAR_BORDER = registerColor(
|
|
55
|
+
'activityBar.border',
|
|
56
|
+
{
|
|
57
|
+
dark: SIDE_BAR_BORDER,
|
|
58
|
+
light: SIDE_BAR_BORDER,
|
|
59
|
+
hcDark: SIDE_BAR_BORDER,
|
|
60
|
+
hcLight: SIDE_BAR_BORDER,
|
|
61
|
+
},
|
|
62
|
+
localize(
|
|
63
|
+
'activityBarBorder',
|
|
64
|
+
'Activity bar border color separating to the side bar. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
export const ACTIVITY_BAR_DRAG_AND_DROP_BACKGROUND = registerColor(
|
|
69
|
+
'activityBar.dropBackground',
|
|
70
|
+
{
|
|
71
|
+
dark: Color.white.transparent(0.12),
|
|
72
|
+
light: Color.white.transparent(0.12),
|
|
73
|
+
hcDark: Color.white.transparent(0.12),
|
|
74
|
+
hcLight: Color.white.transparent(0.12),
|
|
75
|
+
},
|
|
76
|
+
localize(
|
|
77
|
+
'activityBarDragAndDropBackground',
|
|
78
|
+
'Drag and drop feedback color for the activity bar items. The color should have transparency so that the activity bar entries can still shine through. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
79
|
+
),
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
export const ACTIVITY_BAR_BADGE_BACKGROUND = registerColor(
|
|
83
|
+
'activityBarBadge.background',
|
|
84
|
+
{
|
|
85
|
+
dark: '#007ACC',
|
|
86
|
+
light: '#007ACC',
|
|
87
|
+
hcDark: '#000000',
|
|
88
|
+
hcLight: '#0F4A85',
|
|
89
|
+
},
|
|
90
|
+
localize(
|
|
91
|
+
'activityBarBadgeBackground',
|
|
92
|
+
'Activity notification badge background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
93
|
+
),
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
export const ACTIVITY_BAR_BADGE_FOREGROUND = registerColor(
|
|
97
|
+
'activityBarBadge.foreground',
|
|
98
|
+
{
|
|
99
|
+
dark: Color.white,
|
|
100
|
+
light: Color.white,
|
|
101
|
+
hcDark: Color.white,
|
|
102
|
+
hcLight: Color.white,
|
|
103
|
+
},
|
|
104
|
+
localize(
|
|
105
|
+
'activityBarBadgeForeground',
|
|
106
|
+
'Activity notification badge foreground color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
export const ACTIVITY_BAR_ACTIVE_BORDER = registerColor(
|
|
111
|
+
'activityBar.activeBorder',
|
|
112
|
+
{
|
|
113
|
+
dark: ACTIVITY_BAR_FOREGROUND,
|
|
114
|
+
light: ACTIVITY_BAR_FOREGROUND,
|
|
115
|
+
hcDark: contrastBorder,
|
|
116
|
+
hcLight: contrastBorder,
|
|
117
|
+
},
|
|
118
|
+
localize(
|
|
119
|
+
'activityBarActiveBorder',
|
|
120
|
+
'Activity bar border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
121
|
+
),
|
|
122
|
+
);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../../common/color';
|
|
4
|
+
import { registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
export const badgeBackground = registerColor(
|
|
7
|
+
'badge.background',
|
|
8
|
+
{
|
|
9
|
+
dark: '#4D4D4D',
|
|
10
|
+
light: '#C4C4C4',
|
|
11
|
+
hcDark: Color.black,
|
|
12
|
+
hcLight: '#0F4A85',
|
|
13
|
+
},
|
|
14
|
+
localize(
|
|
15
|
+
'badgeBackground',
|
|
16
|
+
'Badge background color. Badges are small information labels, e.g. for search results count.',
|
|
17
|
+
),
|
|
18
|
+
);
|
|
19
|
+
export const badgeForeground = registerColor(
|
|
20
|
+
'badge.foreground',
|
|
21
|
+
{
|
|
22
|
+
dark: Color.white,
|
|
23
|
+
light: '#333',
|
|
24
|
+
hcDark: Color.white,
|
|
25
|
+
hcLight: Color.white,
|
|
26
|
+
},
|
|
27
|
+
localize(
|
|
28
|
+
'badgeForeground',
|
|
29
|
+
'Badge foreground color. Badges are small information labels, e.g. for search results count.',
|
|
30
|
+
),
|
|
31
|
+
);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { transparent, registerColor } from '../utils';
|
|
4
|
+
|
|
5
|
+
import { hcBorderColor } from './basic-color';
|
|
6
|
+
|
|
7
|
+
// base colors
|
|
8
|
+
export const foreground = registerColor(
|
|
9
|
+
'foreground',
|
|
10
|
+
{ dark: '#CCCCCC', light: '#616161', hcDark: '#FFFFFF', hcLight: '#292929' },
|
|
11
|
+
localize('foreground', 'Overall foreground color. This color is only used if not overridden by a component.'),
|
|
12
|
+
);
|
|
13
|
+
export const errorForeground = registerColor(
|
|
14
|
+
'errorForeground',
|
|
15
|
+
{ dark: '#F48771', light: '#A1260D', hcDark: '#F48771', hcLight: '#B5200D' },
|
|
16
|
+
localize(
|
|
17
|
+
'errorForeground',
|
|
18
|
+
'Overall foreground color for error messages. This color is only used if not overridden by a component.',
|
|
19
|
+
),
|
|
20
|
+
);
|
|
21
|
+
export const descriptionForeground = registerColor(
|
|
22
|
+
'descriptionForeground',
|
|
23
|
+
{
|
|
24
|
+
light: '#717171',
|
|
25
|
+
dark: transparent(foreground, 0.7),
|
|
26
|
+
hcDark: transparent(foreground, 0.7),
|
|
27
|
+
hcLight: transparent(foreground, 0.7),
|
|
28
|
+
},
|
|
29
|
+
localize(
|
|
30
|
+
'descriptionForeground',
|
|
31
|
+
'Foreground color for description text providing additional information, for example for a label.',
|
|
32
|
+
),
|
|
33
|
+
);
|
|
34
|
+
export const iconForeground = registerColor(
|
|
35
|
+
'icon.foreground',
|
|
36
|
+
{ dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' },
|
|
37
|
+
localize('iconForeground', 'The default color for icons in the workbench.'),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export const focusBorder = registerColor(
|
|
41
|
+
'focusBorder',
|
|
42
|
+
{ dark: '#007FD4', light: '#0090F1', hcDark: '#F38518', hcLight: '#0F4A85' },
|
|
43
|
+
localize(
|
|
44
|
+
'focusBorder',
|
|
45
|
+
'Overall border color for focused elements. This color is only used if not overridden by a component.',
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
export const sashHoverBorder = registerColor(
|
|
49
|
+
'sash.hoverBorder',
|
|
50
|
+
{ dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder },
|
|
51
|
+
localize('sashActiveBorder', 'Border color of active sashes.'),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export const contrastBorder = registerColor(
|
|
55
|
+
'contrastBorder',
|
|
56
|
+
{ light: null, dark: null, hcDark: '#6FC3DF', hcLight: '#0F4A85' },
|
|
57
|
+
localize('contrastBorder', 'An extra border around elements to separate them from others for greater contrast.'),
|
|
58
|
+
);
|
|
59
|
+
export const activeContrastBorder = registerColor(
|
|
60
|
+
'contrastActiveBorder',
|
|
61
|
+
{ light: null, dark: null, hcDark: focusBorder, hcLight: focusBorder },
|
|
62
|
+
localize(
|
|
63
|
+
'activeContrastBorder',
|
|
64
|
+
'An extra border around active elements to separate them from others for greater contrast.',
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
export const selectionBackground = registerColor(
|
|
69
|
+
'selection.background',
|
|
70
|
+
{ light: null, dark: null, hcDark: null, hcLight: null },
|
|
71
|
+
localize(
|
|
72
|
+
'selectionBackground',
|
|
73
|
+
'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.',
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
export const widgetShadow = registerColor(
|
|
78
|
+
'widget.shadow',
|
|
79
|
+
{ dark: '#000000', light: '#A8A8A8', hcDark: '#A5A5A5', hcLight: '#7F7F7F' },
|
|
80
|
+
localize('widgetShadow', 'Shadow color of widgets such as find/replace inside the editor.'),
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
export const disabledForeground = registerColor(
|
|
84
|
+
'disabledForeground',
|
|
85
|
+
{ dark: '#CCCCCC80', light: '#61616180', hcDark: '#A5A5A5', hcLight: '#7F7F7F' },
|
|
86
|
+
localize(
|
|
87
|
+
'disabledForeground',
|
|
88
|
+
'Overall foreground for disabled elements. This color is only used if not overridden by a component.',
|
|
89
|
+
),
|
|
90
|
+
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RGBA, Color } from '../color';
|
|
2
|
+
import { transparent } from '../utils';
|
|
3
|
+
|
|
4
|
+
export const foregroundColor = Color.white;
|
|
5
|
+
export const secondaryForegroundColor = transparent(foregroundColor, 0.7);
|
|
6
|
+
export const backgroundColor = Color.black;
|
|
7
|
+
|
|
8
|
+
export const hcBorderColor = new Color(new RGBA(111, 195, 223, 1));
|
|
9
|
+
export const hcActiveBorderColor = new Color(new RGBA(243, 133, 24, 1));
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { transparent, registerColor, lighten, darken } from '../utils';
|
|
4
|
+
|
|
5
|
+
import { foreground } from './base';
|
|
6
|
+
import { editorBackground, editorWidgetBackground } from './editor';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Breadcrumb colors
|
|
10
|
+
*/
|
|
11
|
+
export const breadcrumbsForeground = registerColor(
|
|
12
|
+
'breadcrumb.foreground',
|
|
13
|
+
{
|
|
14
|
+
light: transparent(foreground, 0.8),
|
|
15
|
+
dark: transparent(foreground, 0.8),
|
|
16
|
+
hcDark: transparent(foreground, 0.8),
|
|
17
|
+
hcLight: transparent(foreground, 0.8),
|
|
18
|
+
},
|
|
19
|
+
localize('breadcrumbsFocusForeground', 'Color of focused breadcrumb items.'),
|
|
20
|
+
);
|
|
21
|
+
export const breadcrumbsBackground = registerColor(
|
|
22
|
+
'breadcrumb.background',
|
|
23
|
+
{
|
|
24
|
+
light: editorBackground,
|
|
25
|
+
dark: editorBackground,
|
|
26
|
+
hcDark: editorBackground,
|
|
27
|
+
hcLight: editorBackground,
|
|
28
|
+
},
|
|
29
|
+
localize('breadcrumbsBackground', 'Background color of breadcrumb items.'),
|
|
30
|
+
);
|
|
31
|
+
export const breadcrumbsFocusForeground = registerColor(
|
|
32
|
+
'breadcrumb.focusForeground',
|
|
33
|
+
{
|
|
34
|
+
light: darken(foreground, 0.2),
|
|
35
|
+
dark: lighten(foreground, 0.1),
|
|
36
|
+
hcDark: lighten(foreground, 0.1),
|
|
37
|
+
hcLight: lighten(foreground, 0.1),
|
|
38
|
+
},
|
|
39
|
+
localize('breadcrumbsFocusForeground', 'Color of focused breadcrumb items.'),
|
|
40
|
+
);
|
|
41
|
+
export const breadcrumbsActiveSelectionForeground = registerColor(
|
|
42
|
+
'breadcrumb.activeSelectionForeground',
|
|
43
|
+
{
|
|
44
|
+
light: darken(foreground, 0.2),
|
|
45
|
+
dark: lighten(foreground, 0.1),
|
|
46
|
+
hcDark: lighten(foreground, 0.1),
|
|
47
|
+
hcLight: lighten(foreground, 0.1),
|
|
48
|
+
},
|
|
49
|
+
localize('breadcrumbsSelectedForegound', 'Color of selected breadcrumb items.'),
|
|
50
|
+
);
|
|
51
|
+
export const breadcrumbsPickerBackground = registerColor(
|
|
52
|
+
'breadcrumbPicker.background',
|
|
53
|
+
{
|
|
54
|
+
light: editorWidgetBackground,
|
|
55
|
+
dark: editorWidgetBackground,
|
|
56
|
+
hcDark: editorWidgetBackground,
|
|
57
|
+
hcLight: editorWidgetBackground,
|
|
58
|
+
},
|
|
59
|
+
localize('breadcrumbsSelectedBackground', 'Background color of breadcrumb item picker.'),
|
|
60
|
+
);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../color';
|
|
4
|
+
import { registerColor, darken, lighten } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { contrastBorder, foreground } from './base';
|
|
7
|
+
|
|
8
|
+
/** default button */
|
|
9
|
+
export const buttonForeground = registerColor(
|
|
10
|
+
'button.foreground',
|
|
11
|
+
{
|
|
12
|
+
dark: Color.white,
|
|
13
|
+
light: Color.white,
|
|
14
|
+
hcDark: Color.white,
|
|
15
|
+
hcLight: Color.white,
|
|
16
|
+
},
|
|
17
|
+
localize('buttonForeground', 'Button foreground color.'),
|
|
18
|
+
);
|
|
19
|
+
export const buttonBackground = registerColor(
|
|
20
|
+
'button.background',
|
|
21
|
+
{ dark: '#0E639C', light: '#007ACC', hcDark: null, hcLight: '#0F4A85' },
|
|
22
|
+
localize('buttonBackground', 'Button background color.'),
|
|
23
|
+
);
|
|
24
|
+
export const buttonHoverBackground = registerColor(
|
|
25
|
+
'button.hoverBackground',
|
|
26
|
+
{
|
|
27
|
+
dark: lighten(buttonBackground, 0.2),
|
|
28
|
+
light: darken(buttonBackground, 0.2),
|
|
29
|
+
hcDark: null,
|
|
30
|
+
hcLight: null,
|
|
31
|
+
},
|
|
32
|
+
localize('buttonHoverBackground', 'Button background color when hovering.'),
|
|
33
|
+
);
|
|
34
|
+
export const buttonBorder = registerColor(
|
|
35
|
+
'button.border',
|
|
36
|
+
{
|
|
37
|
+
dark: contrastBorder,
|
|
38
|
+
light: contrastBorder,
|
|
39
|
+
hcDark: contrastBorder,
|
|
40
|
+
hcLight: contrastBorder,
|
|
41
|
+
},
|
|
42
|
+
localize('buttonBorderBackground', 'Button border color'),
|
|
43
|
+
);
|
|
44
|
+
/** secondary button */
|
|
45
|
+
export const buttonSecondaryForeground = registerColor(
|
|
46
|
+
'button.foreground',
|
|
47
|
+
{
|
|
48
|
+
dark: Color.white,
|
|
49
|
+
light: Color.white,
|
|
50
|
+
hcDark: Color.white,
|
|
51
|
+
hcLight: foreground,
|
|
52
|
+
},
|
|
53
|
+
localize('buttonSecondaryForeground', 'Button Secondary foreground color.'),
|
|
54
|
+
);
|
|
55
|
+
export const buttonSecondaryBackground = registerColor(
|
|
56
|
+
'button.background',
|
|
57
|
+
{ dark: '#3A3D41', light: '#5F6A79', hcDark: null, hcLight: null },
|
|
58
|
+
localize('buttonSecondaryForeground', 'Button Secondary background color.'),
|
|
59
|
+
);
|
|
60
|
+
export const buttonSecondaryHoverBackground = registerColor(
|
|
61
|
+
'button.hoverBackground',
|
|
62
|
+
{
|
|
63
|
+
dark: lighten(buttonSecondaryBackground, 0.2),
|
|
64
|
+
light: darken(buttonSecondaryBackground, 0.2),
|
|
65
|
+
hcDark: null,
|
|
66
|
+
hcLight: null,
|
|
67
|
+
},
|
|
68
|
+
localize('buttonSecondaryForeground', 'Button Secondary background color when hovering.'),
|
|
69
|
+
);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { transparent, registerColor } from '../utils';
|
|
4
|
+
|
|
5
|
+
import { foreground } from './base';
|
|
6
|
+
import { editorErrorForeground, editorInfoForeground, editorWarningForeground } from './editor';
|
|
7
|
+
import { minimapFindMatch } from './minimap';
|
|
8
|
+
|
|
9
|
+
export const chartsForeground = registerColor(
|
|
10
|
+
'charts.foreground',
|
|
11
|
+
{ dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
|
|
12
|
+
localize('chartsForeground', 'The foreground color used in charts.'),
|
|
13
|
+
);
|
|
14
|
+
export const chartsLines = registerColor(
|
|
15
|
+
'charts.lines',
|
|
16
|
+
{
|
|
17
|
+
dark: transparent(foreground, 0.5),
|
|
18
|
+
light: transparent(foreground, 0.5),
|
|
19
|
+
hcDark: transparent(foreground, 0.5),
|
|
20
|
+
hcLight: transparent(foreground, 0.5),
|
|
21
|
+
},
|
|
22
|
+
localize('chartsLines', 'The color used for horizontal lines in charts.'),
|
|
23
|
+
);
|
|
24
|
+
export const chartsRed = registerColor(
|
|
25
|
+
'charts.red',
|
|
26
|
+
{
|
|
27
|
+
dark: editorErrorForeground,
|
|
28
|
+
light: editorErrorForeground,
|
|
29
|
+
hcDark: editorErrorForeground,
|
|
30
|
+
hcLight: editorErrorForeground,
|
|
31
|
+
},
|
|
32
|
+
localize('chartsRed', 'The red color used in chart visualizations.'),
|
|
33
|
+
);
|
|
34
|
+
export const chartsBlue = registerColor(
|
|
35
|
+
'charts.blue',
|
|
36
|
+
{
|
|
37
|
+
dark: editorInfoForeground,
|
|
38
|
+
light: editorInfoForeground,
|
|
39
|
+
hcDark: editorInfoForeground,
|
|
40
|
+
hcLight: editorInfoForeground,
|
|
41
|
+
},
|
|
42
|
+
localize('chartsBlue', 'The blue color used in chart visualizations.'),
|
|
43
|
+
);
|
|
44
|
+
export const chartsYellow = registerColor(
|
|
45
|
+
'charts.yellow',
|
|
46
|
+
{
|
|
47
|
+
dark: editorWarningForeground,
|
|
48
|
+
light: editorWarningForeground,
|
|
49
|
+
hcDark: editorWarningForeground,
|
|
50
|
+
hcLight: editorWarningForeground,
|
|
51
|
+
},
|
|
52
|
+
localize('chartsYellow', 'The yellow color used in chart visualizations.'),
|
|
53
|
+
);
|
|
54
|
+
export const chartsOrange = registerColor(
|
|
55
|
+
'charts.orange',
|
|
56
|
+
{ dark: minimapFindMatch, light: minimapFindMatch, hcDark: minimapFindMatch, hcLight: minimapFindMatch },
|
|
57
|
+
localize('chartsOrange', 'The orange color used in chart visualizations.'),
|
|
58
|
+
);
|
|
59
|
+
export const chartsGreen = registerColor(
|
|
60
|
+
'charts.green',
|
|
61
|
+
{ dark: '#89D185', light: '#388A34', hcDark: '#89D185', hcLight: '#374e06' },
|
|
62
|
+
localize('chartsGreen', 'The green color used in chart visualizations.'),
|
|
63
|
+
);
|
|
64
|
+
export const chartsPurple = registerColor(
|
|
65
|
+
'charts.purple',
|
|
66
|
+
{ dark: '#B180D7', light: '#652D90', hcDark: '#B180D7', hcLight: '#652D90' },
|
|
67
|
+
localize('chartsPurple', 'The purple color used in chart visualizations.'),
|
|
68
|
+
);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { Color } from '../color';
|
|
4
|
+
import { registerColor } from '../utils';
|
|
5
|
+
|
|
6
|
+
import { contrastBorder, foreground } from './base';
|
|
7
|
+
import { selectBackground, selectBorder, selectForeground } from './dropdown';
|
|
8
|
+
|
|
9
|
+
export const checkboxBorder = registerColor(
|
|
10
|
+
'checkbox.border',
|
|
11
|
+
{ dark: selectBorder, light: selectBorder, hcDark: selectBorder, hcLight: selectBorder },
|
|
12
|
+
localize('checkbox.border', 'Border color of checkbox widget.'),
|
|
13
|
+
);
|
|
14
|
+
export const checkboxBackground = registerColor(
|
|
15
|
+
'checkbox.background',
|
|
16
|
+
{ dark: selectBackground, light: selectBackground, hcDark: selectBackground, hcLight: selectBackground },
|
|
17
|
+
localize('checkbox.background', 'Background color of checkbox widget.'),
|
|
18
|
+
);
|
|
19
|
+
export const checkboxForeground = registerColor(
|
|
20
|
+
'checkbox.foreground',
|
|
21
|
+
{ dark: selectForeground, light: selectForeground, hcDark: selectForeground, hcLight: selectForeground },
|
|
22
|
+
localize('checkbox.foreground', 'Foreground color of checkbox widget.'),
|
|
23
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { transparent, registerColor } from '../../utils';
|
|
4
|
+
import { foreground } from '../base';
|
|
5
|
+
import { inputActiveOptionBorder, inputActiveOptionBackground } from '../input';
|
|
6
|
+
|
|
7
|
+
// action bar
|
|
8
|
+
export const actionbarForeground = registerColor(
|
|
9
|
+
'kt.actionbar.foreground',
|
|
10
|
+
{ dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
|
|
11
|
+
localize('actionbarForeground', 'Foreground color of icon in actionbar'),
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export const actionbarDisableForeground = registerColor(
|
|
15
|
+
'kt.actionbar.disableForeground',
|
|
16
|
+
{
|
|
17
|
+
dark: transparent(foreground, 0.3),
|
|
18
|
+
light: transparent(foreground, 0.3),
|
|
19
|
+
hcDark: transparent(foreground, 0.3),
|
|
20
|
+
hcLight: transparent(foreground, 0.3),
|
|
21
|
+
},
|
|
22
|
+
localize('actionbarDisableForeground', 'Foreground color of disabled icon in actionbar'),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const actionBarSeparatorBg = registerColor(
|
|
26
|
+
'kt.actionbar.separatorBackground',
|
|
27
|
+
{ dark: null, light: null, hcDark: null, hcLight: null },
|
|
28
|
+
localize('actionbarSeparatorBackground', 'Separator background color of actionbar'),
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export const actionbarSelectionBackground = registerColor(
|
|
32
|
+
'kt.actionbar.selectionBackground',
|
|
33
|
+
{
|
|
34
|
+
dark: inputActiveOptionBackground,
|
|
35
|
+
light: inputActiveOptionBackground,
|
|
36
|
+
hcDark: inputActiveOptionBackground,
|
|
37
|
+
hcLight: inputActiveOptionBackground,
|
|
38
|
+
},
|
|
39
|
+
localize('actionbarSelectionBackground', 'Bacjground color of selected icon in actionbar'),
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
export const actionbarSelectionBorder = registerColor(
|
|
43
|
+
'kt.actionbar.selectionBorder',
|
|
44
|
+
{
|
|
45
|
+
dark: inputActiveOptionBorder,
|
|
46
|
+
light: inputActiveOptionBorder,
|
|
47
|
+
hcDark: inputActiveOptionBorder,
|
|
48
|
+
hcLight: inputActiveOptionBorder,
|
|
49
|
+
},
|
|
50
|
+
localize('actionbarSelectionBorder', 'Border color of selected icon in actionbar'),
|
|
51
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { registerColor } from '../../utils';
|
|
4
|
+
import { ACTIVITY_BAR_BACKGROUND } from '../activity-bar';
|
|
5
|
+
|
|
6
|
+
/* --- activity bar --- */
|
|
7
|
+
export const ktActivityBarDropUpBackground = registerColor(
|
|
8
|
+
'kt.activityBar.dropUpBackground',
|
|
9
|
+
{
|
|
10
|
+
dark: ACTIVITY_BAR_BACKGROUND,
|
|
11
|
+
light: ACTIVITY_BAR_BACKGROUND,
|
|
12
|
+
hcDark: ACTIVITY_BAR_BACKGROUND,
|
|
13
|
+
hcLight: ACTIVITY_BAR_BACKGROUND,
|
|
14
|
+
},
|
|
15
|
+
localize('activityBar.dropUpBackground', 'dragging item background color'),
|
|
16
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { localize } from '@opensumi/ide-core-common';
|
|
2
|
+
|
|
3
|
+
import { registerColor } from '../../utils';
|
|
4
|
+
import { badgeBackground } from '../badge';
|
|
5
|
+
import { contrastBorder } from '../base';
|
|
6
|
+
|
|
7
|
+
export const ActivityBarBadgeBorder = registerColor(
|
|
8
|
+
'kt.activityBarBadge.border',
|
|
9
|
+
{
|
|
10
|
+
dark: null,
|
|
11
|
+
light: null,
|
|
12
|
+
hcDark: contrastBorder,
|
|
13
|
+
hcLight: contrastBorder,
|
|
14
|
+
},
|
|
15
|
+
localize(
|
|
16
|
+
'activityBarBadgeBorder',
|
|
17
|
+
'Activity notification badge border color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
18
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export const BadgeBorder = registerColor(
|
|
22
|
+
'kt.badge.border',
|
|
23
|
+
{
|
|
24
|
+
dark: badgeBackground,
|
|
25
|
+
light: badgeBackground,
|
|
26
|
+
hcDark: contrastBorder,
|
|
27
|
+
hcLight: contrastBorder,
|
|
28
|
+
},
|
|
29
|
+
localize('badgeBorder', 'Badge border color. Badges are small information labels, e.g. for search results count.'),
|
|
30
|
+
);
|