@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,111 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { transparent, registerColor } from '../../utils';
4
+ import { iconForeground, foreground } from '../base';
5
+ import { editorWarningForeground, editorErrorForeground, editorInfoForeground } from '../editor';
6
+
7
+ // base custom colors
8
+ // 强调色
9
+ export const accentForeground = registerColor(
10
+ 'kt.accentForeground',
11
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
12
+ localize('accentForeground', 'Accent foreground color. This color is only used if not overridden by a component.'),
13
+ );
14
+
15
+ export const disableForeground = registerColor(
16
+ 'kt.disableForeground',
17
+ {
18
+ light: transparent(foreground, 0.3),
19
+ dark: transparent(foreground, 0.3),
20
+ hcDark: transparent(foreground, 0.3),
21
+ hcLight: transparent(foreground, 0.3),
22
+ },
23
+ localize('disableForeground', 'Foreground color for text providing disabled information'),
24
+ );
25
+
26
+ export const iconSecondaryForeground = registerColor(
27
+ 'kt.icon.secondaryForeground',
28
+ { dark: iconForeground, light: iconForeground, hcDark: iconForeground, hcLight: iconForeground },
29
+ localize('secondaryForeground', 'The secondary color for icons in the workbench.'),
30
+ );
31
+
32
+ export const errorIconForeground = registerColor(
33
+ 'kt.errorIconForeground',
34
+ {
35
+ dark: editorErrorForeground,
36
+ light: editorErrorForeground,
37
+ hcDark: editorErrorForeground,
38
+ hcLight: editorErrorForeground,
39
+ },
40
+ localize('errorIconForeground', 'Foreground color for error icon'),
41
+ );
42
+
43
+ export const errorBackground = registerColor(
44
+ 'kt.errorBackground',
45
+ { dark: '#D21F2840', light: '#FF787540', hcDark: null, hcLight: null },
46
+ localize('errorBackground', 'Background color for error text'),
47
+ );
48
+
49
+ /**
50
+ * 备注: 为保障对 vscode theme 插件的最大程度兼容
51
+ * 这里 [warning/error/info]IconForeground
52
+ * 皆 fallback 到 vscode token 中 notificationsIcon 相关的默认值
53
+ * 即全部 fallback 搭配 editorForeground 色值
54
+ */
55
+ export const warningIconForeground = registerColor(
56
+ 'kt.warningIconForeground',
57
+ {
58
+ dark: editorWarningForeground,
59
+ light: editorWarningForeground,
60
+ hcDark: editorWarningForeground,
61
+ hcLight: editorWarningForeground,
62
+ },
63
+ localize('warningIconForeground', 'Foreground color for warning icon'),
64
+ );
65
+
66
+ export const warningBackground = registerColor(
67
+ 'kt.warningBackground',
68
+ { dark: '#D7951340', light: '#FFD66640', hcDark: null, hcLight: null },
69
+ localize('warningBackground', 'Background color for warning text'),
70
+ );
71
+
72
+ export const succesIconForeground = registerColor(
73
+ 'kt.successIconForeground',
74
+ { dark: '#DBA936', light: '#73D13D', hcDark: iconForeground, hcLight: iconForeground },
75
+ localize('successIconForeground', 'Foreground color for success icon'),
76
+ );
77
+
78
+ export const successBackground = registerColor(
79
+ 'kt.successBackground',
80
+ { dark: '#D7951340', light: '#95DE6440', hcDark: null, hcLight: null },
81
+ localize('successBackground', 'Background color for success text'),
82
+ );
83
+
84
+ export const infoIconForeground = registerColor(
85
+ 'kt.infoIconForeground',
86
+ {
87
+ dark: editorInfoForeground,
88
+ light: editorInfoForeground,
89
+ hcDark: editorInfoForeground,
90
+ hcLight: editorInfoForeground,
91
+ },
92
+ localize('infoIconForeground', 'Foreground color for info icon'),
93
+ );
94
+
95
+ export const infoBackground = registerColor(
96
+ 'kt.infoBackground',
97
+ { dark: '#167CDB40', light: '#6EB6FA40', hcDark: null, hcLight: null },
98
+ localize('infoBackground', 'Background color for info text'),
99
+ );
100
+
101
+ export const hintIconForeground = registerColor(
102
+ 'kt.hintIconForeground',
103
+ { dark: '#868C91', light: '#999999', hcDark: iconForeground, hcLight: iconForeground },
104
+ localize('hintIconForeground', 'Foreground color for hint icon'),
105
+ );
106
+
107
+ export const hintBackground = registerColor(
108
+ 'kt.hintBackground',
109
+ { dark: '#5F656B40', light: '#CCCCCC40', hcDark: null, hcLight: null },
110
+ localize('hintBackground', 'Background color for hint text'),
111
+ );
@@ -0,0 +1,359 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { RGBA, Color } from '../../color';
4
+ import { registerColor, darken, lighten } from '../../utils';
5
+ import { foreground } from '../base';
6
+ import {
7
+ buttonBackground,
8
+ buttonForeground,
9
+ buttonHoverBackground,
10
+ buttonSecondaryBackground,
11
+ buttonSecondaryHoverBackground,
12
+ buttonSecondaryForeground,
13
+ buttonBorder,
14
+ } from '../button';
15
+
16
+ /* disable button */
17
+ export const ktButtonDisableForeground = registerColor(
18
+ 'kt.button.disableForeground',
19
+ { dark: '#5F656B', light: '#5F656B', hcDark: null, hcLight: null },
20
+ localize('buttonDisableForeground', 'Button Disable Foreground color'),
21
+ );
22
+ export const ktButtonDisableBackground = registerColor(
23
+ 'kt.button.disableBackground',
24
+ {
25
+ dark: new Color(new RGBA(95, 101, 107, 0.25)),
26
+ light: new Color(new RGBA(95, 101, 107, 0.25)),
27
+ hcDark: null,
28
+ hcLight: null,
29
+ },
30
+ localize('buttonDisableBackground', 'Button Disable Background color'),
31
+ );
32
+ export const ktButtonDisableBorder = registerColor(
33
+ 'kt.button.disableBorder',
34
+ {
35
+ dark: new Color(new RGBA(95, 101, 107, 0.5)),
36
+ light: new Color(new RGBA(95, 101, 107, 0.5)),
37
+ hcDark: null,
38
+ hcLight: null,
39
+ },
40
+ localize('buttonDisableBorder', 'Button Disable Border color.'),
41
+ );
42
+
43
+ /* primary button */
44
+ export const ktPrimaryButtonForeground = registerColor(
45
+ 'kt.primaryButton.foreground',
46
+ { dark: buttonForeground, light: buttonForeground, hcDark: Color.white, hcLight: Color.white },
47
+ localize('primaryButtonForground', 'Primary Button Forground color.'),
48
+ );
49
+ export const ktPrimaryButtonBackground = registerColor(
50
+ 'kt.primaryButton.background',
51
+ { dark: buttonBackground, light: buttonBackground, hcDark: null, hcLight: null },
52
+ localize('primaryButtonBackground', 'Primary Button Background color.'),
53
+ );
54
+ export const ktPrimaryButtonBorder = registerColor(
55
+ 'kt.primaryButton.border',
56
+ { dark: buttonBorder, light: buttonBorder, hcDark: buttonBorder, hcLight: buttonBorder },
57
+ localize('primaryButtonBorder', 'Primary Button Border color.'),
58
+ );
59
+ export const ktPrimaryButtonHoverBackground = registerColor(
60
+ 'kt.primaryButton.hoverBackground',
61
+ { dark: buttonHoverBackground, light: buttonHoverBackground, hcDark: null, hcLight: null },
62
+ localize('primaryButtonHoverBackground', 'Primary Button Hover Background color'),
63
+ );
64
+ export const ktPrimaryButtonClickBackground = registerColor(
65
+ 'kt.primaryButton.clickBackground',
66
+ { dark: buttonHoverBackground, light: buttonHoverBackground, hcDark: null, hcLight: null },
67
+ localize('primaryButtonClickBackground', 'Primary Button Click Background color'),
68
+ );
69
+
70
+ /* primary ghost button */
71
+ export const ktPrimaryGhostButtonForeground = registerColor(
72
+ 'kt.primaryGhostButton.foreground',
73
+ // Light 模式下使用 `ktPrimaryButtonBackground` 能兼容更多主题下展示效果
74
+ // 已达到 https://github.com/opensumi/core/wiki/Button-%E6%8C%89%E9%92%AE#%E5%9B%BE%E4%BE%8B 规范
75
+ { dark: ktPrimaryButtonForeground, light: ktPrimaryButtonBackground, hcDark: Color.white, hcLight: Color.white },
76
+ localize('ktPrimaryGhostButtonForeground', 'Primary Ghost Button Foreground color.'),
77
+ );
78
+ export const ktPrimaryGhostButtonBackground = registerColor(
79
+ 'kt.primaryGhostButton.background',
80
+ { dark: null, light: null, hcDark: null, hcLight: null },
81
+ localize('ktPrimaryGhostButtonBackground', 'Primary Ghost Button Background color.'),
82
+ );
83
+ export const ktPrimaryGhostButtonBorder = registerColor(
84
+ 'kt.primaryGhostButton.border',
85
+ {
86
+ dark: ktPrimaryButtonForeground,
87
+ light: ktPrimaryButtonBackground,
88
+ hcDark: ktPrimaryButtonForeground,
89
+ hcLight: ktPrimaryButtonBackground,
90
+ },
91
+ localize('ktPrimaryGhostButtonBorder', 'Primary Ghost Button Border color.'),
92
+ );
93
+ export const ktPrimaryGhostButtonClickForeground = registerColor(
94
+ 'kt.primaryGhostButton.clickForeground',
95
+ {
96
+ dark: lighten(ktPrimaryGhostButtonForeground, 0.2),
97
+ light: darken(ktPrimaryGhostButtonForeground, 0.2),
98
+ hcDark: ktPrimaryGhostButtonForeground,
99
+ hcLight: ktPrimaryGhostButtonForeground,
100
+ },
101
+ localize('ktPrimaryGhostButtonClickForeground', 'Primary Ghost Button Click Foreground color.'),
102
+ );
103
+ export const ktPrimaryGhostButtonClickBorder = registerColor(
104
+ 'kt.primaryGhostButton.clickBorder',
105
+ {
106
+ dark: lighten(ktPrimaryGhostButtonBorder, 0.2),
107
+ light: darken(ktPrimaryGhostButtonBorder, 0.2),
108
+ hcDark: ktPrimaryGhostButtonBorder,
109
+ hcLight: ktPrimaryGhostButtonBorder,
110
+ },
111
+ localize('ktPrimaryGhostButtonClickBorder', 'Primary Ghost Button Click Border color.'),
112
+ );
113
+
114
+ /* secondary button */
115
+ export const ktSecondaryButtonForeground = registerColor(
116
+ 'kt.secondaryButton.foreground',
117
+ {
118
+ dark: buttonSecondaryForeground,
119
+ light: buttonSecondaryBackground,
120
+ hcDark: buttonSecondaryForeground,
121
+ hcLight: buttonSecondaryBackground,
122
+ },
123
+ localize('ktSecondaryButtonForeground', 'Secondary Button Foreground color.'),
124
+ );
125
+ export const ktSecondaryButtonBackground = registerColor(
126
+ 'kt.secondaryButton.background',
127
+ { dark: null, light: null, hcDark: null, hcLight: null },
128
+ localize('ktSecondaryButtonBackground', 'Secondary Button Background color.'),
129
+ );
130
+ export const ktSecondaryButtonBorder = registerColor(
131
+ 'kt.secondaryButton.border',
132
+ {
133
+ dark: buttonSecondaryForeground,
134
+ light: buttonSecondaryBackground,
135
+ hcDark: buttonSecondaryForeground,
136
+ hcLight: buttonSecondaryBackground,
137
+ },
138
+ localize('ktSecondaryButtonForeground', 'Secondary Button Foreground color.'),
139
+ );
140
+ export const ktSecondaryButtonHoverBackground = registerColor(
141
+ 'kt.secondaryButton.hoverBackground',
142
+ { dark: null, light: null, hcDark: null, hcLight: null },
143
+ localize('ktSecondaryButtonHoverBackground', 'Secondary Button Hover Background color'),
144
+ );
145
+ export const ktSecondaryButtonHoverForeground = registerColor(
146
+ 'kt.secondaryButton.hoverForeground',
147
+ { dark: buttonSecondaryHoverBackground, light: buttonSecondaryHoverBackground, hcDark: null, hcLight: null },
148
+ localize('ktSecondaryButtonHoverForeground', 'Secondary Button Hover Foreground color'),
149
+ );
150
+ export const ktSecondaryButtonHoverBorder = registerColor(
151
+ 'kt.secondaryButton.hoverBorder',
152
+ {
153
+ dark: buttonSecondaryHoverBackground,
154
+ light: buttonSecondaryHoverBackground,
155
+ hcDark: buttonSecondaryHoverBackground,
156
+ hcLight: buttonSecondaryHoverBackground,
157
+ },
158
+ localize('ktSecondaryButtonHoverBorder', 'Secondary Button Hover Border color'),
159
+ );
160
+ export const ktSecondaryButtonClickForeground = registerColor(
161
+ 'kt.secondaryButton.clickForeground',
162
+ {
163
+ dark: ktSecondaryButtonHoverForeground,
164
+ light: ktSecondaryButtonHoverForeground,
165
+ hcDark: ktSecondaryButtonHoverForeground,
166
+ hcLight: ktSecondaryButtonHoverForeground,
167
+ },
168
+ localize('ktSecondaryButtonClickForeground', 'Secondary Button Click Foreground color'),
169
+ );
170
+ export const ktSecondaryButtonClickBackground = registerColor(
171
+ 'kt.secondaryButton.clickBackground',
172
+ { dark: null, light: null, hcDark: null, hcLight: null },
173
+ localize('ktSecondaryButtonClickBackground', 'Secondary Button Click Background color'),
174
+ );
175
+ export const ktSecondaryButtonClickBorder = registerColor(
176
+ 'kt.secondaryButton.clickBorder',
177
+ {
178
+ dark: ktSecondaryButtonHoverBorder,
179
+ light: ktSecondaryButtonHoverBorder,
180
+ hcDark: ktSecondaryButtonHoverBorder,
181
+ hcLight: ktSecondaryButtonHoverBorder,
182
+ },
183
+ localize('ktSecondaryButtonClickBorder', 'Secondary Button Click Border color'),
184
+ );
185
+
186
+ /* secondary ghost button */
187
+ export const ktWhiteGhostButtonForeground = registerColor(
188
+ 'kt.whiteGhostButton.foreground',
189
+ { dark: '#FFFFFF', light: foreground, hcDark: null, hcLight: null },
190
+ localize('ktWhiteGhostButtonForeground', 'White Ghost Button Foreground color.'),
191
+ );
192
+ export const ktWhiteGhostButtonBackground = registerColor(
193
+ 'kt.whiteGhostButton.background',
194
+ { dark: null, light: null, hcDark: null, hcLight: null },
195
+ localize('ktWhiteGhostButtonBackground', 'White Ghost Button Background color.'),
196
+ );
197
+ export const ktWhiteGhostButtonBorder = registerColor(
198
+ 'kt.whiteGhostButton.border',
199
+ { dark: '#FFFFFF', light: foreground, hcDark: null, hcLight: null },
200
+ localize('ktWhiteGhostButtonBorder', 'White Ghost Button Border color.'),
201
+ );
202
+ export const ktWhiteGhostButtonClickForeground = registerColor(
203
+ 'kt.whiteGhostButton.clickForeground',
204
+ { dark: '#FFFFFFA6', light: '#FFFFFFA6', hcDark: null, hcLight: null },
205
+ localize('ktWhiteGhostButtonClickForeground', 'White Ghost Button Click Foreground color.'),
206
+ );
207
+ export const ktWhiteGhostButtonClickBorder = registerColor(
208
+ 'kt.whiteGhostButton.clickBorder',
209
+ { dark: '#FFFFFFA6', light: '#FFFFFFA6', hcDark: null, hcLight: null },
210
+ localize('ktWhiteGhostButtonClickBorder', 'White Ghost Button Click Border color.'),
211
+ );
212
+ export const ktWhiteGhostButtonDisableForeground = registerColor(
213
+ 'kt.whiteGhostButton.disableForeground',
214
+ { dark: '#FFFFFF40', light: '#FFFFFF40', hcDark: null, hcLight: null },
215
+ localize('ktWhiteGhostButtonDisableForeground', 'White Ghost Button Disable Foreground color.'),
216
+ );
217
+
218
+ /* link button */
219
+ export const ktLinkButtonForeground = registerColor(
220
+ 'kt.linkButton.foreground',
221
+ { dark: '#3895EB', light: '#3895EB', hcDark: null, hcLight: null },
222
+ localize('ktLinkButtonForeground', 'Link Button Foreground color.'),
223
+ );
224
+ export const ktLinkButtonHoverForeground = registerColor(
225
+ 'kt.linkButton.hoverForeground',
226
+ { dark: '#67ABEB', light: '#67ABEB', hcDark: null, hcLight: null },
227
+ localize('ktLinkButtonHoverForeground', 'Link Button Hover Foreground color'),
228
+ );
229
+ export const ktLinkButtonClickForeground = registerColor(
230
+ 'kt.linkButton.clickForeground',
231
+ { dark: '#167CDB', light: '#167CDB', hcDark: null, hcLight: null },
232
+ localize('ktLinkButtonClickForeground', 'Link Button Click Foreground color'),
233
+ );
234
+ export const ktLinkButtonDisableForeground = registerColor(
235
+ 'kt.linkButton.disableForeground',
236
+ { dark: '#5F656B', light: '#5F656B', hcDark: null, hcLight: null },
237
+ localize('ktLinkButtonDisableForeground', 'Link Button Disable Foreground color'),
238
+ );
239
+
240
+ /* danger button */
241
+ export const ktDangerButtonForeground = registerColor(
242
+ 'kt.dangerButton.foreground',
243
+ { dark: Color.white, light: Color.white, hcDark: Color.white, hcLight: Color.white },
244
+ localize('ktDangerButtonForground', 'Danger Button Forground color.'),
245
+ );
246
+ export const ktDangerButtonBackground = registerColor(
247
+ 'kt.dangerButton.background',
248
+ { dark: '#DB4345', light: '#DB4345', hcDark: null, hcLight: null },
249
+ localize('ktDangerButtonBackground', 'Danger Button Background color.'),
250
+ );
251
+ export const ktDangerButtonHoverBackground = registerColor(
252
+ 'kt.dangerButton.hoverBackground',
253
+ { dark: '#F37370', light: '#F37370', hcDark: null, hcLight: null },
254
+ localize('ktDangerButtonHoverBackground', 'Danger Button Hover Background color'),
255
+ );
256
+ export const ktDangerButtonClickBackground = registerColor(
257
+ 'kt.dangerButton.clickBackground',
258
+ { dark: '#D21F28', light: '#D21F28', hcDark: null, hcLight: null },
259
+ localize('ktDangerButtonClickBackground', 'Danger Button Click Background color'),
260
+ );
261
+
262
+ /* danger ghost button */
263
+ export const ktDangerGhostButtonForeground = registerColor(
264
+ 'kt.dangerGhostButton.foreground',
265
+ { dark: '#DB4345', light: '#DB4345', hcDark: null, hcLight: null },
266
+ localize('ktDangerGhostButtonForeground', 'Danger Ghost Button Foreground color.'),
267
+ );
268
+ export const ktDangerGhostButtonBackground = registerColor(
269
+ 'kt.dangerGhostButton.background',
270
+ { dark: null, light: null, hcDark: null, hcLight: null },
271
+ localize('ktDangerGhostButtonBackground', 'Danger Ghost Button Background color.'),
272
+ );
273
+ export const ktDangerGhostButtonBorder = registerColor(
274
+ 'kt.dangerGhostButton.border',
275
+ { dark: '#DB4345', light: '#DB4345', hcDark: null, hcLight: null },
276
+ localize('ktDangerGhostButtonBorder', 'Danger Ghost Button Border color.'),
277
+ );
278
+ export const ktDangerGhostButtonHoverForeground = registerColor(
279
+ 'kt.dangerGhostButton.hoverForeground',
280
+ { dark: '#F37370', light: '#F37370', hcDark: null, hcLight: null },
281
+ localize('ktDangerGhostButtonHoverForeground', 'Danger Ghost Button Hover Foreground color.'),
282
+ );
283
+ export const ktDangerGhostButtonHoverBorder = registerColor(
284
+ 'kt.dangerGhostButton.hoverBorder',
285
+ { dark: '#F37370', light: '#F37370', hcDark: null, hcLight: null },
286
+ localize('ktDangerGhostButtonHoverBorder', 'Danger Ghost Button Hover Border color.'),
287
+ );
288
+ export const ktDangerGhostButtonClickForeground = registerColor(
289
+ 'kt.dangerGhostButton.clickForeground',
290
+ { dark: '#D21F28', light: '#D21F28', hcDark: null, hcLight: null },
291
+ localize('ktDangerGhostButtonClickForeground', 'Danger Ghost Button Click Foreground color.'),
292
+ );
293
+ export const ktDangerGhostButtonClickBorder = registerColor(
294
+ 'kt.dangerGhostButton.clickBorder',
295
+ { dark: '#D21F28', light: '#D21F28', hcDark: null, hcLight: null },
296
+ localize('ktDangerGhostButtonClickBorder', 'Danger Ghost Button Click Border color.'),
297
+ );
298
+
299
+ /* default button */
300
+ export const ktDefaultButtonForeground = registerColor(
301
+ 'kt.defaultButton.foreground',
302
+ { dark: buttonForeground, light: buttonForeground, hcDark: buttonBackground, hcLight: buttonBackground },
303
+ localize('ktDefaultButtonForeground', 'Default Button Foreground color.'),
304
+ );
305
+ export const ktDefaultButtonBackground = registerColor(
306
+ 'kt.defaultButton.background',
307
+ { dark: buttonBackground, light: buttonBackground, hcDark: buttonBackground, hcLight: buttonBackground },
308
+ localize('ktDefaultButtonBackground', 'Default Button Background color.'),
309
+ );
310
+ export const ktDefaultButtonBorder = registerColor(
311
+ 'kt.defaultButton.border',
312
+ { dark: buttonBorder, light: buttonBorder, hcDark: buttonBorder, hcLight: buttonBorder },
313
+ localize('ktDefaultButtonBorder', 'Default Button Border color.'),
314
+ );
315
+ export const ktDefaultButtonHoverBackground = registerColor(
316
+ 'kt.defaultButton.hoverBackground',
317
+ {
318
+ dark: buttonHoverBackground,
319
+ light: buttonHoverBackground,
320
+ hcDark: buttonHoverBackground,
321
+ hcLight: buttonHoverBackground,
322
+ },
323
+ localize('ktDefaultButtonHoverBackground', 'Default Button Hover Background color.'),
324
+ );
325
+ export const ktDefaultButtonHoverForeground = registerColor(
326
+ 'kt.defaultButton.hoverForeground',
327
+ { dark: buttonForeground, light: buttonForeground, hcDark: buttonForeground, hcLight: buttonForeground },
328
+ localize('ktDefaultButtonHoverForeground', 'Default Button Hover Foreground color.'),
329
+ );
330
+ export const ktDefaultButtonHoverBorder = registerColor(
331
+ 'kt.defaultButton.hoverBorder',
332
+ {
333
+ dark: buttonHoverBackground,
334
+ light: buttonHoverBackground,
335
+ hcDark: buttonHoverBackground,
336
+ hcLight: buttonHoverBackground,
337
+ },
338
+ localize('ktDefaultButtonHoverBorder', 'Default Button Hover Border color.'),
339
+ );
340
+ export const ktDefaultButtonClickBackground = registerColor(
341
+ 'kt.defaultButton.clickBackground',
342
+ {
343
+ dark: buttonHoverBackground,
344
+ light: buttonHoverBackground,
345
+ hcDark: buttonHoverBackground,
346
+ hcLight: buttonHoverBackground,
347
+ },
348
+ localize('ktDefaultButtonClickBackground', 'Default Button Click Background color.'),
349
+ );
350
+ export const ktDefaultButtonClickBorder = registerColor(
351
+ 'kt.defaultButton.clickBorder',
352
+ {
353
+ dark: buttonHoverBackground,
354
+ light: buttonHoverBackground,
355
+ hcDark: buttonHoverBackground,
356
+ hcLight: buttonHoverBackground,
357
+ },
358
+ localize('ktDangerGhostButtonClickBorder', 'Default Button Click Border color.'),
359
+ );
@@ -0,0 +1,36 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+
5
+ export const ktCheckboxHoverBackground = registerColor(
6
+ 'kt.checkbox.hoverBackground',
7
+ { dark: '#00000040', light: '#FFFFFF', hcDark: null, hcLight: null },
8
+ localize('ktCheckboxHoverBackground', 'Checkbox Hover Background color.'),
9
+ );
10
+ export const ktCheckboxHoverBorder = registerColor(
11
+ 'kt.checkbox.hoverBorder',
12
+ { dark: '#167CDB', light: '#167CDB', hcDark: null, hcLight: null },
13
+ localize('ktCheckboxHoverBorder', 'Checkbox Hover Border color.'),
14
+ );
15
+
16
+ export const ktCheckboxSelectionForeground = registerColor(
17
+ 'kt.checkbox.selectionForeground',
18
+ { dark: '#FFFFFF', light: '#FFFFFF', hcDark: null, hcLight: null },
19
+ localize('ktCheckboxSelectionForeground', 'Checkbox Selection Foreground color.'),
20
+ );
21
+ export const ktCheckboxSelectionBackground = registerColor(
22
+ 'kt.checkbox.selectionBackground',
23
+ { dark: '#167CDB', light: '#167CDB', hcDark: null, hcLight: null },
24
+ localize('ktCheckboxSelectionBackground', 'Checkbox Selection Background color.'),
25
+ );
26
+
27
+ export const ktCheckboxDisableForeground = registerColor(
28
+ 'kt.checkbox.disableForeground',
29
+ { dark: '#5F656B', light: '#5F656B', hcDark: null, hcLight: null },
30
+ localize('ktCheckboxDisableForeground', 'Checkbox Disable Foreground color.'),
31
+ );
32
+ export const ktCheckboxDisableBackground = registerColor(
33
+ 'kt.checkbox.disableBackground',
34
+ { dark: '#5F656B40', light: '#5F656B40', hcDark: null, hcLight: null },
35
+ localize('ktCheckboxDisableBackground', 'Checkbox Disable Background color.'),
36
+ );
@@ -0,0 +1,71 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+
5
+ // https://github.com/microsoft/vscode/blob/master/extensions/git/package.json#L1696
6
+ // 将 vscode git 插件的颜色变量复制一份,应对不存在 git 插件的场景,比如 web scm/文件树/变更树等场景
7
+ export const addedResourceDecorationForeground = registerColor(
8
+ 'kt.decoration.addedResourceForeground',
9
+ {
10
+ light: '#587c0c',
11
+ dark: '#81b88b',
12
+ hcDark: '#1b5225',
13
+ hcLight: null,
14
+ },
15
+ localize('addedResourceDecorationForeground', 'Color for added resources.'),
16
+ );
17
+
18
+ export const modifiedResourceForeground = registerColor(
19
+ 'kt.decoration.modifiedResourceForeground',
20
+ {
21
+ light: '#895503',
22
+ dark: '#E2C08D',
23
+ hcDark: '#E2C08D',
24
+ hcLight: null,
25
+ },
26
+ localize('modifiedResourceForeground', 'Color for modified resources.'),
27
+ );
28
+
29
+ export const deletedResourceForeground = registerColor(
30
+ 'kt.decoration.deletedResourceForeground',
31
+ {
32
+ light: '#ad0707',
33
+ dark: '#c74e39',
34
+ hcDark: '#c74e39',
35
+ hcLight: null,
36
+ },
37
+ localize('deletedResourceForeground', 'Color for deleted resources.'),
38
+ );
39
+
40
+ export const untrackedResourceForeground = registerColor(
41
+ 'kt.decoration.untrackedResourceForeground',
42
+ {
43
+ light: '#007100',
44
+ dark: '#73C991',
45
+ hcDark: '#73C991',
46
+ hcLight: null,
47
+ },
48
+ localize('untrackedResourceForeground', 'Color for untracked resources.'),
49
+ );
50
+
51
+ export const ignoredResourceForeground = registerColor(
52
+ 'kt.decoration.ignoredResourceForeground',
53
+ {
54
+ light: '#8E8E90',
55
+ dark: '#8C8C8C',
56
+ hcDark: '#A7A8A9',
57
+ hcLight: null,
58
+ },
59
+ localize('ignoredResourceForeground', 'Color for ignored resources.'),
60
+ );
61
+
62
+ export const conflictingResourceForeground = registerColor(
63
+ 'kt.decoration.conflictingResourceForeground',
64
+ {
65
+ light: '#6c6cc4',
66
+ dark: '#6c6cc4',
67
+ hcDark: '#6c6cc4',
68
+ hcLight: null,
69
+ },
70
+ localize('conflictingResourceForeground', 'Color for resources with conflicts.'),
71
+ );
@@ -0,0 +1,27 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import { foreground } from '../base';
5
+ import { TAB_BORDER } from '../tab';
6
+
7
+ export const ktEditorBreadcrumbBorderDown = registerColor(
8
+ 'kt.editorBreadcrumb.borderDown',
9
+ {
10
+ dark: '#2C3033',
11
+ light: '#F2F2F2',
12
+ hcDark: TAB_BORDER,
13
+ hcLight: TAB_BORDER,
14
+ },
15
+ localize('kt.editorBreadcrumb.borderDown', "editor Breadcrumb's bottom border color."),
16
+ );
17
+
18
+ export const ktDirtyDotForeground = registerColor(
19
+ 'kt.dirtyDot.foreground',
20
+ {
21
+ dark: '#868C91',
22
+ light: '#999999',
23
+ hcDark: foreground,
24
+ hcLight: foreground,
25
+ },
26
+ localize('kt.dirtyDot.foreground', 'color for dirty mark.'),
27
+ );
@@ -0,0 +1,9 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+
5
+ export const ktStatusBarExtensionDebugginBackground = registerColor(
6
+ 'kt.statusBar.extensionDebuggingBackground',
7
+ { dark: '#CC6633', light: '#CC6633', hcDark: '#CC6633', hcLight: null },
8
+ localize('Background of StatusBar while extension is debugging.'),
9
+ );
@@ -0,0 +1,30 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor, transparent } from '../../utils';
4
+ import { foreground } from '../base';
5
+
6
+ export const ktIconForeground = registerColor(
7
+ 'kt.icon.foreground',
8
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
9
+ localize('ktIconForeground', 'Icon Foreground color.'),
10
+ );
11
+ export const ktIconHoverForeground = registerColor(
12
+ 'kt.icon.hoverForeground',
13
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
14
+ localize('ktIconHoverForeground', 'Icon Hover Foreground color.'),
15
+ );
16
+ export const ktIconHoverBackground = registerColor(
17
+ 'kt.icon.hoverBackground',
18
+ { dark: '#5a5d5e4f', light: '#b8b8b84f', hcDark: null, hcLight: null },
19
+ localize('Icon Hover Background color.'),
20
+ );
21
+ export const ktIconClickHoverForeground = registerColor(
22
+ 'kt.icon.clickForeground',
23
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
24
+ localize('Icon Click Foreground color.'),
25
+ );
26
+ export const ktIconDisableForeground = registerColor(
27
+ 'kt.icon.disableForeground',
28
+ { dark: transparent(ktIconForeground, 0.5), light: transparent(ktIconForeground, 0.5), hcDark: null, hcLight: null },
29
+ localize('ktIconDisableForeground', 'Icon Disabled Foreground color.'),
30
+ );
@@ -0,0 +1,26 @@
1
+ // base
2
+ export * from './base';
3
+
4
+ export * from './actionbar';
5
+ export * from './activity-bar';
6
+ export * from './badge';
7
+ export * from './button';
8
+ export * from './checkbox';
9
+ export * from './decoration';
10
+ export * from './editor';
11
+ export * from './icon';
12
+ export * from './input';
13
+ export * from './menu';
14
+ export * from './modal';
15
+ export * from './notification';
16
+ export * from './panel';
17
+ export * from './select';
18
+ export * from './settings';
19
+ export * from './statusbar';
20
+ export * from './tab';
21
+ export * from './tooltip';
22
+ export * from './tree';
23
+ export * from './popover';
24
+ export * from './extension';
25
+
26
+ // WARNING: 自定义颜色请放到独立文件中作为 namespace,不要继续往这个文件添加了