@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,99 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { RGBA, Color } from '../color';
4
+ import { registerColor, transparent } from '../utils';
5
+
6
+ import { editorWarningForeground, editorWarningBorder } from './editor';
7
+ import {
8
+ scrollbarSliderActiveBackground,
9
+ scrollbarSliderBackground,
10
+ scrollbarSliderHoverBackground,
11
+ } from './scrollbar';
12
+
13
+ export const minimapFindMatch = registerColor(
14
+ 'minimap.findMatchHighlight',
15
+ { light: '#d18616', dark: '#d18616', hcDark: '#AB5A00', hcLight: '#0F4A85' },
16
+ localize('minimapFindMatchHighlight', 'Minimap marker color for find matches.'),
17
+ true,
18
+ );
19
+ export const minimapSelectionOccurrenceHighlight = registerColor(
20
+ 'minimap.selectionOccurrenceHighlight',
21
+ { light: '#c9c9c9', dark: '#676767', hcDark: '#ffffff', hcLight: '#0F4A85' },
22
+ localize('minimapSelectionOccurrenceHighlight', 'Minimap marker color for repeating editor selections.'),
23
+ true,
24
+ );
25
+ export const minimapSelection = registerColor(
26
+ 'minimap.selectionHighlight',
27
+ { light: '#ADD6FF', dark: '#264F78', hcDark: '#ffffff', hcLight: '#0F4A85' },
28
+ localize('minimapSelectionHighlight', 'Minimap marker color for the editor selection.'),
29
+ true,
30
+ );
31
+ export const minimapError = registerColor(
32
+ 'minimap.errorHighlight',
33
+ {
34
+ dark: new Color(new RGBA(255, 18, 18, 0.7)),
35
+ light: new Color(new RGBA(255, 18, 18, 0.7)),
36
+ hcDark: new Color(new RGBA(255, 50, 50, 1)),
37
+ hcLight: '#B5200D',
38
+ },
39
+ localize('minimapError', 'Minimap marker color for errors.'),
40
+ );
41
+ export const minimapWarning = registerColor(
42
+ 'minimap.warningHighlight',
43
+ {
44
+ dark: editorWarningForeground,
45
+ light: editorWarningForeground,
46
+ hcDark: editorWarningBorder,
47
+ hcLight: editorWarningBorder,
48
+ },
49
+ localize('overviewRuleWarning', 'Minimap marker color for warnings.'),
50
+ );
51
+ export const minimapBackground = registerColor(
52
+ 'minimap.background',
53
+ { dark: null, light: null, hcDark: null, hcLight: null },
54
+ localize('minimapBackground', 'Minimap background color.'),
55
+ );
56
+ export const minimapForegroundOpacity = registerColor(
57
+ 'minimap.foregroundOpacity',
58
+ {
59
+ dark: Color.fromHex('#000f'),
60
+ light: Color.fromHex('#000f'),
61
+ hcDark: Color.fromHex('#000f'),
62
+ hcLight: Color.fromHex('#000f'),
63
+ },
64
+ localize(
65
+ 'minimapForegroundOpacity',
66
+ 'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.',
67
+ ),
68
+ );
69
+
70
+ export const minimapSliderBackground = registerColor(
71
+ 'minimapSlider.background',
72
+ {
73
+ light: transparent(scrollbarSliderBackground, 0.5),
74
+ dark: transparent(scrollbarSliderBackground, 0.5),
75
+ hcDark: transparent(scrollbarSliderBackground, 0.5),
76
+ hcLight: transparent(scrollbarSliderBackground, 0.5),
77
+ },
78
+ localize('minimapSliderBackground', 'Minimap slider background color.'),
79
+ );
80
+ export const minimapSliderHoverBackground = registerColor(
81
+ 'minimapSlider.hoverBackground',
82
+ {
83
+ light: transparent(scrollbarSliderHoverBackground, 0.5),
84
+ dark: transparent(scrollbarSliderHoverBackground, 0.5),
85
+ hcDark: transparent(scrollbarSliderHoverBackground, 0.5),
86
+ hcLight: transparent(scrollbarSliderHoverBackground, 0.5),
87
+ },
88
+ localize('minimapSliderHoverBackground', 'Minimap slider background color when hovering.'),
89
+ );
90
+ export const minimapSliderActiveBackground = registerColor(
91
+ 'minimapSlider.activeBackground',
92
+ {
93
+ light: transparent(scrollbarSliderActiveBackground, 0.5),
94
+ dark: transparent(scrollbarSliderActiveBackground, 0.5),
95
+ hcDark: transparent(scrollbarSliderActiveBackground, 0.5),
96
+ hcLight: transparent(scrollbarSliderActiveBackground, 0.5),
97
+ },
98
+ localize('minimapSliderActiveBackground', 'Minimap slider background color when clicked on.'),
99
+ );
@@ -0,0 +1,169 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor, lighten, darken } from '../utils';
4
+
5
+ import { contrastBorder } from './base';
6
+ import {
7
+ editorWidgetBackground,
8
+ editorWidgetForeground,
9
+ editorErrorForeground,
10
+ editorWarningForeground,
11
+ editorInfoForeground,
12
+ } from './editor';
13
+ import { textLinkForeground } from './text';
14
+
15
+ // < --- Notifications --- >
16
+
17
+ export const NOTIFICATIONS_CENTER_BORDER = registerColor(
18
+ 'notificationCenter.border',
19
+ {
20
+ dark: null,
21
+ light: null,
22
+ hcDark: contrastBorder,
23
+ hcLight: contrastBorder,
24
+ },
25
+ localize(
26
+ 'notificationCenterBorder',
27
+ 'Notifications center border color. Notifications slide in from the bottom right of the window.',
28
+ ),
29
+ );
30
+
31
+ export const NOTIFICATIONS_TOAST_BORDER = registerColor(
32
+ 'notificationToast.border',
33
+ {
34
+ dark: null,
35
+ light: null,
36
+ hcDark: contrastBorder,
37
+ hcLight: contrastBorder,
38
+ },
39
+ localize(
40
+ 'notificationToastBorder',
41
+ 'Notification toast border color. Notifications slide in from the bottom right of the window.',
42
+ ),
43
+ );
44
+
45
+ export const NOTIFICATIONS_FOREGROUND = registerColor(
46
+ 'notifications.foreground',
47
+ {
48
+ dark: editorWidgetForeground,
49
+ light: editorWidgetForeground,
50
+ hcDark: editorWidgetForeground,
51
+ hcLight: editorWidgetForeground,
52
+ },
53
+ localize(
54
+ 'notificationsForeground',
55
+ 'Notifications foreground color. Notifications slide in from the bottom right of the window.',
56
+ ),
57
+ );
58
+
59
+ export const NOTIFICATIONS_BACKGROUND = registerColor(
60
+ 'notifications.background',
61
+ {
62
+ dark: editorWidgetBackground,
63
+ light: editorWidgetBackground,
64
+ hcDark: editorWidgetBackground,
65
+ hcLight: editorWidgetBackground,
66
+ },
67
+ localize(
68
+ 'notificationsBackground',
69
+ 'Notifications background color. Notifications slide in from the bottom right of the window.',
70
+ ),
71
+ );
72
+
73
+ export const NOTIFICATIONS_LINKS = registerColor(
74
+ 'notificationLink.foreground',
75
+ {
76
+ dark: textLinkForeground,
77
+ light: textLinkForeground,
78
+ hcDark: textLinkForeground,
79
+ hcLight: textLinkForeground,
80
+ },
81
+ localize(
82
+ 'notificationsLink',
83
+ 'Notification links foreground color. Notifications slide in from the bottom right of the window.',
84
+ ),
85
+ );
86
+
87
+ export const NOTIFICATIONS_CENTER_HEADER_FOREGROUND = registerColor(
88
+ 'notificationCenterHeader.foreground',
89
+ {
90
+ dark: null,
91
+ light: null,
92
+ hcDark: null,
93
+ hcLight: null,
94
+ },
95
+ localize(
96
+ 'notificationCenterHeaderForeground',
97
+ 'Notifications center header foreground color. Notifications slide in from the bottom right of the window.',
98
+ ),
99
+ );
100
+
101
+ export const NOTIFICATIONS_CENTER_HEADER_BACKGROUND = registerColor(
102
+ 'notificationCenterHeader.background',
103
+ {
104
+ dark: lighten(NOTIFICATIONS_BACKGROUND, 0.3),
105
+ light: darken(NOTIFICATIONS_BACKGROUND, 0.05),
106
+ hcDark: NOTIFICATIONS_BACKGROUND,
107
+ hcLight: NOTIFICATIONS_BACKGROUND,
108
+ },
109
+ localize(
110
+ 'notificationCenterHeaderBackground',
111
+ 'Notifications center header background color. Notifications slide in from the bottom right of the window.',
112
+ ),
113
+ );
114
+
115
+ export const NOTIFICATIONS_BORDER = registerColor(
116
+ 'notifications.border',
117
+ {
118
+ dark: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
119
+ light: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
120
+ hcDark: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
121
+ hcLight: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
122
+ },
123
+ localize(
124
+ 'notificationsBorder',
125
+ 'Notifications border color separating from other notifications in the notifications center. Notifications slide in from the bottom right of the window.',
126
+ ),
127
+ );
128
+
129
+ export const NOTIFICATIONS_ERROR_ICON_FOREGROUND = registerColor(
130
+ 'notificationsErrorIcon.foreground',
131
+ {
132
+ dark: editorErrorForeground,
133
+ light: editorErrorForeground,
134
+ hcDark: editorErrorForeground,
135
+ hcLight: editorErrorForeground,
136
+ },
137
+ localize(
138
+ 'notificationsErrorIconForeground',
139
+ 'The color used for the icon of error notifications. Notifications slide in from the bottom right of the window.',
140
+ ),
141
+ );
142
+
143
+ export const NOTIFICATIONS_WARNING_ICON_FOREGROUND = registerColor(
144
+ 'notificationsWarningIcon.foreground',
145
+ {
146
+ dark: editorWarningForeground,
147
+ light: editorWarningForeground,
148
+ hcDark: editorWarningForeground,
149
+ hcLight: editorWarningForeground,
150
+ },
151
+ localize(
152
+ 'notificationsWarningIconForeground',
153
+ 'The color used for the icon of warning notifications. Notifications slide in from the bottom right of the window.',
154
+ ),
155
+ );
156
+
157
+ export const NOTIFICATIONS_INFO_ICON_FOREGROUND = registerColor(
158
+ 'notificationsInfoIcon.foreground',
159
+ {
160
+ dark: editorInfoForeground,
161
+ light: editorInfoForeground,
162
+ hcDark: editorInfoForeground,
163
+ hcLight: editorInfoForeground,
164
+ },
165
+ localize(
166
+ 'notificationsInfoIconForeground',
167
+ 'The color used for the icon of info notifications. Notifications slide in from the bottom right of the window.',
168
+ ),
169
+ );
@@ -0,0 +1,177 @@
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 { editorBackground, editorForeground, EDITOR_DRAG_AND_DROP_BACKGROUND } from './editor';
8
+ import { textLinkActiveForeground } from './text';
9
+
10
+ // < --- Panels --- >
11
+ export const PANEL_BACKGROUND = registerColor(
12
+ 'panel.background',
13
+ {
14
+ dark: editorBackground,
15
+ light: editorBackground,
16
+ hcDark: editorBackground,
17
+ hcLight: editorBackground,
18
+ },
19
+ localize(
20
+ 'panelBackground',
21
+ 'Panel background color. Panels are shown below the editor area and contain views like output and integrated terminal.',
22
+ ),
23
+ );
24
+
25
+ export const PANEL_BORDER = registerColor(
26
+ 'panel.border',
27
+ {
28
+ dark: Color.fromHex('#808080').transparent(0.35),
29
+ light: Color.fromHex('#808080').transparent(0.35),
30
+ hcDark: contrastBorder,
31
+ hcLight: contrastBorder,
32
+ },
33
+ localize(
34
+ 'panelBorder',
35
+ 'Panel border color to separate the panel from the editor. Panels are shown below the editor area and contain views like output and integrated terminal.',
36
+ ),
37
+ );
38
+
39
+ export const PANEL_ACTIVE_TITLE_FOREGROUND = registerColor(
40
+ 'panelTitle.activeForeground',
41
+ {
42
+ dark: '#E7E7E7',
43
+ light: '#424242',
44
+ hcDark: Color.white,
45
+ hcLight: editorForeground,
46
+ },
47
+ localize(
48
+ 'panelActiveTitleForeground',
49
+ 'Title color for the active panel. Panels are shown below the editor area and contain views like output and integrated terminal.',
50
+ ),
51
+ );
52
+
53
+ export const PANEL_INACTIVE_TITLE_FOREGROUND = registerColor(
54
+ 'panelTitle.inactiveForeground',
55
+ {
56
+ dark: transparent(PANEL_ACTIVE_TITLE_FOREGROUND, 0.6),
57
+ light: transparent(PANEL_ACTIVE_TITLE_FOREGROUND, 0.75),
58
+ hcDark: Color.white,
59
+ hcLight: editorForeground,
60
+ },
61
+ localize(
62
+ 'panelInactiveTitleForeground',
63
+ 'Title color for the inactive panel. Panels are shown below the editor area and contain views like output and integrated terminal.',
64
+ ),
65
+ );
66
+
67
+ export const PANEL_ACTIVE_TITLE_BORDER = registerColor(
68
+ 'panelTitle.activeBorder',
69
+ {
70
+ dark: PANEL_ACTIVE_TITLE_FOREGROUND,
71
+ light: PANEL_ACTIVE_TITLE_FOREGROUND,
72
+ hcDark: contrastBorder,
73
+ hcLight: '#B5200D',
74
+ },
75
+ localize(
76
+ 'panelActiveTitleBorder',
77
+ 'Border color for the active panel title. Panels are shown below the editor area and contain views like output and integrated terminal.',
78
+ ),
79
+ );
80
+
81
+ export const PANEL_DRAG_AND_DROP_BACKGROUND = registerColor(
82
+ 'panel.dropBackground',
83
+ {
84
+ dark: Color.white.transparent(0.12),
85
+ light: Color.fromHex('#2677CB').transparent(0.18),
86
+ hcDark: Color.white.transparent(0.12),
87
+ hcLight: Color.fromHex('#2677CB').transparent(0.18),
88
+ },
89
+ localize(
90
+ 'panelDragAndDropBackground',
91
+ 'Drag and drop feedback color for the panel title items. The color should have transparency so that the panel entries can still shine through. Panels are shown below the editor area and contain views like output and integrated terminal.',
92
+ ),
93
+ );
94
+
95
+ export const PANEL_DRAG_AND_DROP_BORDER = registerColor(
96
+ 'panel.dropBorder',
97
+ {
98
+ dark: PANEL_ACTIVE_TITLE_FOREGROUND,
99
+ light: PANEL_ACTIVE_TITLE_FOREGROUND,
100
+ hcDark: PANEL_ACTIVE_TITLE_FOREGROUND,
101
+ hcLight: PANEL_ACTIVE_TITLE_FOREGROUND,
102
+ },
103
+ localize(
104
+ 'panelDragAndDropBorder',
105
+ 'Drag and drop feedback color for the panel titles. Panels are shown below the editor area and contain views like output and integrated terminal.',
106
+ ),
107
+ );
108
+
109
+ export const PANEL_SECTION_DRAG_AND_DROP_BACKGROUND = registerColor(
110
+ 'panelSection.dropBackground',
111
+ {
112
+ dark: EDITOR_DRAG_AND_DROP_BACKGROUND,
113
+ light: EDITOR_DRAG_AND_DROP_BACKGROUND,
114
+ hcDark: EDITOR_DRAG_AND_DROP_BACKGROUND,
115
+ hcLight: EDITOR_DRAG_AND_DROP_BACKGROUND,
116
+ },
117
+ localize(
118
+ 'panelSectionDragAndDropBackground',
119
+ 'Drag and drop feedback color for the panel sections. The color should have transparency so that the panel sections can still shine through. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels.',
120
+ ),
121
+ );
122
+
123
+ export const PANEL_SECTION_HEADER_BACKGROUND = registerColor(
124
+ 'panelSectionHeader.background',
125
+ {
126
+ dark: Color.fromHex('#808080').transparent(0.2),
127
+ light: Color.fromHex('#808080').transparent(0.2),
128
+ hcDark: null,
129
+ hcLight: null,
130
+ },
131
+ localize(
132
+ 'panelSectionHeaderBackground',
133
+ 'Panel section header background color. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels.',
134
+ ),
135
+ );
136
+
137
+ export const PANEL_SECTION_HEADER_FOREGROUND = registerColor(
138
+ 'panelSectionHeader.foreground',
139
+ {
140
+ dark: null,
141
+ light: null,
142
+ hcDark: null,
143
+ hcLight: null,
144
+ },
145
+ localize(
146
+ 'panelSectionHeaderForeground',
147
+ 'Panel section header foreground color. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels.',
148
+ ),
149
+ );
150
+
151
+ export const PANEL_SECTION_HEADER_BORDER = registerColor(
152
+ 'panelSectionHeader.border',
153
+ {
154
+ dark: contrastBorder,
155
+ light: contrastBorder,
156
+ hcDark: contrastBorder,
157
+ hcLight: contrastBorder,
158
+ },
159
+ localize(
160
+ 'panelSectionHeaderBorder',
161
+ 'Panel section header border color used when multiple views are stacked vertically in the panel. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels.',
162
+ ),
163
+ );
164
+
165
+ export const PANEL_SECTION_BORDER = registerColor(
166
+ 'panelSection.border',
167
+ {
168
+ dark: PANEL_BORDER,
169
+ light: PANEL_BORDER,
170
+ hcDark: PANEL_BORDER,
171
+ hcLight: PANEL_BORDER,
172
+ },
173
+ localize(
174
+ 'panelSectionBorder',
175
+ 'Panel section border color used when multiple views are stacked horizontally in the panel. Panels are shown below the editor area and contain views like output and integrated terminal. Panel sections are views nested within the panels.',
176
+ ),
177
+ );
@@ -0,0 +1,96 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color } from '../color';
4
+ import { registerColor, transparent } from '../utils';
5
+
6
+ import { activeContrastBorder, contrastBorder } from './base';
7
+ import { editorForeground, editorInfoForeground } from './editor';
8
+
9
+ export const peekViewTitleBackground = registerColor(
10
+ 'peekViewTitle.background',
11
+ {
12
+ dark: transparent(editorInfoForeground, 0.1),
13
+ light: transparent(editorInfoForeground, 0.1),
14
+ hcDark: null,
15
+ hcLight: null,
16
+ },
17
+ localize('peekViewTitleBackground', 'Background color of the peek view title area.'),
18
+ );
19
+ export const peekViewTitleForeground = registerColor(
20
+ 'peekViewTitleLabel.foreground',
21
+ { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground },
22
+ localize('peekViewTitleForeground', 'Color of the peek view title.'),
23
+ );
24
+ export const peekViewTitleInfoForeground = registerColor(
25
+ 'peekViewTitleDescription.foreground',
26
+ { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' },
27
+ localize('peekViewTitleInfoForeground', 'Color of the peek view title info.'),
28
+ );
29
+ export const peekViewBorder = registerColor(
30
+ 'peekView.border',
31
+ { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder },
32
+ localize('peekViewBorder', 'Color of the peek view borders and arrow.'),
33
+ );
34
+
35
+ export const peekViewResultsBackground = registerColor(
36
+ 'peekViewResult.background',
37
+ { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white },
38
+ localize('peekViewResultsBackground', 'Background color of the peek view result list.'),
39
+ );
40
+ export const peekViewResultsMatchForeground = registerColor(
41
+ 'peekViewResult.lineForeground',
42
+ { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground },
43
+ localize('peekViewResultsMatchForeground', 'Foreground color for line nodes in the peek view result list.'),
44
+ );
45
+ export const peekViewResultsFileForeground = registerColor(
46
+ 'peekViewResult.fileForeground',
47
+ { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground },
48
+ localize('peekViewResultsFileForeground', 'Foreground color for file nodes in the peek view result list.'),
49
+ );
50
+ export const peekViewResultsSelectionBackground = registerColor(
51
+ 'peekViewResult.selectionBackground',
52
+ { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null },
53
+ localize(
54
+ 'peekViewResultsSelectionBackground',
55
+ 'Background color of the selected entry in the peek view result list.',
56
+ ),
57
+ );
58
+ export const peekViewResultsSelectionForeground = registerColor(
59
+ 'peekViewResult.selectionForeground',
60
+ { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground },
61
+ localize(
62
+ 'peekViewResultsSelectionForeground',
63
+ 'Foreground color of the selected entry in the peek view result list.',
64
+ ),
65
+ );
66
+ export const peekViewEditorBackground = registerColor(
67
+ 'peekViewEditor.background',
68
+ { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white },
69
+ localize('peekViewEditorBackground', 'Background color of the peek view editor.'),
70
+ );
71
+ export const peekViewEditorGutterBackground = registerColor(
72
+ 'peekViewEditorGutter.background',
73
+ {
74
+ dark: peekViewEditorBackground,
75
+ light: peekViewEditorBackground,
76
+ hcDark: peekViewEditorBackground,
77
+ hcLight: peekViewEditorBackground,
78
+ },
79
+ localize('peekViewEditorGutterBackground', 'Background color of the gutter in the peek view editor.'),
80
+ );
81
+
82
+ export const peekViewResultsMatchHighlight = registerColor(
83
+ 'peekViewResult.matchHighlightBackground',
84
+ { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null },
85
+ localize('peekViewResultsMatchHighlight', 'Match highlight color in the peek view result list.'),
86
+ );
87
+ export const peekViewEditorMatchHighlight = registerColor(
88
+ 'peekViewEditor.matchHighlightBackground',
89
+ { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null },
90
+ localize('peekViewEditorMatchHighlight', 'Match highlight color in the peek view editor.'),
91
+ );
92
+ export const peekViewEditorMatchHighlightBorder = registerColor(
93
+ 'peekViewEditor.matchHighlightBorder',
94
+ { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder },
95
+ localize('peekViewEditorMatchHighlightBorder', 'Match highlight border in the peek view editor.'),
96
+ );
@@ -0,0 +1,15 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color } from '../../common/color';
4
+ import { registerColor } from '../utils';
5
+
6
+ export const pickerGroupForeground = registerColor(
7
+ 'pickerGroup.foreground',
8
+ { dark: '#3794FF', light: '#0066BF', hcDark: Color.white, hcLight: '#0F4A85' },
9
+ localize('pickerGroupForeground', 'Quick picker color for grouping labels.'),
10
+ );
11
+ export const pickerGroupBorder = registerColor(
12
+ 'pickerGroup.border',
13
+ { dark: '#3F3F46', light: '#CCCEDB', hcDark: Color.white, hcLight: '#0F4A85' },
14
+ localize('pickerGroupBorder', 'Quick picker color for grouping borders.'),
15
+ );
@@ -0,0 +1,12 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color } from '../../common/color';
4
+ import { registerColor } from '../utils';
5
+
6
+ import { contrastBorder } from './base';
7
+
8
+ export const progressBarBackground = registerColor(
9
+ 'progressBar.background',
10
+ { dark: Color.fromHex('#0E70C0'), light: Color.fromHex('#0E70C0'), hcDark: contrastBorder, hcLight: contrastBorder },
11
+ localize('progressBarBackground', 'Background color of the progress bar that can show for long running operations.'),
12
+ );
@@ -0,0 +1,57 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color, RGBA } from '../color';
4
+ import { registerColor } from '../utils';
5
+
6
+ import { editorWidgetBackground, editorWidgetForeground } from './editor';
7
+
8
+ export const quickInputBackground = registerColor(
9
+ 'quickInput.background',
10
+ {
11
+ dark: editorWidgetBackground,
12
+ light: editorWidgetBackground,
13
+ hcDark: editorWidgetBackground,
14
+ hcLight: editorWidgetBackground,
15
+ },
16
+ localize(
17
+ 'pickerBackground',
18
+ 'Quick picker background color. The quick picker widget is the container for pickers like the command palette.',
19
+ ),
20
+ );
21
+ export const quickInputForeground = registerColor(
22
+ 'quickInput.foreground',
23
+ {
24
+ dark: editorWidgetForeground,
25
+ light: editorWidgetForeground,
26
+ hcDark: editorWidgetForeground,
27
+ hcLight: editorWidgetForeground,
28
+ },
29
+ localize(
30
+ 'pickerForeground',
31
+ 'Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.',
32
+ ),
33
+ );
34
+ export const quickInputTitleBackground = registerColor(
35
+ 'quickInputTitle.background',
36
+ {
37
+ dark: new Color(new RGBA(255, 255, 255, 0.105)),
38
+ light: new Color(new RGBA(0, 0, 0, 0.06)),
39
+ hcDark: '#000000',
40
+ hcLight: Color.white,
41
+ },
42
+ localize(
43
+ 'pickerTitleBackground',
44
+ 'Quick picker title background color. The quick picker widget is the container for pickers like the command palette.',
45
+ ),
46
+ );
47
+
48
+ export const TITLE_BAR_BACKGROUND = registerColor(
49
+ 'titlebar.background',
50
+ {
51
+ dark: '#383838',
52
+ light: '#383838',
53
+ hcDark: '#383838',
54
+ hcLight: '#383838',
55
+ },
56
+ localize('titlebarBackgound', 'Titlebar background color.'),
57
+ );
@@ -0,0 +1,42 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color } from '../../common/color';
4
+ import { registerColor, transparent } from '../utils';
5
+
6
+ import { contrastBorder } from './base';
7
+
8
+ export const scrollbarShadow = registerColor(
9
+ 'scrollbar.shadow',
10
+ { dark: '#000000', light: '#DDDDDD', hcDark: null, hcLight: null },
11
+ localize('scrollbarShadow', 'Scrollbar shadow to indicate that the view is scrolled.'),
12
+ );
13
+ export const scrollbarSliderBackground = registerColor(
14
+ 'scrollbarSlider.background',
15
+ {
16
+ dark: Color.fromHex('#797979').transparent(0.4),
17
+ light: Color.fromHex('#646464').transparent(0.4),
18
+ hcDark: transparent(contrastBorder, 0.6),
19
+ hcLight: transparent(contrastBorder, 0.4),
20
+ },
21
+ localize('scrollbarSliderBackground', 'Scrollbar slider background color.'),
22
+ );
23
+ export const scrollbarSliderHoverBackground = registerColor(
24
+ 'scrollbarSlider.hoverBackground',
25
+ {
26
+ dark: Color.fromHex('#646464').transparent(0.7),
27
+ light: Color.fromHex('#646464').transparent(0.7),
28
+ hcDark: transparent(contrastBorder, 0.8),
29
+ hcLight: transparent(contrastBorder, 0.8),
30
+ },
31
+ localize('scrollbarSliderHoverBackground', 'Scrollbar slider background color when hovering.'),
32
+ );
33
+ export const scrollbarSliderActiveBackground = registerColor(
34
+ 'scrollbarSlider.activeBackground',
35
+ {
36
+ dark: Color.fromHex('#BFBFBF').transparent(0.4),
37
+ light: Color.fromHex('#000000').transparent(0.6),
38
+ hcDark: contrastBorder,
39
+ hcLight: contrastBorder,
40
+ },
41
+ localize('scrollbarSliderActiveBackground', 'Scrollbar slider background color when clicked on.'),
42
+ );