@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.
Files changed (117) hide show
  1. package/lib/browser/icon-theme-data.js.map +1 -1
  2. package/lib/browser/icon-theme-store.js.map +1 -1
  3. package/lib/browser/icon.service.d.ts +3 -1
  4. package/lib/browser/icon.service.d.ts.map +1 -1
  5. package/lib/browser/icon.service.js +56 -24
  6. package/lib/browser/icon.service.js.map +1 -1
  7. package/lib/browser/index.js.map +1 -1
  8. package/lib/browser/semantic-tokens-registry.js.map +1 -1
  9. package/lib/browser/style.service.js.map +1 -1
  10. package/lib/browser/theme-data.js +7 -7
  11. package/lib/browser/theme-data.js.map +1 -1
  12. package/lib/browser/theme-store.js.map +1 -1
  13. package/lib/browser/theme.contribution.js +3 -3
  14. package/lib/browser/theme.contribution.js.map +1 -1
  15. package/lib/browser/workbench.theme.service.js +2 -2
  16. package/lib/browser/workbench.theme.service.js.map +1 -1
  17. package/lib/common/color-tokens/basic-color.d.ts +1 -1
  18. package/lib/common/color-tokens/basic-color.d.ts.map +1 -1
  19. package/lib/common/color-tokens/editor.d.ts +13 -0
  20. package/lib/common/color-tokens/editor.d.ts.map +1 -1
  21. package/lib/common/color-tokens/editor.js +35 -1
  22. package/lib/common/color-tokens/editor.js.map +1 -1
  23. package/lib/common/color.js +40 -40
  24. package/lib/common/color.js.map +1 -1
  25. package/lib/common/mocks/theme.service.js.map +1 -1
  26. package/lib/common/plistParser.js +40 -40
  27. package/lib/common/plistParser.js.map +1 -1
  28. package/lib/common/semantic-tokens-registry.d.ts +7 -7
  29. package/lib/common/semantic-tokens-registry.d.ts.map +1 -1
  30. package/lib/common/theme.service.d.ts +26 -6
  31. package/lib/common/theme.service.d.ts.map +1 -1
  32. package/lib/common/theme.service.js.map +1 -1
  33. package/package.json +11 -10
  34. package/src/browser/default-theme.ts +547 -0
  35. package/src/browser/icon-theme-data.ts +294 -0
  36. package/src/browser/icon-theme-store.ts +38 -0
  37. package/src/browser/icon.less +15 -0
  38. package/src/browser/icon.service.ts +457 -0
  39. package/src/browser/index.ts +45 -0
  40. package/src/browser/semantic-tokens-registry.ts +217 -0
  41. package/src/browser/style.service.ts +51 -0
  42. package/src/browser/theme-data.ts +719 -0
  43. package/src/browser/theme-store.ts +95 -0
  44. package/src/browser/theme.contribution.ts +343 -0
  45. package/src/browser/workbench.theme.service.ts +703 -0
  46. package/src/common/color-registry.ts +52 -0
  47. package/src/common/color-tokens/activity-bar.ts +122 -0
  48. package/src/common/color-tokens/badge.ts +31 -0
  49. package/src/common/color-tokens/base.ts +90 -0
  50. package/src/common/color-tokens/basic-color.ts +9 -0
  51. package/src/common/color-tokens/breadcrumb.ts +60 -0
  52. package/src/common/color-tokens/button.ts +69 -0
  53. package/src/common/color-tokens/charts.ts +68 -0
  54. package/src/common/color-tokens/checkbox.ts +23 -0
  55. package/src/common/color-tokens/custom/actionbar.ts +51 -0
  56. package/src/common/color-tokens/custom/activity-bar.ts +16 -0
  57. package/src/common/color-tokens/custom/badge.ts +30 -0
  58. package/src/common/color-tokens/custom/base.ts +111 -0
  59. package/src/common/color-tokens/custom/button.ts +359 -0
  60. package/src/common/color-tokens/custom/checkbox.ts +36 -0
  61. package/src/common/color-tokens/custom/decoration.ts +71 -0
  62. package/src/common/color-tokens/custom/editor.ts +27 -0
  63. package/src/common/color-tokens/custom/extension.ts +9 -0
  64. package/src/common/color-tokens/custom/icon.ts +30 -0
  65. package/src/common/color-tokens/custom/index.ts +26 -0
  66. package/src/common/color-tokens/custom/input.ts +48 -0
  67. package/src/common/color-tokens/custom/menu.ts +61 -0
  68. package/src/common/color-tokens/custom/modal.ts +57 -0
  69. package/src/common/color-tokens/custom/notification.ts +16 -0
  70. package/src/common/color-tokens/custom/panel.ts +112 -0
  71. package/src/common/color-tokens/custom/popover.ts +28 -0
  72. package/src/common/color-tokens/custom/select.ts +155 -0
  73. package/src/common/color-tokens/custom/settings.ts +32 -0
  74. package/src/common/color-tokens/custom/statusbar.ts +16 -0
  75. package/src/common/color-tokens/custom/tab.ts +31 -0
  76. package/src/common/color-tokens/custom/tooltip.ts +55 -0
  77. package/src/common/color-tokens/custom/tree.ts +106 -0
  78. package/src/common/color-tokens/debug.ts +103 -0
  79. package/src/common/color-tokens/debugToolbar.ts +134 -0
  80. package/src/common/color-tokens/dropdown.ts +27 -0
  81. package/src/common/color-tokens/editor.ts +945 -0
  82. package/src/common/color-tokens/index.ts +35 -0
  83. package/src/common/color-tokens/input.ts +105 -0
  84. package/src/common/color-tokens/list-tree.ts +205 -0
  85. package/src/common/color-tokens/menu-bar.ts +43 -0
  86. package/src/common/color-tokens/menu.ts +53 -0
  87. package/src/common/color-tokens/merge-conflict.ts +145 -0
  88. package/src/common/color-tokens/minimap.ts +99 -0
  89. package/src/common/color-tokens/notification.ts +169 -0
  90. package/src/common/color-tokens/panel.ts +177 -0
  91. package/src/common/color-tokens/pick-view.ts +96 -0
  92. package/src/common/color-tokens/picker.ts +15 -0
  93. package/src/common/color-tokens/progress-bar.ts +12 -0
  94. package/src/common/color-tokens/quick-input.ts +57 -0
  95. package/src/common/color-tokens/scrollbar.ts +42 -0
  96. package/src/common/color-tokens/settings.ts +126 -0
  97. package/src/common/color-tokens/sidebar.ts +121 -0
  98. package/src/common/color-tokens/snippet.ts +33 -0
  99. package/src/common/color-tokens/status-bar.ts +350 -0
  100. package/src/common/color-tokens/tab.ts +346 -0
  101. package/src/common/color-tokens/testing.ts +105 -0
  102. package/src/common/color-tokens/text.ts +41 -0
  103. package/src/common/color-tokens/title-bar.ts +62 -0
  104. package/src/common/color-tokens/toolbar.ts +28 -0
  105. package/src/common/color-tokens/welcome-page.ts +27 -0
  106. package/src/common/color.ts +647 -0
  107. package/src/common/default-themes.ts +273 -0
  108. package/src/common/event.ts +9 -0
  109. package/src/common/index.ts +8 -0
  110. package/src/common/mocks/theme.service.ts +55 -0
  111. package/src/common/plistParser.ts +525 -0
  112. package/src/common/semantic-tokens-registry.ts +439 -0
  113. package/src/common/style.ts +9 -0
  114. package/src/common/theme.service.ts +363 -0
  115. package/src/common/themeCompatibility.ts +95 -0
  116. package/src/common/utils.ts +195 -0
  117. package/src/index.ts +1 -0
