@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,48 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import { contrastBorder, selectionBackground } from '../base';
5
+ import { inputBorder, inputActiveOptionBorder } from '../input';
6
+
7
+ export const ktInputBorder = registerColor(
8
+ 'kt.input.border',
9
+ { dark: inputBorder, light: inputBorder, hcDark: contrastBorder, hcLight: contrastBorder },
10
+ localize('ktInputBoxBorder', 'Input box border.'),
11
+ );
12
+ export const ktInputDisableForeground = registerColor(
13
+ 'kt.input.disableForeground',
14
+ { dark: '#5F656B', light: '#5F656B', hcDark: null, hcLight: null },
15
+ localize('ktInputDisableForeground', 'Input box disabled foreground color.'),
16
+ );
17
+ export const ktInputDisableBackground = registerColor(
18
+ 'kt.input.disableBackground',
19
+ { dark: '#5F656B40', light: '#5F656B40', hcDark: null, hcLight: null },
20
+ localize('ktInputDisableBackground', 'Input box disabled background color.'),
21
+ );
22
+ export const ktInputSelectionBackground = registerColor(
23
+ 'kt.input.selectionBackground',
24
+ { dark: selectionBackground, light: selectionBackground, hcDark: selectionBackground, hcLight: selectionBackground },
25
+ localize('Input Selection background color.'),
26
+ );
27
+
28
+ export const ktInputValidationWarningTextForeground = registerColor(
29
+ 'kt.inputValidation.warningTextForeground',
30
+ { dark: '#D77915', light: '#D77915', hcDark: null, hcLight: null },
31
+ localize('Input Validation warning Text foreground color.'),
32
+ );
33
+ export const ktInputValidationErrorTextForeground = registerColor(
34
+ 'kt.inputValidation.errorTextForeground',
35
+ { dark: '#D21F28', light: '#D21F28', hcDark: null, hcLight: null },
36
+ localize('Input Validation Error Text foreground color.'),
37
+ );
38
+
39
+ export const ktInputOptionHoverBorder = registerColor(
40
+ 'kt.inputOption.hoverBorder',
41
+ {
42
+ dark: inputActiveOptionBorder,
43
+ light: inputActiveOptionBorder,
44
+ hcDark: contrastBorder,
45
+ hcLight: contrastBorder,
46
+ },
47
+ localize('inputOptionHoverBorder', 'Border color of hovering options in input fields.'),
48
+ );
@@ -0,0 +1,61 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { transparent, registerColor } from '../../utils';
4
+ import { ACTIVITY_BAR_BORDER } from '../activity-bar';
5
+ import { widgetShadow, foreground, descriptionForeground } from '../base';
6
+ import { editorBackground } from '../editor';
7
+ import { menuForeground } from '../menu';
8
+
9
+ /* --- menu --- */
10
+ export const menuDescriptionForeground = registerColor(
11
+ 'kt.menu.descriptionForeground',
12
+ {
13
+ dark: descriptionForeground,
14
+ light: descriptionForeground,
15
+ hcDark: descriptionForeground,
16
+ hcLight: descriptionForeground,
17
+ },
18
+ localize('menuDescriptionForeground', 'Description foreground color of menu items.'),
19
+ );
20
+
21
+ export const menuDisableForeground = registerColor(
22
+ 'kt.menu.disableForeground',
23
+ {
24
+ dark: transparent(menuForeground, 0.3),
25
+ light: transparent(menuForeground, 0.3),
26
+ hcDark: transparent(menuForeground, 0.3),
27
+ hcLight: transparent(menuForeground, 0.3),
28
+ },
29
+ localize('menuDisableForeground', 'Foreground color of disabled menu items.'),
30
+ );
31
+
32
+ export const menuShadow = registerColor(
33
+ 'kt.menu.shadow',
34
+ { dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow },
35
+ localize('menuShadow', 'Box shadow color of menu.'),
36
+ );
37
+
38
+ /* --- menubar --- */
39
+ export const menubarForeground = registerColor(
40
+ 'kt.menubar.foreground',
41
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
42
+ localize('menubarForeground', 'Foreground color of menu bar.'),
43
+ );
44
+
45
+ export const menubarBackground = registerColor(
46
+ 'kt.menubar.background',
47
+ { dark: editorBackground, light: editorBackground, hcDark: editorBackground, hcLight: editorBackground },
48
+ localize('menubarBackground', 'Background color of menu bar.'),
49
+ );
50
+
51
+ export const menubarSeparatorBackground = registerColor(
52
+ 'kt.menubar.separatorBackground',
53
+ { dark: null, light: null, hcDark: null, hcLight: null },
54
+ localize('menubarSeparatorBackground', 'Separator background of menu bar.'),
55
+ );
56
+
57
+ export const menubarBorder = registerColor(
58
+ 'kt.menubar.border',
59
+ { dark: ACTIVITY_BAR_BORDER, light: ACTIVITY_BAR_BORDER, hcDark: ACTIVITY_BAR_BORDER, hcLight: ACTIVITY_BAR_BORDER },
60
+ localize('menubarBorder', 'Border color of menu bar.'),
61
+ );
@@ -0,0 +1,57 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import {
5
+ NOTIFICATIONS_BACKGROUND,
6
+ NOTIFICATIONS_ERROR_ICON_FOREGROUND,
7
+ NOTIFICATIONS_FOREGROUND,
8
+ NOTIFICATIONS_INFO_ICON_FOREGROUND,
9
+ NOTIFICATIONS_WARNING_ICON_FOREGROUND,
10
+ } from '../notification';
11
+
12
+ export const ktModalForeground = registerColor(
13
+ 'kt.modal.foreground',
14
+ { light: NOTIFICATIONS_FOREGROUND, dark: NOTIFICATIONS_FOREGROUND, hcDark: null, hcLight: null },
15
+ localize('ktModalForeground', 'Modal Foreground color.'),
16
+ );
17
+ export const ktModalBackground = registerColor(
18
+ 'kt.modal.background',
19
+ { light: NOTIFICATIONS_BACKGROUND, dark: NOTIFICATIONS_BACKGROUND, hcDark: null, hcLight: null },
20
+ localize('ktModalBackground', 'Modal Background color.'),
21
+ );
22
+
23
+ export const ktModalSeparatorBackground = registerColor(
24
+ 'kt.modal.separatorBackground',
25
+ { light: '#2C3033', dark: '#2C3033', hcDark: null, hcLight: null },
26
+ localize('ktModalSeparatorBackground', 'Modal Separator Background color'),
27
+ );
28
+ export const ktModalErrorIconForeground = registerColor(
29
+ 'kt.modalErrorIcon.foreground',
30
+ {
31
+ light: NOTIFICATIONS_ERROR_ICON_FOREGROUND,
32
+ dark: NOTIFICATIONS_ERROR_ICON_FOREGROUND,
33
+ hcDark: null,
34
+ hcLight: null,
35
+ },
36
+ localize('ktModalErrorIconForeground', 'Modal Error Icon Foreground Color.'),
37
+ );
38
+ export const ktModalWarningIconForeground = registerColor(
39
+ 'kt.modalWarningIcon.foreground',
40
+ {
41
+ light: NOTIFICATIONS_WARNING_ICON_FOREGROUND,
42
+ dark: NOTIFICATIONS_WARNING_ICON_FOREGROUND,
43
+ hcDark: null,
44
+ hcLight: null,
45
+ },
46
+ localize('ktModalWarningIconForeground', 'Modal Warning Icon Foreground Color.'),
47
+ );
48
+ export const ktModalInfoIconForeground = registerColor(
49
+ 'kt.modalInfoIcon.foreground',
50
+ { light: NOTIFICATIONS_INFO_ICON_FOREGROUND, dark: NOTIFICATIONS_INFO_ICON_FOREGROUND, hcDark: null, hcLight: null },
51
+ localize('ktModalInfoIconForeground', 'Modal Info Icon Foreground Color.'),
52
+ );
53
+ export const ktModalSuccessIconForeground = registerColor(
54
+ 'kt.modalSuccessIcon.foreground',
55
+ { light: '#64B436', dark: '#64B436', hcDark: null, hcLight: null },
56
+ localize('ktModalSuccessIconForeground', 'Modal Success Icon Foreground Color.'),
57
+ );
@@ -0,0 +1,16 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import { NOTIFICATIONS_FOREGROUND } from '../notification';
5
+
6
+ /* --- notification --- */
7
+ export const ktNotificationsCloseIconForeground = registerColor(
8
+ 'kt.notificationsCloseIcon.foreground',
9
+ {
10
+ dark: NOTIFICATIONS_FOREGROUND,
11
+ light: NOTIFICATIONS_FOREGROUND,
12
+ hcDark: NOTIFICATIONS_FOREGROUND,
13
+ hcLight: NOTIFICATIONS_FOREGROUND,
14
+ },
15
+ localize('notificationsCloseIconForeground', 'Notifications close icon foreground.'),
16
+ );
@@ -0,0 +1,112 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor, transparent, lighten, darken } from '../../utils';
4
+ import { ACTIVITY_BAR_BACKGROUND, ACTIVITY_BAR_BORDER } from '../activity-bar';
5
+ import { foreground } from '../base';
6
+ import { EDITOR_GROUP_HEADER_TABS_BACKGROUND } from '../editor';
7
+ import { PANEL_BACKGROUND, PANEL_INACTIVE_TITLE_FOREGROUND } from '../panel';
8
+ import { TAB_INACTIVE_BACKGROUND } from '../tab';
9
+ import { textLinkActiveForeground } from '../text';
10
+
11
+ /* --- panel --- */
12
+ export const ktPanelTitleBackground = registerColor(
13
+ 'kt.panelTitle.background',
14
+ {
15
+ dark: EDITOR_GROUP_HEADER_TABS_BACKGROUND,
16
+ light: EDITOR_GROUP_HEADER_TABS_BACKGROUND,
17
+ hcDark: EDITOR_GROUP_HEADER_TABS_BACKGROUND,
18
+ hcLight: EDITOR_GROUP_HEADER_TABS_BACKGROUND,
19
+ },
20
+ localize(
21
+ 'panelTitle.background',
22
+ 'Panel title background color. Panels are shown below the editor area and contain views like output and integrated terminal.',
23
+ ),
24
+ );
25
+
26
+ export const ktPanelTabInactiveForeground = registerColor(
27
+ 'kt.panelTab.inactiveForeground',
28
+ {
29
+ dark: transparent(foreground, 0.8),
30
+ light: transparent(foreground, 0.8),
31
+ hcDark: transparent(foreground, 0.8),
32
+ hcLight: transparent(foreground, 0.8),
33
+ },
34
+ localize('panelTab.inactiveForeground', 'Panel tab inactive forground color.'),
35
+ );
36
+
37
+ export const ktPanelTabActiveForeground = registerColor(
38
+ 'kt.panelTab.activeForeground',
39
+ {
40
+ dark: textLinkActiveForeground,
41
+ light: textLinkActiveForeground,
42
+ hcDark: textLinkActiveForeground,
43
+ hcLight: textLinkActiveForeground,
44
+ },
45
+ localize('panelTab.activeForeground', 'Panel tab active forground color.'),
46
+ );
47
+
48
+ export const ktPanelTabInactiveBackground = registerColor(
49
+ 'kt.panelTab.inactiveBackground',
50
+ {
51
+ dark: TAB_INACTIVE_BACKGROUND,
52
+ light: TAB_INACTIVE_BACKGROUND,
53
+ hcDark: TAB_INACTIVE_BACKGROUND,
54
+ hcLight: TAB_INACTIVE_BACKGROUND,
55
+ },
56
+ localize('panelTab.inactiveBackground', 'Panel tab background color.'),
57
+ );
58
+
59
+ export const ktPanelTabActiveBackground = registerColor(
60
+ 'kt.panelTab.activeBackground',
61
+ {
62
+ dark: PANEL_BACKGROUND,
63
+ light: PANEL_BACKGROUND,
64
+ hcDark: PANEL_BACKGROUND,
65
+ hcLight: PANEL_BACKGROUND,
66
+ },
67
+ localize('panelTab.activeBackground', 'Panel tab active background color.'),
68
+ );
69
+
70
+ export const ktPanelTabActionIconForeground = registerColor(
71
+ 'kt.panelTabActionIcon.foreground',
72
+ {
73
+ dark: foreground,
74
+ light: foreground,
75
+ hcDark: foreground,
76
+ hcLight: foreground,
77
+ },
78
+ localize('panelTabActionIcon.foreground', 'Panel tab close icon color.'),
79
+ );
80
+
81
+ export const ktPanelTabActiveBorder = registerColor(
82
+ 'kt.panelTab.activeBorder',
83
+ {
84
+ dark: lighten(ACTIVITY_BAR_BACKGROUND, 0.2),
85
+ light: lighten(ACTIVITY_BAR_BACKGROUND, 0.2),
86
+ hcDark: lighten(ACTIVITY_BAR_BACKGROUND, 0.2),
87
+ hcLight: lighten(ACTIVITY_BAR_BACKGROUND, 0.2),
88
+ },
89
+ localize('panelTab.border', 'Panel tab border color.'),
90
+ );
91
+
92
+ export const ktPanelTabBorder = registerColor(
93
+ 'kt.panelTab.border',
94
+ {
95
+ dark: darken(ACTIVITY_BAR_BORDER, 0.1),
96
+ light: darken(ACTIVITY_BAR_BORDER, 0.1),
97
+ hcDark: darken(ACTIVITY_BAR_BORDER, 0.1),
98
+ hcLight: darken(ACTIVITY_BAR_BORDER, 0.1),
99
+ },
100
+ localize('panelTab.border', 'Panel tab border color.'),
101
+ );
102
+
103
+ export const ktPanelSecondaryForeground = registerColor(
104
+ 'kt.panel.secondaryForeground',
105
+ {
106
+ dark: lighten(PANEL_INACTIVE_TITLE_FOREGROUND, 0.2),
107
+ light: lighten(PANEL_INACTIVE_TITLE_FOREGROUND, 0.2),
108
+ hcDark: lighten(PANEL_INACTIVE_TITLE_FOREGROUND, 0.2),
109
+ hcLight: lighten(PANEL_INACTIVE_TITLE_FOREGROUND, 0.2),
110
+ },
111
+ localize('panel.secondaryForeground', 'Panel secondary foreground color.'),
112
+ );
@@ -0,0 +1,28 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import { NOTIFICATIONS_FOREGROUND, NOTIFICATIONS_BACKGROUND } from '../notification';
5
+
6
+ export const ktPopoverForground = registerColor(
7
+ 'kt.popover.foreground',
8
+ { dark: '#D7DBDE', light: '#4D4D4D', hcDark: NOTIFICATIONS_FOREGROUND, hcLight: NOTIFICATIONS_FOREGROUND },
9
+ localize('Popover foreground color. Popover when hover a icon or link to show some informations'),
10
+ );
11
+
12
+ export const ktPopoverBackground = registerColor(
13
+ 'kt.popover.background',
14
+ { dark: '#35393D', light: '#FFFFFF', hcDark: NOTIFICATIONS_BACKGROUND, hcLight: NOTIFICATIONS_BACKGROUND },
15
+ localize('Popover background color. Popover when hover a icon or link to show some informations'),
16
+ );
17
+
18
+ export const ktPopoverBorder = registerColor(
19
+ 'kt.popover.border',
20
+ { dark: '#2c3033', light: '#E0E0E0', hcDark: NOTIFICATIONS_BACKGROUND, hcLight: NOTIFICATIONS_BACKGROUND },
21
+ localize('Popover border color.'),
22
+ );
23
+
24
+ export const ktPopoverProminentBackground = registerColor(
25
+ 'kt.popover.prominentBackground',
26
+ { dark: '#2C3033', light: '#F2F2F2', hcDark: NOTIFICATIONS_BACKGROUND, hcLight: NOTIFICATIONS_BACKGROUND },
27
+ localize('Popover prominent background color.'),
28
+ );
@@ -0,0 +1,155 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { darken, lighten, registerColor } from '../../utils';
4
+ import { selectBackground, selectBorder, selectForeground } from '../dropdown';
5
+ import {
6
+ inputForeground,
7
+ inputBackground,
8
+ inputPlaceholderForeground,
9
+ inputActiveOptionBorder,
10
+ inputActiveOptionBackground,
11
+ } from '../input';
12
+ import {
13
+ listActiveSelectionBackground,
14
+ listActiveSelectionForeground,
15
+ listErrorForeground,
16
+ listHoverBackground,
17
+ listInactiveSelectionBackground,
18
+ listInactiveSelectionForeground,
19
+ listWarningForeground,
20
+ } from '../list-tree';
21
+ import { settingsSelectBorder } from '../settings';
22
+
23
+ export const ktSelectForeground = registerColor(
24
+ 'kt.select.foreground',
25
+ { dark: inputForeground, light: inputForeground, hcDark: inputForeground, hcLight: inputForeground },
26
+ localize('ktSelectForeground', 'Select Foreground color.'),
27
+ );
28
+ export const ktSelectBackground = registerColor(
29
+ 'kt.select.background',
30
+ { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground },
31
+ localize('ktSelectBackground', 'Select Background color.'),
32
+ );
33
+ export const ktSelectBorder = registerColor(
34
+ 'kt.select.border',
35
+ { dark: settingsSelectBorder, light: settingsSelectBorder, hcDark: selectBorder, hcLight: selectBorder },
36
+ localize('ktSelectBorder', 'Select Border color.'),
37
+ );
38
+ export const ktSelectPlaceholderForeground = registerColor(
39
+ 'kt.select.placeholderForeground',
40
+ {
41
+ dark: inputPlaceholderForeground,
42
+ light: inputPlaceholderForeground,
43
+ hcDark: inputPlaceholderForeground,
44
+ hcLight: inputPlaceholderForeground,
45
+ },
46
+ localize('ktSelectPlaceholder', 'Select Placeholder Foreground color.'),
47
+ );
48
+ export const ktSelectDisableBackground = registerColor(
49
+ 'kt.select.disableBackground',
50
+ {
51
+ dark: listInactiveSelectionBackground,
52
+ light: listInactiveSelectionBackground,
53
+ hcDark: listInactiveSelectionBackground,
54
+ hcLight: listInactiveSelectionBackground,
55
+ },
56
+ localize('ktSelectDisableBackground', 'Select Disable Background color.'),
57
+ );
58
+ export const ktSelectDisableForeground = registerColor(
59
+ 'kt.select.disableForeground',
60
+ {
61
+ dark: listInactiveSelectionForeground,
62
+ light: listInactiveSelectionForeground,
63
+ hcDark: listInactiveSelectionForeground,
64
+ hcLight: listInactiveSelectionForeground,
65
+ },
66
+ localize('ktSelectDisableForeground', 'Select Disable Foreground color.'),
67
+ );
68
+ export const ktSelectWarningForeground = registerColor(
69
+ 'kt.select.warningForeground',
70
+ {
71
+ dark: listWarningForeground,
72
+ light: listWarningForeground,
73
+ hcDark: listWarningForeground,
74
+ hcLight: listWarningForeground,
75
+ },
76
+ localize('ktSelectWarningForeground', 'Select Warning Foreground.'),
77
+ );
78
+ export const ktSelectErrorForeground = registerColor(
79
+ 'kt.select.warningForeground',
80
+ { dark: listErrorForeground, light: listErrorForeground, hcDark: listErrorForeground, hcLight: listErrorForeground },
81
+ localize('ktSelectDisableForeground', 'Select Disable Foreground color.'),
82
+ );
83
+ export const ktSelectWarningColor = registerColor(
84
+ 'kt.select.warningColor',
85
+ { dark: '#D77915', light: '#D77915', hcDark: null, hcLight: null },
86
+ localize('ktSelectWarningColor', 'Select Warning Color.'),
87
+ );
88
+
89
+ export const ktSelectOptionActiveBackground = registerColor(
90
+ 'selectOption.activeBackground',
91
+ {
92
+ dark: inputActiveOptionBackground,
93
+ light: inputActiveOptionBackground,
94
+ hcDark: inputActiveOptionBackground,
95
+ hcLight: inputActiveOptionBackground,
96
+ },
97
+ localize('ktSelectOptionActiveBackground', 'Select Option Active Background color.'),
98
+ );
99
+ export const ktSelectOptionActiveBorder = registerColor(
100
+ 'kt.selectOption.activeBorder',
101
+ {
102
+ dark: inputActiveOptionBorder,
103
+ light: inputActiveOptionBorder,
104
+ hcDark: inputActiveOptionBorder,
105
+ hcLight: inputActiveOptionBorder,
106
+ },
107
+ localize('ktSelectOptionActiveBorder', 'Select Option Active Border color.'),
108
+ );
109
+
110
+ /* select dropdown */
111
+ export const ktSelectDropdownForeground = registerColor(
112
+ 'kt.selectDropdown.foreground',
113
+ { dark: selectForeground, light: selectForeground, hcDark: selectForeground, hcLight: selectForeground },
114
+ localize('ktSelectDropdownForeground', 'Select Dropdown Foreground color.'),
115
+ );
116
+ export const ktSelectDropdownBackground = registerColor(
117
+ 'kt.selectDropdown.background',
118
+ { dark: selectBackground, light: selectBackground, hcDark: selectBackground, hcLight: selectBackground },
119
+ localize('ktSelectDropdownBackground', 'Select Dropdown Background color.'),
120
+ );
121
+ export const ktSelectDropdownHoverBackground = registerColor(
122
+ 'kt.selectDropdown.hoverBackground',
123
+ { dark: listHoverBackground, light: listHoverBackground, hcDark: listHoverBackground, hcLight: listHoverBackground },
124
+ localize('ktSelectDropdownHoverBackground', 'Select Dropdown Hover Background color.'),
125
+ );
126
+ export const ktSelectDropdownSelectionBackground = registerColor(
127
+ 'kt.selectDropdown.selectionBackground',
128
+ {
129
+ dark: listActiveSelectionBackground,
130
+ light: listActiveSelectionBackground,
131
+ hcDark: listActiveSelectionBackground,
132
+ hcLight: listActiveSelectionBackground,
133
+ },
134
+ localize('ktSelectDropdownSelectionBackground', 'Select Dropdown Selection Background color.'),
135
+ );
136
+ export const ktSelectDropdownSelectionForeground = registerColor(
137
+ 'kt.selectDropdown.selectionForeground',
138
+ {
139
+ dark: listActiveSelectionForeground,
140
+ light: listActiveSelectionForeground,
141
+ hcDark: listActiveSelectionForeground,
142
+ hcLight: listActiveSelectionForeground,
143
+ },
144
+ localize('ktSelectDropdownSelectionForeground', 'Select Dropdown Selection Foreground color.'),
145
+ );
146
+ export const ktSelectDropdownTeamForeground = registerColor(
147
+ 'kt.selectDropdown.teamForeground',
148
+ {
149
+ dark: darken(ktSelectDropdownForeground, 0.2),
150
+ light: lighten(ktSelectDropdownForeground, 0.2),
151
+ hcDark: null,
152
+ hcLight: null,
153
+ },
154
+ localize('ktSelectDropdownSelectionBackground', 'Select Dropdown Selection Background color.'),
155
+ );
@@ -0,0 +1,32 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import { PANEL_ACTIVE_TITLE_BORDER, PANEL_ACTIVE_TITLE_FOREGROUND } from '../panel';
5
+
6
+ export const settingTabActiveBorder = registerColor(
7
+ 'kt.settings.tabActiveBorder',
8
+ {
9
+ dark: PANEL_ACTIVE_TITLE_BORDER,
10
+ light: PANEL_ACTIVE_TITLE_BORDER,
11
+ hcDark: PANEL_ACTIVE_TITLE_BORDER,
12
+ hcLight: PANEL_ACTIVE_TITLE_BORDER,
13
+ },
14
+ localize(
15
+ 'settingsTabActiveBorder',
16
+ 'Border on the bottom of an active tab in settings. There can be multiple preference scopes in settings page.',
17
+ ),
18
+ );
19
+
20
+ export const settingTabActiveForeground = registerColor(
21
+ 'kt.settings.tabActiveForeground',
22
+ {
23
+ dark: PANEL_ACTIVE_TITLE_FOREGROUND,
24
+ light: PANEL_ACTIVE_TITLE_FOREGROUND,
25
+ hcDark: PANEL_ACTIVE_TITLE_FOREGROUND,
26
+ hcLight: PANEL_ACTIVE_TITLE_FOREGROUND,
27
+ },
28
+ localize(
29
+ 'settingsTabActiveForeground',
30
+ 'Active tab foreground color in an active group in settings. There can be multiple preference scopes in settings page.',
31
+ ),
32
+ );
@@ -0,0 +1,16 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+
5
+ // 断网是状态栏用的颜色
6
+ // 没有很好的 backup token,先写死这个色值
7
+ export const ktStatusBarOfflineBackground = registerColor(
8
+ 'kt.statusbar.offline.background',
9
+ {
10
+ dark: '#D21F28',
11
+ light: '#D21F28',
12
+ hcDark: '#D21F28',
13
+ hcLight: '#D21F28',
14
+ },
15
+ localize('statusBarOfflineBackground', 'StatusBar background color when app is offline'),
16
+ );
@@ -0,0 +1,31 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { transparent, registerColor } from '../../utils';
4
+ import { foreground } from '../base';
5
+ import { hcBorderColor } from '../basic-color';
6
+
7
+ export const ktTabBarBorderDown = registerColor(
8
+ 'kt.tab.borderDown',
9
+ { dark: '#5F656B40', light: '#5F656B40', hcDark: null, hcLight: null },
10
+ localize('Activity Bar Border bottom color.'),
11
+ );
12
+ export const ktTabActiveForeground = registerColor(
13
+ 'kt.tab.activeForeground',
14
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
15
+ localize('Tab Active foreground color.'),
16
+ );
17
+ export const ktTabInactiveForeground = registerColor(
18
+ 'kt.tab.inactiveForeground',
19
+ {
20
+ dark: transparent(foreground, 0.8),
21
+ light: transparent(foreground, 0.8),
22
+ hcDark: transparent(foreground, 0.8),
23
+ hcLight: transparent(foreground, 0.8),
24
+ },
25
+ localize('Tab inactive foreground color.'),
26
+ );
27
+ export const ktTabActiveBorder = registerColor(
28
+ 'kt.tab.activeBorder',
29
+ { dark: '#167cDB', light: '#167cDB', hcDark: hcBorderColor, hcLight: hcBorderColor },
30
+ localize('Tab Active border color.'),
31
+ );
@@ -0,0 +1,55 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import { NOTIFICATIONS_FOREGROUND, NOTIFICATIONS_BACKGROUND } from '../notification';
5
+
6
+ /* --- kt tooltip --- */
7
+ export const ktTooltipForeground = registerColor(
8
+ 'kt.tooltip.foreground',
9
+ {
10
+ dark: '#D7DBDE',
11
+ light: '#4D4D4D',
12
+ hcDark: NOTIFICATIONS_FOREGROUND,
13
+ hcLight: NOTIFICATIONS_FOREGROUND,
14
+ },
15
+ localize(
16
+ 'tooltipForeground',
17
+ 'Tooltip foreground color. Tooltips when hover a icon or link to show some informations',
18
+ ),
19
+ );
20
+
21
+ export const ktTooltipBackground = registerColor(
22
+ 'kt.tooltip.background',
23
+ {
24
+ dark: '#35393D',
25
+ light: '#FFFFFF',
26
+ hcDark: NOTIFICATIONS_BACKGROUND,
27
+ hcLight: NOTIFICATIONS_BACKGROUND,
28
+ },
29
+ localize(
30
+ 'tooltipBackground',
31
+ 'Tooltip background color. Tooltips when hover a icon or link to show some informations',
32
+ ),
33
+ );
34
+
35
+ export const ktEditorActionToolTipBackground = registerColor(
36
+ 'kt.editorActionToolTip.background',
37
+ {
38
+ dark: ktTooltipBackground,
39
+ light: ktTooltipBackground,
40
+ hcDark: ktTooltipBackground,
41
+ hcLight: ktTooltipBackground,
42
+ },
43
+ localize('editorActionTooltipBackground', 'Tooltip background color for Editor Actions Tip'),
44
+ );
45
+
46
+ export const ktEditorActionToolTipForeground = registerColor(
47
+ 'kt.editorActionToolTip.foreground',
48
+ {
49
+ dark: ktTooltipForeground,
50
+ light: ktTooltipForeground,
51
+ hcDark: ktTooltipForeground,
52
+ hcLight: ktTooltipForeground,
53
+ },
54
+ localize('editorActionTooltipForeground', 'Tooltip Foreground color for Editor Actions Tip'),
55
+ );