@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,106 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { registerColor } from '../../utils';
4
+ import {
5
+ listHoverBackground,
6
+ listHoverForeground,
7
+ listInactiveSelectionForeground,
8
+ listInactiveSelectionBackground,
9
+ listActiveSelectionForeground,
10
+ listActiveSelectionBackground,
11
+ listInvalidItemForeground,
12
+ listFocusForeground,
13
+ listFocusBackground,
14
+ } from '../list-tree';
15
+
16
+ export const treeHoverBackground = registerColor(
17
+ 'kt.tree.hoverBackground',
18
+ { dark: listHoverBackground, light: listHoverBackground, hcDark: listHoverBackground, hcLight: listHoverBackground },
19
+ localize('treeHoverBackground', 'Tree background when hovering over items using the mouse.'),
20
+ );
21
+ export const treeHoverForeground = registerColor(
22
+ 'kt.tree.hoverForeground',
23
+ { dark: listHoverForeground, light: listHoverForeground, hcDark: listHoverForeground, hcLight: listHoverForeground },
24
+ localize('treeHoverForeground', 'Tree foreground when hovering over items using the mouse.'),
25
+ );
26
+ export const treeFocusForeground = registerColor(
27
+ 'kt.tree.focusForeground',
28
+ { dark: listFocusForeground, light: listFocusForeground, hcDark: listFocusForeground, hcLight: listFocusForeground },
29
+ localize(
30
+ 'treeFocusForeground',
31
+ 'Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.',
32
+ ),
33
+ );
34
+ export const treeFocusBackground = registerColor(
35
+ 'kt.tree.focusBackground',
36
+ { dark: listFocusBackground, light: listFocusBackground, hcDark: listFocusBackground, hcLight: listFocusBackground },
37
+ localize(
38
+ 'treeFocusBackground',
39
+ 'Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.',
40
+ ),
41
+ );
42
+ export const treeInactiveSelectionForeground = registerColor(
43
+ 'kt.tree.inactiveSelectionForeground',
44
+ {
45
+ dark: listInactiveSelectionForeground,
46
+ light: listInactiveSelectionForeground,
47
+ hcDark: listInactiveSelectionForeground,
48
+ hcLight: listInactiveSelectionForeground,
49
+ },
50
+ localize(
51
+ 'treeInactiveSelectionForeground',
52
+ 'Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.',
53
+ ),
54
+ );
55
+ export const treeInactiveSelectionBackground = registerColor(
56
+ 'kt.tree.inactiveSelectionBackground',
57
+ {
58
+ dark: listInactiveSelectionBackground,
59
+ light: listInactiveSelectionBackground,
60
+ hcDark: listInactiveSelectionBackground,
61
+ hcLight: listInactiveSelectionBackground,
62
+ },
63
+ localize(
64
+ 'treeInactiveSelectionBackground',
65
+ 'Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.',
66
+ ),
67
+ );
68
+ export const treeActiveSelectionForeground = registerColor(
69
+ 'kt.tree.activeSelectionForeground',
70
+ {
71
+ dark: listActiveSelectionForeground,
72
+ light: listActiveSelectionForeground,
73
+ hcDark: listActiveSelectionForeground,
74
+ hcLight: listActiveSelectionForeground,
75
+ },
76
+ localize(
77
+ 'treeActiveSelectionForeground',
78
+ 'Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.',
79
+ ),
80
+ );
81
+ export const treeActiveSelectionBackground = registerColor(
82
+ 'kt.tree.activeSelectionBackground',
83
+ {
84
+ dark: listActiveSelectionBackground,
85
+ light: listActiveSelectionBackground,
86
+ hcDark: listActiveSelectionBackground,
87
+ hcLight: listActiveSelectionBackground,
88
+ },
89
+ localize(
90
+ 'treeActiveSelectionBackground',
91
+ 'Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.',
92
+ ),
93
+ );
94
+ export const treeInvalidItemForeground = registerColor(
95
+ 'kt.tree.invalidItemForeground',
96
+ {
97
+ dark: listInvalidItemForeground,
98
+ light: listInvalidItemForeground,
99
+ hcDark: listInvalidItemForeground,
100
+ hcLight: listInvalidItemForeground,
101
+ },
102
+ localize(
103
+ 'treeInvalidItemForeground',
104
+ 'Tree foreground color for invalid items, for example an unresolved root in explorer.',
105
+ ),
106
+ );
@@ -0,0 +1,103 @@
1
+ import { registerColor } from '../utils';
2
+
3
+ import { foreground, errorForeground } from './base';
4
+ import { editorInfoForeground, editorWarningForeground } from './editor';
5
+
6
+ export const debugTokenExpressionName = registerColor(
7
+ 'debugTokenExpression.name',
8
+ { dark: '#c586c0', light: '#9b46b0', hcDark: foreground, hcLight: foreground },
9
+ 'Foreground color for the token names shown in the debug views (ie. the Variables or Watch view).',
10
+ );
11
+ export const debugTokenExpressionValue = registerColor(
12
+ 'debugTokenExpression.value',
13
+ { dark: '#cccccc99', light: '#6c6c6ccc', hcDark: foreground, hcLight: foreground },
14
+ 'Foreground color for the token values shown in the debug views (ie. the Variables or Watch view).',
15
+ );
16
+ export const debugTokenExpressionString = registerColor(
17
+ 'debugTokenExpression.string',
18
+ { dark: '#ce9178', light: '#a31515', hcDark: '#f48771', hcLight: '#a31515' },
19
+ 'Foreground color for strings in the debug views (ie. the Variables or Watch view).',
20
+ );
21
+ export const debugTokenExpressionBoolean = registerColor(
22
+ 'debugTokenExpression.boolean',
23
+ { dark: '#4e94ce', light: '#0000ff', hcDark: '#75bdfe', hcLight: '#0000ff' },
24
+ 'Foreground color for booleans in the debug views (ie. the Variables or Watch view).',
25
+ );
26
+ export const debugTokenExpressionNumber = registerColor(
27
+ 'debugTokenExpression.number',
28
+ { dark: '#b5cea8', light: '#098658', hcDark: '#89d185', hcLight: '#098658' },
29
+ 'Foreground color for numbers in the debug views (ie. the Variables or Watch view).',
30
+ );
31
+ export const debugTokenExpressionError = registerColor(
32
+ 'debugTokenExpression.error',
33
+ { dark: '#f48771', light: '#e51400', hcDark: '#f48771', hcLight: '#e51400' },
34
+ 'Foreground color for expression errors in the debug views (ie. the Variables or Watch view) and for error logs shown in the debug console.',
35
+ );
36
+
37
+ export const debugViewExceptionLabelForeground = registerColor(
38
+ 'debugView.exceptionLabelForeground',
39
+ { dark: foreground, light: '#FFF', hcDark: foreground, hcLight: foreground },
40
+ 'Foreground color for a label shown in the CALL STACK view when the debugger breaks on an exception.',
41
+ );
42
+ export const debugViewExceptionLabelBackground = registerColor(
43
+ 'debugView.exceptionLabelBackground',
44
+ { dark: '#6C2022', light: '#A31515', hcDark: '#6C2022', hcLight: '#A31515' },
45
+ 'Background color for a label shown in the CALL STACK view when the debugger breaks on an exception.',
46
+ );
47
+ export const debugExceptionWidgetBorder = registerColor(
48
+ 'debugExceptionWidget.border',
49
+ { dark: '#a31515', light: '#a31515', hcDark: '#a31515', hcLight: '#a31515' },
50
+ 'Exception widget border color.',
51
+ );
52
+ export const debugExceptionWidgetBackground = registerColor(
53
+ 'debugExceptionWidget.background',
54
+ { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' },
55
+ 'Exception widget background color.',
56
+ );
57
+
58
+ export const debugViewStateLabelForeground = registerColor(
59
+ 'debugView.stateLabelForeground',
60
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
61
+ "Foreground color for a label in the CALL STACK view showing the current session's or thread's state.",
62
+ );
63
+ export const debugViewStateLabelBackground = registerColor(
64
+ 'debugView.stateLabelBackground',
65
+ { dark: '#88888844', light: '#88888844', hcDark: '#88888844', hcLight: '#88888844' },
66
+ "Background color for a label in the CALL STACK view showing the current session's or thread's state.",
67
+ );
68
+ export const debugViewValueChangedHighlight = registerColor(
69
+ 'debugView.valueChangedHighlight',
70
+ { dark: '#569CD6', light: '#569CD6', hcDark: '#569CD6', hcLight: '#569CD6' },
71
+ 'Color used to highlight value changes in the debug views (ie. in the Variables view).',
72
+ );
73
+
74
+ export const debugConsoleInfoForeground = registerColor(
75
+ 'debugConsole.infoForeground',
76
+ { dark: editorInfoForeground, light: editorInfoForeground, hcDark: foreground, hcLight: foreground },
77
+ 'Foreground color for info messages in debug REPL console.',
78
+ );
79
+ export const debugConsoleWarningForeground = registerColor(
80
+ 'debugConsole.warningForeground',
81
+ {
82
+ dark: editorWarningForeground,
83
+ light: editorWarningForeground,
84
+ hcDark: '#008000',
85
+ hcLight: editorWarningForeground,
86
+ },
87
+ 'Foreground color for warning messages in debug REPL console.',
88
+ );
89
+ export const debugConsoleErrorForeground = registerColor(
90
+ 'debugConsole.errorForeground',
91
+ { dark: errorForeground, light: errorForeground, hcDark: errorForeground, hcLight: errorForeground },
92
+ 'Foreground color for error messages in debug REPL console.',
93
+ );
94
+ export const debugConsoleSourceForeground = registerColor(
95
+ 'debugConsole.sourceForeground',
96
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
97
+ 'Foreground color for source filenames in debug REPL console.',
98
+ );
99
+ export const debugConsoleInputIconForeground = registerColor(
100
+ 'debugConsoleInputIcon.foreground',
101
+ { dark: foreground, light: foreground, hcDark: foreground, hcLight: foreground },
102
+ 'Foreground color for debug console input marker icon.',
103
+ );
@@ -0,0 +1,134 @@
1
+ import { registerColor } from '../utils';
2
+
3
+ // ref: https://github.com/Microsoft/vscode/blob/b07d19a768b42af2aa8f78f8b1b68978f14f9bd9/src%2Fvs%2Fworkbench%2Fcontrib%2Fdebug%2Fbrowser%2FdebugToolBar.ts
4
+ export const debugToolBarBackground = registerColor(
5
+ 'debugToolBar.background',
6
+ {
7
+ dark: '#333333',
8
+ light: '#F3F3F3',
9
+ hcDark: '#000000',
10
+ hcLight: '#FFFFFF',
11
+ },
12
+ 'Debug toolbar background color.',
13
+ );
14
+
15
+ export const debugToolBarBorder = registerColor(
16
+ 'debugToolBar.border',
17
+ {
18
+ dark: null,
19
+ light: null,
20
+ hcDark: null,
21
+ hcLight: null,
22
+ },
23
+ 'Debug toolbar border color.',
24
+ );
25
+
26
+ export const debugIconStartForeground = registerColor(
27
+ 'debugIcon.startForeground',
28
+ {
29
+ dark: '#89D185',
30
+ light: '#388A34',
31
+ hcDark: '#89D185',
32
+ hcLight: '#388A34',
33
+ },
34
+ 'Debug toolbar icon for start debugging.',
35
+ );
36
+
37
+ export const debugIconPauseForeground = registerColor(
38
+ 'debugIcon.pauseForeground',
39
+ {
40
+ dark: '#75BEFF',
41
+ light: '#007ACC',
42
+ hcDark: '#75BEFF',
43
+ hcLight: '#007ACC',
44
+ },
45
+ 'Debug toolbar icon for pause.',
46
+ );
47
+
48
+ export const debugIconStopForeground = registerColor(
49
+ 'debugIcon.stopForeground',
50
+ {
51
+ dark: '#F48771',
52
+ light: '#A1260D',
53
+ hcDark: '#F48771',
54
+ hcLight: '#A1260D',
55
+ },
56
+ 'Debug toolbar icon for stop.',
57
+ );
58
+
59
+ export const debugIconDisconnectForeground = registerColor(
60
+ 'debugIcon.disconnectForeground',
61
+ {
62
+ dark: '#F48771',
63
+ light: '#A1260D',
64
+ hcDark: '#F48771',
65
+ hcLight: '#A1260D',
66
+ },
67
+ 'Debug toolbar icon for disconnect.',
68
+ );
69
+
70
+ export const debugIconRestartForeground = registerColor(
71
+ 'debugIcon.restartForeground',
72
+ {
73
+ dark: '#89D185',
74
+ light: '#388A34',
75
+ hcDark: '#89D185',
76
+ hcLight: '#388A34',
77
+ },
78
+ 'Debug toolbar icon for restart.',
79
+ );
80
+
81
+ export const debugIconStepOverForeground = registerColor(
82
+ 'debugIcon.stepOverForeground',
83
+ {
84
+ dark: '#75BEFF',
85
+ light: '#007ACC',
86
+ hcDark: '#75BEFF',
87
+ hcLight: '#007ACC',
88
+ },
89
+ 'Debug toolbar icon for step over.',
90
+ );
91
+
92
+ export const debugIconStepIntoForeground = registerColor(
93
+ 'debugIcon.stepIntoForeground',
94
+ {
95
+ dark: '#75BEFF',
96
+ light: '#007ACC',
97
+ hcDark: '#75BEFF',
98
+ hcLight: '#007ACC',
99
+ },
100
+ 'Debug toolbar icon for step into.',
101
+ );
102
+
103
+ export const debugIconStepOutForeground = registerColor(
104
+ 'debugIcon.stepOutForeground',
105
+ {
106
+ dark: '#75BEFF',
107
+ light: '#007ACC',
108
+ hcDark: '#75BEFF',
109
+ hcLight: '#007ACC',
110
+ },
111
+ 'Debug toolbar icon for step over.',
112
+ );
113
+
114
+ export const debugIconContinueForeground = registerColor(
115
+ 'debugIcon.continueForeground',
116
+ {
117
+ dark: '#75BEFF',
118
+ light: '#007ACC',
119
+ hcDark: '#75BEFF',
120
+ hcLight: '#007ACC',
121
+ },
122
+ 'Debug toolbar icon for continue.',
123
+ );
124
+
125
+ export const debugIconStepBackForeground = registerColor(
126
+ 'debugIcon.stepBackForeground',
127
+ {
128
+ dark: '#75BEFF',
129
+ light: '#007ACC',
130
+ hcDark: '#75BEFF',
131
+ hcLight: '#007ACC',
132
+ },
133
+ 'Debug toolbar icon for step back.',
134
+ );
@@ -0,0 +1,27 @@
1
+ import { localize } from '@opensumi/ide-core-common';
2
+
3
+ import { Color } from '../../common/color';
4
+ import { registerColor } from '../utils';
5
+
6
+ import { contrastBorder, foreground } from './base';
7
+
8
+ export const selectBackground = registerColor(
9
+ 'dropdown.background',
10
+ { dark: '#3C3C3C', light: Color.white, hcDark: Color.black, hcLight: Color.white },
11
+ localize('dropdownBackground', 'Dropdown background.'),
12
+ );
13
+ export const selectListBackground = registerColor(
14
+ 'dropdown.listBackground',
15
+ { dark: null, light: null, hcDark: Color.black, hcLight: Color.white },
16
+ localize('dropdownListBackground', 'Dropdown list background.'),
17
+ );
18
+ export const selectForeground = registerColor(
19
+ 'dropdown.foreground',
20
+ { dark: '#F0F0F0', light: null, hcDark: Color.white, hcLight: foreground },
21
+ localize('dropdownForeground', 'Dropdown foreground.'),
22
+ );
23
+ export const selectBorder = registerColor(
24
+ 'dropdown.border',
25
+ { dark: selectBackground, light: '#CECECE', hcDark: contrastBorder, hcLight: contrastBorder },
26
+ localize('dropdownBorder', 'Dropdown border.'),
27
+ );