@@ -0,0 +1,346 @@
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 { hcActiveBorderColor, hcBorderColor } from './basic-color';
8
+ import { editorBackground } from './editor';
9
+ import { treeIndentGuidesStroke } from './list-tree';
10
+
11
+ // < --- Tabs --- >
12
+
13
+ export const TAB_ACTIVE_BACKGROUND = registerColor(
14
+ 'tab.activeBackground',
15
+ {
16
+ dark: editorBackground,
17
+ light: editorBackground,
18
+ hcDark: editorBackground,
19
+ hcLight: editorBackground,
20
+ },
21
+ localize(
22
+ 'tabActiveBackground',
23
+ 'Active tab background color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
24
+ ),
25
+ );
26
+
27
+ export const TAB_UNFOCUSED_ACTIVE_BACKGROUND = registerColor(
28
+ 'tab.unfocusedActiveBackground',
29
+ {
30
+ dark: TAB_ACTIVE_BACKGROUND,
31
+ light: TAB_ACTIVE_BACKGROUND,
32
+ hcDark: TAB_ACTIVE_BACKGROUND,
33
+ hcLight: TAB_ACTIVE_BACKGROUND,
34
+ },
35
+ localize(
36
+ 'tabUnfocusedActiveBackground',
37
+ 'Active tab background color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
38
+ ),
39
+ );
40
+
41
+ export const TAB_INACTIVE_BACKGROUND = registerColor(
42
+ 'tab.inactiveBackground',
43
+ {
44
+ dark: '#2D2D2D',
45
+ light: '#ECECEC',
46
+ hcDark: TAB_UNFOCUSED_ACTIVE_BACKGROUND,
47
+ hcLight: TAB_UNFOCUSED_ACTIVE_BACKGROUND,
48
+ },
49
+ localize(
50
+ 'tabInactiveBackground',
51
+ 'Inactive tab background color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
52
+ ),
53
+ );
54
+
55
+ export const TAB_UNFOCUSED_INACTIVE_BACKGROUND = registerColor(
56
+ 'tab.unfocusedInactiveBackground',
57
+ {
58
+ dark: TAB_INACTIVE_BACKGROUND,
59
+ light: TAB_INACTIVE_BACKGROUND,
60
+ hcDark: TAB_INACTIVE_BACKGROUND,
61
+ hcLight: TAB_INACTIVE_BACKGROUND,
62
+ },
63
+ localize(
64
+ 'tabUnfocusedInactiveBackground',
65
+ 'Inactive tab background color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
66
+ ),
67
+ );
68
+
69
+ export const TAB_HOVER_BACKGROUND = registerColor(
70
+ 'tab.hoverBackground',
71
+ {
72
+ dark: null,
73
+ light: null,
74
+ hcDark: null,
75
+ hcLight: null,
76
+ },
77
+ localize(
78
+ 'tabHoverBackground',
79
+ 'Tab background color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
80
+ ),
81
+ );
82
+
83
+ export const TAB_UNFOCUSED_HOVER_BACKGROUND = registerColor(
84
+ 'tab.unfocusedHoverBackground',
85
+ {
86
+ dark: transparent(TAB_HOVER_BACKGROUND, 0.5),
87
+ light: transparent(TAB_HOVER_BACKGROUND, 0.7),
88
+ hcDark: null,
89
+ hcLight: null,
90
+ },
91
+ localize(
92
+ 'tabUnfocusedHoverBackground',
93
+ 'Tab background color in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
94
+ ),
95
+ );
96
+
97
+ export const TAB_HOVER_FOREGROUND = registerColor(
98
+ 'tab.hoverForeground',
99
+ {
100
+ dark: null,
101
+ light: null,
102
+ hcDark: null,
103
+ hcLight: null,
104
+ },
105
+ localize(
106
+ 'tabHoverForeground',
107
+ 'Tab foreground color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
108
+ ),
109
+ );
110
+
111
+ export const TAB_UNFOCUSED_HOVER_FOREGROUND = registerColor(
112
+ 'tab.unfocusedHoverForeground',
113
+ {
114
+ dark: transparent(TAB_HOVER_FOREGROUND, 0.5),
115
+ light: transparent(TAB_HOVER_FOREGROUND, 0.5),
116
+ hcDark: null,
117
+ hcLight: null,
118
+ },
119
+ localize(
120
+ 'tabUnfocusedHoverForeground',
121
+ 'Tab foreground color in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
122
+ ),
123
+ );
124
+
125
+ export const TAB_BORDER = registerColor(
126
+ 'tab.border',
127
+ {
128
+ dark: '#252526',
129
+ light: '#F3F3F3',
130
+ hcDark: contrastBorder,
131
+ hcLight: contrastBorder,
132
+ },
133
+ localize(
134
+ 'tabBorder',
135
+ 'Border to separate tabs from each other. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
136
+ ),
137
+ );
138
+
139
+ export const TAB_LAST_PINNED_BORDER = registerColor(
140
+ 'tab.lastPinnedBorder',
141
+ {
142
+ dark: treeIndentGuidesStroke,
143
+ light: treeIndentGuidesStroke,
144
+ hcDark: contrastBorder,
145
+ hcLight: contrastBorder,
146
+ },
147
+ localize(
148
+ 'lastPinnedTabBorder',
149
+ 'Border to separate pinned tabs from other tabs. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
150
+ ),
151
+ );
152
+
153
+ export const TAB_ACTIVE_BORDER = registerColor(
154
+ 'tab.activeBorder',
155
+ {
156
+ dark: null,
157
+ light: null,
158
+ hcDark: null,
159
+ hcLight: null,
160
+ },
161
+ localize(
162
+ 'tabActiveBorder',
163
+ 'Border on the bottom of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
164
+ ),
165
+ );
166
+
167
+ export const TAB_UNFOCUSED_ACTIVE_BORDER = registerColor(
168
+ 'tab.unfocusedActiveBorder',
169
+ {
170
+ dark: transparent(TAB_ACTIVE_BORDER, 0.5),
171
+ light: transparent(TAB_ACTIVE_BORDER, 0.7),
172
+ hcDark: null,
173
+ hcLight: null,
174
+ },
175
+ localize(
176
+ 'tabActiveUnfocusedBorder',
177
+ 'Border on the bottom of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
178
+ ),
179
+ );
180
+
181
+ export const TAB_ACTIVE_BORDER_TOP = registerColor(
182
+ 'tab.activeBorderTop',
183
+ {
184
+ dark: null,
185
+ light: null,
186
+ hcDark: null,
187
+ hcLight: '#B5200D',
188
+ },
189
+ localize(
190
+ 'tabActiveBorderTop',
191
+ 'Border to the top of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
192
+ ),
193
+ );
194
+
195
+ export const TAB_UNFOCUSED_ACTIVE_BORDER_TOP = registerColor(
196
+ 'tab.unfocusedActiveBorderTop',
197
+ {
198
+ dark: transparent(TAB_ACTIVE_BORDER_TOP, 0.5),
199
+ light: transparent(TAB_ACTIVE_BORDER_TOP, 0.7),
200
+ hcDark: null,
201
+ hcLight: '#B5200D',
202
+ },
203
+ localize(
204
+ 'tabActiveUnfocusedBorderTop',
205
+ 'Border to the top of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
206
+ ),
207
+ );
208
+
209
+ export const TAB_ACTIVE_MODIFIED_BORDER = registerColor(
210
+ 'tab.activeModifiedBorder',
211
+ {
212
+ dark: '#3399CC',
213
+ light: '#33AAEE',
214
+ hcDark: null,
215
+ hcLight: contrastBorder,
216
+ },
217
+ localize(
218
+ 'tabActiveModifiedBorder',
219
+ 'Border on the top of modified active tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
220
+ ),
221
+ );
222
+
223
+ export const TAB_INACTIVE_MODIFIED_BORDER = registerColor(
224
+ 'tab.inactiveModifiedBorder',
225
+ {
226
+ dark: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.5),
227
+ light: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.5),
228
+ hcDark: Color.white,
229
+ hcLight: contrastBorder,
230
+ },
231
+ localize(
232
+ 'tabInactiveModifiedBorder',
233
+ 'Border on the top of modified inactive tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
234
+ ),
235
+ );
236
+
237
+ export const TAB_UNFOCUSED_ACTIVE_MODIFIED_BORDER = registerColor(
238
+ 'tab.unfocusedActiveModifiedBorder',
239
+ {
240
+ dark: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.5),
241
+ light: transparent(TAB_ACTIVE_MODIFIED_BORDER, 0.7),
242
+ hcDark: Color.white,
243
+ hcLight: contrastBorder,
244
+ },
245
+ localize(
246
+ 'unfocusedActiveModifiedBorder',
247
+ 'Border on the top of modified active tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
248
+ ),
249
+ );
250
+
251
+ export const TAB_UNFOCUSED_INACTIVE_MODIFIED_BORDER = registerColor(
252
+ 'tab.unfocusedInactiveModifiedBorder',
253
+ {
254
+ dark: transparent(TAB_INACTIVE_MODIFIED_BORDER, 0.5),
255
+ light: transparent(TAB_INACTIVE_MODIFIED_BORDER, 0.5),
256
+ hcDark: Color.white,
257
+ hcLight: contrastBorder,
258
+ },
259
+ localize(
260
+ 'unfocusedINactiveModifiedBorder',
261
+ 'Border on the top of modified inactive tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
262
+ ),
263
+ );
264
+ export const TAB_HOVER_BORDER = registerColor(
265
+ 'tab.hoverBorder',
266
+ {
267
+ dark: null,
268
+ light: null,
269
+ hcDark: null,
270
+ hcLight: null,
271
+ },
272
+ localize(
273
+ 'tabHoverBorder',
274
+ 'Border to highlight tabs when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
275
+ ),
276
+ );
277
+
278
+ export const TAB_UNFOCUSED_HOVER_BORDER = registerColor(
279
+ 'tab.unfocusedHoverBorder',
280
+ {
281
+ dark: transparent(TAB_HOVER_BORDER, 0.5),
282
+ light: transparent(TAB_HOVER_BORDER, 0.7),
283
+ hcDark: null,
284
+ hcLight: contrastBorder,
285
+ },
286
+ localize(
287
+ 'tabUnfocusedHoverBorder',
288
+ 'Border to highlight tabs in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
289
+ ),
290
+ );
291
+
292
+ export const TAB_ACTIVE_FOREGROUND = registerColor(
293
+ 'tab.activeForeground',
294
+ {
295
+ dark: Color.white,
296
+ light: '#333333',
297
+ hcDark: hcActiveBorderColor,
298
+ hcLight: hcActiveBorderColor,
299
+ },
300
+ localize(
301
+ 'tabActiveForeground',
302
+ 'Active tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
303
+ ),
304
+ );
305
+
306
+ export const TAB_INACTIVE_FOREGROUND = registerColor(
307
+ 'tab.inactiveForeground',
308
+ {
309
+ dark: transparent(TAB_ACTIVE_FOREGROUND, 0.5),
310
+ light: transparent(TAB_ACTIVE_FOREGROUND, 0.7),
311
+ hcDark: Color.white,
312
+ hcLight: '#292929',
313
+ },
314
+ localize(
315
+ 'tabInactiveForeground',
316
+ 'Inactive tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
317
+ ),
318
+ );
319
+
320
+ export const TAB_UNFOCUSED_ACTIVE_FOREGROUND = registerColor(
321
+ 'tab.unfocusedActiveForeground',
322
+ {
323
+ dark: transparent(TAB_ACTIVE_FOREGROUND, 0.5),
324
+ light: transparent(TAB_ACTIVE_FOREGROUND, 0.7),
325
+ hcDark: Color.white,
326
+ hcLight: '#292929',
327
+ },
328
+ localize(
329
+ 'tabUnfocusedActiveForeground',
330
+ 'Active tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
331
+ ),
332
+ );
333
+
334
+ export const TAB_UNFOCUSED_INACTIVE_FOREGROUND = registerColor(
335
+ 'tab.unfocusedInactiveForeground',
336
+ {
337
+ dark: transparent(TAB_INACTIVE_FOREGROUND, 0.5),
338
+ light: transparent(TAB_INACTIVE_FOREGROUND, 0.5),
339
+ hcDark: Color.white,
340
+ hcLight: '#292929',
341
+ },
342
+ localize(
343
+ 'tabUnfocusedInactiveForeground',
344
+ 'Inactive tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.',
345
+ ),
346
+ );
@@ -0,0 +1,105 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { transparent, registerColor } from '../utils';
4
+
5
+ import { contrastBorder } from './base';
6
+ import { editorErrorForeground } from './editor';
7
+
8
+ export const testingColorIconFailed = registerColor(
9
+ 'testing.iconFailed',
10
+ {
11
+ dark: '#f14c4c',
12
+ light: '#f14c4c',
13
+ hcDark: '#f14c4c',
14
+ hcLight: '#B5200D',
15
+ },
16
+ localize('testing.iconFailed', "Color for the 'failed' icon in the test explorer."),
17
+ );
18
+
19
+ export const testingColorIconErrored = registerColor(
20
+ 'testing.iconErrored',
21
+ {
22
+ dark: '#f14c4c',
23
+ light: '#f14c4c',
24
+ hcDark: '#f14c4c',
25
+ hcLight: '#B5200D',
26
+ },
27
+ localize('testing.iconErrored', "Color for the 'Errored' icon in the test explorer."),
28
+ );
29
+
30
+ export const testingColorIconPassed = registerColor(
31
+ 'testing.iconPassed',
32
+ {
33
+ dark: '#73c991',
34
+ light: '#73c991',
35
+ hcDark: '#73c991',
36
+ hcLight: '#007100',
37
+ },
38
+ localize('testing.iconPassed', "Color for the 'passed' icon in the test explorer."),
39
+ );
40
+
41
+ export const testingColorRunAction = registerColor(
42
+ 'testing.runAction',
43
+ {
44
+ dark: testingColorIconPassed,
45
+ light: testingColorIconPassed,
46
+ hcDark: testingColorIconPassed,
47
+ hcLight: testingColorIconPassed,
48
+ },
49
+ localize('testing.runAction', "Color for 'run' icons in the editor."),
50
+ );
51
+
52
+ export const testingColorIconQueued = registerColor(
53
+ 'testing.iconQueued',
54
+ {
55
+ dark: '#cca700',
56
+ light: '#cca700',
57
+ hcDark: '#cca700',
58
+ hcLight: '#cca700',
59
+ },
60
+ localize('testing.iconQueued', "Color for the 'Queued' icon in the test explorer."),
61
+ );
62
+
63
+ export const testingColorIconUnset = registerColor(
64
+ 'testing.iconUnset',
65
+ {
66
+ dark: '#848484',
67
+ light: '#848484',
68
+ hcDark: '#848484',
69
+ hcLight: '#848484',
70
+ },
71
+ localize('testing.iconUnset', "Color for the 'Unset' icon in the test explorer."),
72
+ );
73
+
74
+ export const testingColorIconSkipped = registerColor(
75
+ 'testing.iconSkipped',
76
+ {
77
+ dark: '#848484',
78
+ light: '#848484',
79
+ hcDark: '#848484',
80
+ hcLight: '#848484',
81
+ },
82
+ localize('testing.iconSkipped', "Color for the 'Skipped' icon in the test explorer."),
83
+ );
84
+
85
+ export const testingPeekBorder = registerColor(
86
+ 'testing.peekBorder',
87
+ {
88
+ dark: editorErrorForeground,
89
+ light: editorErrorForeground,
90
+ hcDark: contrastBorder,
91
+ hcLight: contrastBorder,
92
+ },
93
+ localize('testing.peekBorder', 'Color of the peek view borders and arrow.'),
94
+ );
95
+
96
+ export const testingPeekHeaderBackground = registerColor(
97
+ 'testing.peekHeaderBackground',
98
+ {
99
+ dark: transparent(editorErrorForeground, 0.1),
100
+ light: transparent(editorErrorForeground, 0.1),
101
+ hcDark: null,
102
+ hcLight: null,
103
+ },
104
+ localize('testing.peekBorder', 'Color of the peek view borders and arrow.'),
105
+ );
@@ -0,0 +1,41 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color } from '../../common/color';
4
+ import { registerColor } from '../utils';
5
+
6
+ // ------ text colors
7
+ export const textSeparatorForeground = registerColor(
8
+ 'textSeparator.foreground',
9
+ { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' },
10
+ localize('textSeparatorForeground', 'Color for text separators.'),
11
+ );
12
+ export const textLinkForeground = registerColor(
13
+ 'textLink.foreground',
14
+ { light: '#006AB1', dark: '#3794FF', hcDark: '#3794FF', hcLight: '#0F4A85' },
15
+ localize('textLinkForeground', 'Foreground color for links in text.'),
16
+ );
17
+ export const textLinkActiveForeground = registerColor(
18
+ 'textLink.activeForeground',
19
+ { light: '#006AB1', dark: '#3794FF', hcDark: '#3794FF', hcLight: '#0F4A85' },
20
+ localize('textLinkActiveForeground', 'Foreground color for links in text when clicked on and on mouse hover.'),
21
+ );
22
+ export const textPreformatForeground = registerColor(
23
+ 'textPreformat.foreground',
24
+ { light: '#A31515', dark: '#D7BA7D', hcDark: '#D7BA7D', hcLight: '#292929' },
25
+ localize('textPreformatForeground', 'Foreground color for preformatted text segments.'),
26
+ );
27
+ export const textBlockQuoteBackground = registerColor(
28
+ 'textBlockQuote.background',
29
+ { light: '#7f7f7f1a', dark: '#7f7f7f1a', hcDark: null, hcLight: '#F2F2F2' },
30
+ localize('textBlockQuoteBackground', 'Background color for block quotes in text.'),
31
+ );
32
+ export const textBlockQuoteBorder = registerColor(
33
+ 'textBlockQuote.border',
34
+ { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' },
35
+ localize('textBlockQuoteBorder', 'Border color for block quotes in text.'),
36
+ );
37
+ export const textCodeBlockBackground = registerColor(
38
+ 'textCodeBlock.background',
39
+ { light: '#dcdcdc66', dark: '#0a0a0a66', hcDark: Color.black, hcLight: '#F2F2F2' },
40
+ localize('textCodeBlockBackground', 'Background color for code blocks in text.'),
41
+ );
@@ -0,0 +1,62 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { transparent, registerColor } from '../utils';
4
+
5
+ import { contrastBorder } from './base';
6
+
7
+ // < --- Title Bar --- >
8
+
9
+ export const TITLE_BAR_ACTIVE_FOREGROUND = registerColor(
10
+ 'titleBar.activeForeground',
11
+ {
12
+ dark: '#CCCCCC',
13
+ light: '#333333',
14
+ hcDark: '#FFFFFF',
15
+ hcLight: '#292929',
16
+ },
17
+ localize('titleBarActiveForeground', 'Title bar foreground when the window is active.'),
18
+ );
19
+
20
+ export const TITLE_BAR_INACTIVE_FOREGROUND = registerColor(
21
+ 'titleBar.inactiveForeground',
22
+ {
23
+ dark: transparent(TITLE_BAR_ACTIVE_FOREGROUND, 0.6),
24
+ light: transparent(TITLE_BAR_ACTIVE_FOREGROUND, 0.6),
25
+ hcDark: null,
26
+ hcLight: '#292929',
27
+ },
28
+ localize('titleBarInactiveForeground', 'Title bar foreground when the window is inactive.'),
29
+ );
30
+
31
+ export const TITLE_BAR_ACTIVE_BACKGROUND = registerColor(
32
+ 'titleBar.activeBackground',
33
+ {
34
+ dark: '#3C3C3C',
35
+ light: '#DDDDDD',
36
+ hcDark: '#000000',
37
+ hcLight: '#FFFFFF',
38
+ },
39
+ localize('titleBarActiveBackground', 'Title bar background when the window is active.'),
40
+ );
41
+
42
+ export const TITLE_BAR_INACTIVE_BACKGROUND = registerColor(
43
+ 'titleBar.inactiveBackground',
44
+ {
45
+ dark: transparent(TITLE_BAR_ACTIVE_BACKGROUND, 0.6),
46
+ light: transparent(TITLE_BAR_ACTIVE_BACKGROUND, 0.6),
47
+ hcDark: null,
48
+ hcLight: null,
49
+ },
50
+ localize('titleBarInactiveBackground', 'Title bar background when the window is inactive.'),
51
+ );
52
+
53
+ export const TITLE_BAR_BORDER = registerColor(
54
+ 'titleBar.border',
55
+ {
56
+ dark: null,
57
+ light: null,
58
+ hcDark: contrastBorder,
59
+ hcLight: contrastBorder,
60
+ },
61
+ localize('titleBarBorder', 'Title bar border color.'),
62
+ );
@@ -0,0 +1,28 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { darken, lighten, registerColor } from '../utils';
4
+
5
+ import { activeContrastBorder } from './base';
6
+ /**
7
+ * Toolbar colors
8
+ */
9
+ export const toolbarHoverBackground = registerColor(
10
+ 'toolbar.hoverBackground',
11
+ { dark: '#5a5d5e50', light: '#b8b8b850', hcDark: null, hcLight: null },
12
+ localize('toolbarHoverBackground', 'Toolbar background when hovering over actions using the mouse'),
13
+ );
14
+ export const toolbarHoverOutline = registerColor(
15
+ 'toolbar.hoverOutline',
16
+ { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
17
+ localize('toolbarHoverOutline', 'Toolbar outline when hovering over actions using the mouse'),
18
+ );
19
+ export const toolbarActiveBackground = registerColor(
20
+ 'toolbar.activeBackground',
21
+ {
22
+ dark: lighten(toolbarHoverBackground, 0.1),
23
+ light: darken(toolbarHoverBackground, 0.1),
24
+ hcDark: null,
25
+ hcLight: null,
26
+ },
27
+ localize('toolbarActiveBackground', 'Toolbar background when holding the mouse over actions'),
28
+ );
@@ -0,0 +1,27 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../utils';
4
+
5
+ export const welcomePagebtnBackground = registerColor(
6
+ 'welcomePage.buttonBackground',
7
+ { dark: null, light: null, hcDark: null, hcLight: null },
8
+ localize('welcomePage.buttonBackground', 'Background color for the buttons on the Welcome page.'),
9
+ );
10
+ export const welcomePageBtnHoverBackground = registerColor(
11
+ 'welcomePage.buttonHoverBackground',
12
+ { dark: null, light: null, hcDark: null, hcLight: null },
13
+ localize('welcomePage.buttonHoverBackground', 'Hover background color for the buttons on the Welcome page.'),
14
+ );
15
+ export const welcomePageBackground = registerColor(
16
+ 'welcomePage.background',
17
+ { dark: null, light: null, hcDark: null, hcLight: null },
18
+ localize('welcomePage.background', 'Background color for the Welcome page.'),
19
+ );
20
+ export const embeddedEditorBackground = registerColor(
21
+ 'walkThrough.embeddedEditorBackground',
22
+ { dark: null, light: null, hcDark: null, hcLight: null },
23
+ localize(
24
+ 'walkThrough.embeddedEditorBackground',
25
+ 'Background color for the embedded editors on the Interactive Playground.',
26
+ ),
27
+ );