@difizen/libro-core 0.0.2-alpha.0 → 0.1.1

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 (70) hide show
  1. package/README.md +279 -2
  2. package/es/add-cell/libro-add-cell-slot-contribution.js +2 -2
  3. package/es/add-cell/libro-add-cell-view.js +2 -2
  4. package/es/cell/libro-cell-contribution.js +1 -1
  5. package/es/cell/libro-cell-model.js +6 -6
  6. package/es/cell/libro-cell-service.js +4 -4
  7. package/es/cell/libro-cell-view.js +7 -7
  8. package/es/cell/libro-edit-cell-view.js +3 -3
  9. package/es/cell/libro-executable-cell-view.js +2 -2
  10. package/es/collapse-service.js +1 -1
  11. package/es/command/document-commands.js +1 -1
  12. package/es/command/kernel-command.d.ts.map +1 -1
  13. package/es/command/kernel-command.js +1 -3
  14. package/es/command/libro-command-contribution.js +4 -4
  15. package/es/command/libro-command-register.js +2 -2
  16. package/es/command/notebook-commands.d.ts.map +1 -1
  17. package/es/command/notebook-commands.js +2 -11
  18. package/es/components/dnd-cell-item-render.js +7 -7
  19. package/es/components/dnd-component/custom-drag-layer.js +4 -4
  20. package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -1
  21. package/es/components/dnd-component/default-dnd-content.js +7 -7
  22. package/es/components/dnd-component/dnd-list.d.ts +2 -2
  23. package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
  24. package/es/components/dnd-component/dnd-list.js +8 -8
  25. package/es/components/libro-component.js +1 -1
  26. package/es/configuration/libro-configuration-contribution.js +3 -3
  27. package/es/configuration/libro-configuration.d.ts +1 -1
  28. package/es/configuration/libro-configuration.d.ts.map +1 -1
  29. package/es/configuration/libro-configuration.js +7 -7
  30. package/es/content/libro-content-contribution.js +1 -1
  31. package/es/content/libro-content-service.js +1 -1
  32. package/es/libro-context-key.js +1 -1
  33. package/es/libro-keybind-registry.js +1 -1
  34. package/es/libro-model.js +7 -7
  35. package/es/libro-service.js +4 -4
  36. package/es/libro-view-tracker.js +1 -1
  37. package/es/libro-view.d.ts.map +1 -1
  38. package/es/libro-view.js +34 -36
  39. package/es/module.d.ts.map +1 -1
  40. package/es/module.js +2 -2
  41. package/es/output/output-area.js +4 -4
  42. package/es/output/output-contribution.js +1 -1
  43. package/es/output/output-model.js +1 -1
  44. package/es/slot/libro-slot-manager.js +2 -2
  45. package/es/slot/libro-slot-protocol.d.ts +1 -1
  46. package/es/slot/libro-slot-protocol.d.ts.map +1 -1
  47. package/es/slot/libro-slot-view.js +1 -1
  48. package/es/theme/libro-color-registry.d.ts.map +1 -1
  49. package/es/theme/libro-color-registry.js +70 -70
  50. package/es/toolbar/change-cell-to-selector.js +1 -1
  51. package/es/toolbar/libro-toolbar.js +1 -1
  52. package/es/toolbar/restart-clear-outputs-contribution.js +1 -1
  53. package/es/toolbar/restart-clear-outputs-modal.js +1 -1
  54. package/es/toolbar/save-icon.js +2 -2
  55. package/es/toolbar/shutdown-contribution.js +1 -1
  56. package/es/toolbar/shutdown-modal.js +1 -1
  57. package/package.json +9 -9
  58. package/src/command/document-commands.ts +1 -1
  59. package/src/command/kernel-command.ts +1 -3
  60. package/src/command/notebook-commands.ts +2 -11
  61. package/src/components/dnd-cell-item-render.tsx +5 -5
  62. package/src/components/dnd-component/default-dnd-content.tsx +1 -1
  63. package/src/components/dnd-component/dnd-list.tsx +8 -5
  64. package/src/configuration/libro-configuration-contribution.ts +2 -2
  65. package/src/configuration/libro-configuration.ts +7 -7
  66. package/src/index.spec.ts +12 -0
  67. package/src/libro-view.tsx +2 -3
  68. package/src/module.ts +2 -1
  69. package/src/slot/libro-slot-protocol.ts +1 -1
  70. package/src/theme/libro-color-registry.ts +57 -57
@@ -7,9 +7,9 @@ import { getEmptyImage } from 'react-dnd-html5-backend';
7
7
 
8
8
  import { CellService } from '../../cell/index.js';
9
9
  import { CellCollapsible } from '../../collapse-service.js';
10
+ import { MultiSelectionWhenShiftClick } from '../../configuration/libro-configuration.js';
10
11
  import { isCellView, DragAreaKey } from '../../libro-protocol.js';
11
12
  import type { CellView, DndContentProps } from '../../libro-protocol.js';
12
- import { MultiSelectionWhenShiftClick } from '../../configuration/libro-configuration.js';
13
13
  import type { LibroView } from '../../libro-view.js';
14
14
  import { HolderOutlined, PlusOutlined } from '../../material-from-designer.js';
15
15
  import { hasErrorOutput } from '../../output/index.js';
@@ -45,10 +45,13 @@ export const DndCellContent = forwardRef<HTMLDivElement, { libroView: LibroView
45
45
  },
46
46
  );
47
47
 
48
- export const DndList = forwardRef<
49
- HTMLDivElement,
50
- { libroView: LibroView; children: any }
51
- >(function DndList({ libroView, children }) {
48
+ export function DndList({
49
+ libroView,
50
+ children,
51
+ }: {
52
+ libroView: LibroView;
53
+ children: any;
54
+ }) {
52
55
  const cellService = useInject<CellService>(LibroCellService);
53
56
 
54
57
  const [, drop] = useDrop<Dragparams>(() => ({
@@ -113,4 +116,4 @@ export const DndList = forwardRef<
113
116
  {children}
114
117
  </div>
115
118
  );
116
- });
119
+ }
@@ -7,7 +7,7 @@ import {
7
7
  HeaderToolbarVisible,
8
8
  AutoInsertWhenNoCell,
9
9
  EnterEditModeWhenAddCell,
10
- CollapserClickActive,
10
+ CollapserActive,
11
11
  MultiSelectionWhenShiftClick,
12
12
  RightContentFixed,
13
13
  } from './libro-configuration.js';
@@ -21,7 +21,7 @@ export class LibroConfigurationContribution implements ConfigurationContribution
21
21
  CellSideToolbarVisible,
22
22
  AutoInsertWhenNoCell,
23
23
  EnterEditModeWhenAddCell,
24
- CollapserClickActive,
24
+ CollapserActive,
25
25
  MultiSelectionWhenShiftClick,
26
26
  RightContentFixed,
27
27
  ];
@@ -13,7 +13,7 @@ export const HeaderToolbarVisible: ConfigurationNode<boolean> = {
13
13
  };
14
14
 
15
15
  export const CellTopToolbarSetting: ConfigurationNode<boolean> = {
16
- id: 'libro.cell.toptoolbar',
16
+ id: 'libro.cell.top-toolbar',
17
17
  description: l10n.t('是否显示cell顶部工具栏'),
18
18
  title: l10n.t('cell顶部工具栏'),
19
19
  type: 'checkbox',
@@ -24,7 +24,7 @@ export const CellTopToolbarSetting: ConfigurationNode<boolean> = {
24
24
  };
25
25
 
26
26
  export const CellSideToolbarVisible: ConfigurationNode<boolean> = {
27
- id: 'libro.cell.sidetoolbar',
27
+ id: 'libro.cell.side-toolbar',
28
28
  description: l10n.t('是否显示cell侧边工具栏'),
29
29
  title: l10n.t('cell侧边工具栏'),
30
30
  type: 'checkbox',
@@ -35,7 +35,7 @@ export const CellSideToolbarVisible: ConfigurationNode<boolean> = {
35
35
  };
36
36
 
37
37
  export const AutoInsertWhenNoCell: ConfigurationNode<boolean> = {
38
- id: 'libro.command.insertcellbelow',
38
+ id: 'libro.command.insert-cell-below',
39
39
  description: l10n.t('没有cell时是否默认创建cell'),
40
40
  title: l10n.t('默认创建cell'),
41
41
  type: 'checkbox',
@@ -46,7 +46,7 @@ export const AutoInsertWhenNoCell: ConfigurationNode<boolean> = {
46
46
  };
47
47
 
48
48
  export const EnterEditModeWhenAddCell: ConfigurationNode<boolean> = {
49
- id: 'libro.command.entereditmodewhenaddcell',
49
+ id: 'libro.command.enter-edit-mode-when-add-cell',
50
50
  description: l10n.t('增加cell操作默认进入编辑态'),
51
51
  title: l10n.t('默认进入编辑态'),
52
52
  type: 'checkbox',
@@ -55,8 +55,8 @@ export const EnterEditModeWhenAddCell: ConfigurationNode<boolean> = {
55
55
  type: 'boolean',
56
56
  },
57
57
  };
58
- export const CollapserClickActive: ConfigurationNode<boolean> = {
59
- id: 'libro.command.collapserclickactive',
58
+ export const CollapserActive: ConfigurationNode<boolean> = {
59
+ id: 'libro.command.collapser-active',
60
60
  description: l10n.t('点击左侧长条是否可以隐藏与显示cell'),
61
61
  title: l10n.t('默认点击长条可以隐藏与显示cell'),
62
62
  type: 'checkbox',
@@ -66,7 +66,7 @@ export const CollapserClickActive: ConfigurationNode<boolean> = {
66
66
  },
67
67
  };
68
68
  export const MultiSelectionWhenShiftClick: ConfigurationNode<boolean> = {
69
- id: 'libro.command.multiselectionwhenshiftclick',
69
+ id: 'libro.command.multiselection-when-shift-click',
70
70
  description: l10n.t('按住shift键并点击拖拽区域可以进行多选'),
71
71
  title: l10n.t('默认按住shift键并点击拖拽区域可以进行多选'),
72
72
  type: 'checkbox',
@@ -0,0 +1,12 @@
1
+ import assert from 'assert';
2
+
3
+ import { LibroService, LibroView, LibroCellService } from './index.js';
4
+ import 'reflect-metadata';
5
+
6
+ describe('libro-core', () => {
7
+ it('#import', () => {
8
+ assert(LibroService);
9
+ assert(LibroView);
10
+ assert(LibroCellService);
11
+ });
12
+ });
@@ -12,7 +12,7 @@ import {
12
12
  ViewOption,
13
13
  } from '@difizen/mana-app';
14
14
  import { inject, transient, useInject, equals } from '@difizen/mana-app';
15
- import { Spin, Button, BackTop, FloatButton } from 'antd';
15
+ import { Spin, Button, FloatButton } from 'antd';
16
16
  import type { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
17
17
  import { useEffect, useRef, useCallback, memo, forwardRef } from 'react';
18
18
  import { v4 } from 'uuid';
@@ -57,7 +57,6 @@ import './index.less';
57
57
 
58
58
  export const LibroContentComponent = memo(function LibroContentComponent() {
59
59
  const libroSlotManager = useInject(LibroSlotManager);
60
- const ref = useRef<HTMLDivElement>(null);
61
60
  const libroViewTopRef = useRef<HTMLDivElement>(null);
62
61
  const libroViewRightContentRef = useRef<HTMLDivElement>(null);
63
62
  const libroViewLeftContentRef = useRef<HTMLDivElement>(null);
@@ -134,7 +133,7 @@ export const LibroContentComponent = memo(function LibroContentComponent() {
134
133
  <div className="libro-view-content-left" ref={libroViewLeftContentRef}>
135
134
  <DndContext>
136
135
  <CustomDragLayer />
137
- <DndList libroView={instance} ref={ref}>
136
+ <DndList libroView={instance}>
138
137
  <Slot
139
138
  name={libroSlotManager.getSlotName(instance, 'list')}
140
139
  slotView={LibroSlotView}
package/src/module.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CodeEditorModule } from '@difizen/libro-code-editor';
2
- import { ConfigurationModule } from '@difizen/mana-app';
2
+ import { ConfigurationModule, ManaAppPreset } from '@difizen/mana-app';
3
3
  import { ManaModule } from '@difizen/mana-app';
4
4
 
5
5
  import { LibroCellModule } from './cell/libro-cell-module.js';
@@ -80,6 +80,7 @@ export const LibroModule = ManaModule.create()
80
80
  },
81
81
  )
82
82
  .dependOn(
83
+ ManaAppPreset,
83
84
  LibroCellModule,
84
85
  LibroSlotModule,
85
86
  CodeEditorModule,
@@ -17,7 +17,7 @@ export interface LibroExtensionSlotContribution {
17
17
  };
18
18
  }
19
19
 
20
- export type LibroSlot = 'content' | 'container' | 'list' | 'right' | 'containerLog';
20
+ export type LibroSlot = 'content' | 'container' | 'list' | 'right';
21
21
 
22
22
  export interface DisplayView {
23
23
  isDisplay: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { ColorRegistry } from '@difizen/mana-app';
2
- import { Color, ColorContribution } from '@difizen/mana-app';
2
+ import { ColorContribution } from '@difizen/mana-app';
3
3
  import { singleton } from '@difizen/mana-app';
4
4
 
5
5
  @singleton({ contrib: ColorContribution })
@@ -19,12 +19,12 @@ export class LibroColorRegistry implements ColorContribution {
19
19
  },
20
20
  {
21
21
  id: 'libro.background',
22
- defaults: { dark: '#1f2022', light: '#ffffff' },
22
+ defaults: { dark: '#1F2022', light: '#FFFFFF' },
23
23
  description: '',
24
24
  },
25
25
  {
26
26
  id: 'libro.popover.background.color',
27
- defaults: { dark: '#2f3032', light: '#ffffff' },
27
+ defaults: { dark: '#2F3032', light: '#FFFFFF' },
28
28
  description: '',
29
29
  },
30
30
  {
@@ -35,8 +35,8 @@ export class LibroColorRegistry implements ColorContribution {
35
35
  {
36
36
  id: 'libro.dropdown.icon.color',
37
37
  defaults: {
38
- dark: Color.rgba(255, 255, 255, 0.3),
39
- light: Color.rgba(0, 0, 0, 0.2),
38
+ dark: '#FFFFFF4D',
39
+ light: '#00000033',
40
40
  },
41
41
  description: '',
42
42
  },
@@ -47,24 +47,24 @@ export class LibroColorRegistry implements ColorContribution {
47
47
  },
48
48
  {
49
49
  id: 'libro.text.default.color',
50
- defaults: { dark: '#e3e4e6', light: '#000000' },
50
+ defaults: { dark: '#E3E4E6', light: '#000000' },
51
51
  description: '',
52
52
  },
53
53
  {
54
54
  id: 'libro.text.tertiary.color',
55
- defaults: { dark: '#bdc0c4', light: '#B8BABA' },
55
+ defaults: { dark: '#BDC0C4', light: '#B8BABA' },
56
56
  description: '',
57
57
  },
58
58
  {
59
59
  id: 'libro.output.background',
60
- defaults: { dark: '#292A2D', light: '#fff' },
60
+ defaults: { dark: '#292A2D', light: '#FFFFFF' },
61
61
  description: '',
62
62
  },
63
63
  {
64
64
  id: 'libro.toptoolbar.border.color',
65
65
  defaults: {
66
- dark: Color.rgba(255, 255, 255, 0.1),
67
- light: Color.rgba(0, 0, 0, 0.1),
66
+ dark: '#FFFFFF1A',
67
+ light: '#0000001A',
68
68
  },
69
69
  description: '',
70
70
  },
@@ -76,47 +76,47 @@ export class LibroColorRegistry implements ColorContribution {
76
76
  {
77
77
  id: 'libro.toptoolbar.disabled.icon.color',
78
78
  defaults: {
79
- dark: Color.rgba(255, 255, 255, 0.3),
80
- light: Color.rgba(0, 0, 0, 0.25),
79
+ dark: '#FFFFFF4D',
80
+ light: '#00000040',
81
81
  },
82
82
  description: '',
83
83
  },
84
84
  {
85
85
  id: 'libro.toptoolbar.text.color',
86
- defaults: { dark: '#f5f5f5', light: '#000000' },
86
+ defaults: { dark: '#F5F5F5', light: '#000000' },
87
87
  description: '',
88
88
  },
89
89
  {
90
90
  id: 'libro.bottom.btn.background.color',
91
91
  defaults: {
92
- dark: Color.rgba(255, 255, 255, 0.04),
93
- light: Color.rgba(255, 255, 255, 1),
92
+ dark: '#FFFFFF0A',
93
+ light: '#FFFFFF',
94
94
  },
95
95
  description: '',
96
96
  },
97
97
  {
98
98
  id: 'libro.bottom.btn.border.color',
99
- defaults: { dark: '#505559', light: Color.rgba(0, 10, 26, 0.16) },
99
+ defaults: { dark: '#505559', light: '#000A1A29' },
100
100
  description: '',
101
101
  },
102
102
  {
103
103
  id: 'libro.bottom.btn.icon.color',
104
- defaults: { dark: '#505559', light: Color.rgba(82, 89, 100, 0.85) },
104
+ defaults: { dark: '#505559', light: '#525964D9' },
105
105
  description: '',
106
106
  },
107
107
  {
108
108
  id: 'libro.bottom.btn.text.color',
109
- defaults: { dark: '#E3E4E6', light: Color.rgba(0, 10, 26, 0.68) },
109
+ defaults: { dark: '#E3E4E6', light: '#000A1AAD' },
110
110
  description: '',
111
111
  },
112
112
  {
113
113
  id: 'libro.default.btn.background.color',
114
- defaults: { dark: Color.rgba(255, 255, 255, 0.1), light: '#FFFFFF' },
114
+ defaults: { dark: '#FFFFFF1A', light: '#FFFFFF' },
115
115
  description: '',
116
116
  },
117
117
  {
118
118
  id: 'libro.default.btn.text.color',
119
- defaults: { dark: '#E3E4E6', light: Color.rgba(0, 10, 26, 0.68) },
119
+ defaults: { dark: '#E3E4E6', light: '#000A1AAD' },
120
120
  description: '',
121
121
  },
122
122
  {
@@ -131,17 +131,17 @@ export class LibroColorRegistry implements ColorContribution {
131
131
  },
132
132
  {
133
133
  id: 'libro.toolbar.menu.label.color',
134
- defaults: { dark: '#BDC0C4', light: Color.rgba(0, 0, 0, 0.65) },
134
+ defaults: { dark: '#BDC0C4', light: '#000000A6' },
135
135
  description: '',
136
136
  },
137
137
  {
138
138
  id: 'libro.toolbar.menu.disabled.label.color',
139
- defaults: { dark: '#878c93', light: Color.rgba(0, 0, 0, 0.25) },
139
+ defaults: { dark: '#878C93', light: '#00000040' },
140
140
  description: '',
141
141
  },
142
142
  {
143
143
  id: 'libro.toolbar.menu.keybind.color',
144
- defaults: { dark: '#878c93', light: Color.rgba(0, 0, 0, 0.45) },
144
+ defaults: { dark: '#878C93', light: '#00000073' },
145
145
  description: '',
146
146
  },
147
147
  {
@@ -152,27 +152,27 @@ export class LibroColorRegistry implements ColorContribution {
152
152
  {
153
153
  id: 'libro.sidetoolbar.border.color',
154
154
  defaults: {
155
- dark: Color.rgba(255, 255, 255, 0.08),
156
- light: Color.rgba(0, 0, 0, 0.1),
155
+ dark: '#FFFFFF14',
156
+ light: '#0000001A',
157
157
  },
158
158
  description: '',
159
159
  },
160
160
  {
161
161
  id: 'libro.close.color',
162
162
  defaults: {
163
- dark: Color.rgba(255, 255, 255, 0.45),
164
- light: Color.rgba(0, 0, 0, 0.45),
163
+ dark: '#FFFFFF73',
164
+ light: '#00000073',
165
165
  },
166
166
  description: '',
167
167
  },
168
168
  {
169
169
  id: 'libro.modal.title.color',
170
- defaults: { dark: '#EDEEEF', light: Color.rgba(0, 0, 0, 0.85) },
170
+ defaults: { dark: '#EDEEEF', light: '#000000D9' },
171
171
  description: '',
172
172
  },
173
173
  {
174
174
  id: 'libro.modal.content.color',
175
- defaults: { dark: '#e3e4e6', light: '#000a1a' },
175
+ defaults: { dark: '#E3E4E6', light: '#000A1A' },
176
176
  description: '',
177
177
  },
178
178
  {
@@ -187,7 +187,7 @@ export class LibroColorRegistry implements ColorContribution {
187
187
  },
188
188
  {
189
189
  id: 'libro.tip.font.color',
190
- defaults: { dark: '#D6D8DA', light: Color.rgba(0, 0, 0, 0.5) },
190
+ defaults: { dark: '#D6D8DA', light: '#00000080' },
191
191
  description: '',
192
192
  },
193
193
  {
@@ -202,24 +202,24 @@ export class LibroColorRegistry implements ColorContribution {
202
202
  },
203
203
  {
204
204
  id: 'libro.error.color',
205
- defaults: { dark: '#cf4c52', light: '#ed1345' },
205
+ defaults: { dark: '#CF4C52', light: '#ED1345' },
206
206
  description: '',
207
207
  },
208
208
  {
209
209
  id: 'libro.cell.border.color',
210
- defaults: { dark: '#3b3c42', light: '#D6DEE6' },
210
+ defaults: { dark: '#3B3C42', light: '#D6DEE6' },
211
211
  description: '',
212
212
  },
213
213
  {
214
214
  id: 'libro.cell.active.border.color',
215
- defaults: { dark: '#378edf', light: '#3490ed' },
215
+ defaults: { dark: '#378EDF', light: '#3490ED' },
216
216
  description: '',
217
217
  },
218
218
  {
219
219
  id: 'libro.cell.active.border.shadow.color',
220
220
  defaults: {
221
- dark: Color.rgba(73, 162, 250, 0.25),
222
- light: Color.rgba(53, 146, 238, 0.25),
221
+ dark: '#49A2FA40',
222
+ light: '#3592EE40',
223
223
  },
224
224
  description: '',
225
225
  },
@@ -230,7 +230,7 @@ export class LibroColorRegistry implements ColorContribution {
230
230
  },
231
231
  {
232
232
  id: 'libro.cell.header.title',
233
- defaults: { dark: '#d6d8da', light: '#000a1a' },
233
+ defaults: { dark: '#D6D8DA', light: '#000A1A' },
234
234
  description: '',
235
235
  },
236
236
  {
@@ -240,22 +240,22 @@ export class LibroColorRegistry implements ColorContribution {
240
240
  },
241
241
  {
242
242
  id: 'libro.input.border.color',
243
- defaults: { dark: '#505559', light: Color.rgba(0, 0, 0, 0.15) },
243
+ defaults: { dark: '#505559', light: '#00000026' },
244
244
  description: '',
245
245
  },
246
246
  {
247
247
  id: 'libro.input.background.color',
248
- defaults: { dark: Color.rgba(255, 255, 255, 0.04), light: '#FFFFFF' },
248
+ defaults: { dark: '#FFFFFF0A', light: '#FFFFFF' },
249
249
  description: '',
250
250
  },
251
251
  {
252
252
  id: 'libro.input.group.btn.background.color',
253
- defaults: { dark: Color.rgba(0, 0, 0, 0.02), light: Color.rgba(0, 0, 0, 0.02) },
253
+ defaults: { dark: '#00000005', light: '#00000005' },
254
254
  description: '',
255
255
  },
256
256
  {
257
257
  id: 'libro.table.innner.border.color',
258
- defaults: { dark: '#1affffff', light: '#E5EBF1' },
258
+ defaults: { dark: '#1AFFFF', light: '#E5EBF1' },
259
259
  description: '',
260
260
  },
261
261
  {
@@ -265,52 +265,52 @@ export class LibroColorRegistry implements ColorContribution {
265
265
  },
266
266
  {
267
267
  id: 'libro.editor.keyword.color',
268
- defaults: { dark: '#109b67', light: '#098658' },
268
+ defaults: { dark: '#109B67', light: '#098658' },
269
269
  description: '',
270
270
  },
271
271
  {
272
272
  id: 'libro.editor.number.color',
273
- defaults: { dark: '#109b67', light: '#098658' },
273
+ defaults: { dark: '#109B67', light: '#098658' },
274
274
  description: '',
275
275
  },
276
276
  {
277
277
  id: 'libro.editor.variable.2.color',
278
- defaults: { dark: '#5da4ea', light: '#2060A0' },
278
+ defaults: { dark: '#5DA4EA', light: '#2060A0' },
279
279
  description: '',
280
280
  },
281
281
  {
282
282
  id: 'libro.editor.punctuation.color',
283
- defaults: { dark: '#5da4ea', light: '#2060A0' },
283
+ defaults: { dark: '#5DA4EA', light: '#2060A0' },
284
284
  description: '',
285
285
  },
286
286
  {
287
287
  id: 'libro.editor.property.color',
288
- defaults: { dark: '#5da4ea', light: '#2060A0' },
288
+ defaults: { dark: '#5DA4EA', light: '#2060A0' },
289
289
  description: '',
290
290
  },
291
291
  {
292
292
  id: 'libro.editor.operator.color',
293
- defaults: { dark: 'e12ee1', light: '#C700C7' },
293
+ defaults: { dark: 'E12EE1', light: '#C700C7' },
294
294
  description: '',
295
295
  },
296
296
  {
297
297
  id: 'libro.editor.meta.color',
298
- defaults: { dark: '#e12ee1', light: '#C700C7' },
298
+ defaults: { dark: '#E12EE1', light: '#C700C7' },
299
299
  description: '',
300
300
  },
301
301
  {
302
302
  id: 'libro.editor.builtin.color',
303
- defaults: { dark: '#109b67', light: '#098658' },
303
+ defaults: { dark: '#109B67', light: '#098658' },
304
304
  description: '',
305
305
  },
306
306
  {
307
307
  id: 'libro.editor.variable.color',
308
- defaults: { dark: '#e3e4e6', light: '#212121' },
308
+ defaults: { dark: '#E3E4E6', light: '#212121' },
309
309
  description: '',
310
310
  },
311
311
  {
312
312
  id: 'libro.editor.def.color',
313
- defaults: { dark: '#187dff', light: '#003cff' },
313
+ defaults: { dark: '#187DFF', light: '#003CFF' },
314
314
  description: '',
315
315
  },
316
316
  {
@@ -320,20 +320,20 @@ export class LibroColorRegistry implements ColorContribution {
320
320
  },
321
321
  {
322
322
  id: 'libro.editor.string.color',
323
- defaults: { dark: '#ff5b48', light: '#c03030' },
323
+ defaults: { dark: '#FF5B48', light: '#C03030' },
324
324
  description: '',
325
325
  },
326
326
  {
327
327
  id: 'libro.editor.activeline.color',
328
328
  defaults: {
329
- dark: Color.rgba(229, 232, 240, 0.1),
330
- light: Color.rgba(229, 232, 240, 0.5),
329
+ dark: '#E5E8F01A',
330
+ light: '#E5E8F080',
331
331
  },
332
332
  description: '',
333
333
  },
334
334
  {
335
335
  id: 'libro.editor.selectionMatch.color',
336
- defaults: { dark: '#99ff7780', light: '#DDE6FF' },
336
+ defaults: { dark: '#99FF7780', light: '#DDE6FF' },
337
337
  description: '',
338
338
  },
339
339
  {
@@ -343,7 +343,7 @@ export class LibroColorRegistry implements ColorContribution {
343
343
  },
344
344
  {
345
345
  id: 'libro.editor.gutter.number.color',
346
- defaults: { dark: '#a8aebf', light: '#A4AECB' },
346
+ defaults: { dark: '#A8EABF', light: '#A4AECB' },
347
347
  description: '',
348
348
  },
349
349
  {
@@ -353,12 +353,12 @@ export class LibroColorRegistry implements ColorContribution {
353
353
  },
354
354
  {
355
355
  id: 'libro.editor.cursor.color',
356
- defaults: { dark: '#ffffff', light: '#000000' },
356
+ defaults: { dark: '#FFFFFF', light: '#000000' },
357
357
  description: '',
358
358
  },
359
359
  {
360
360
  id: 'libro.editor.indent.marker.bg.color',
361
- defaults: { dark: '#42444d', light: '#d6dbeb' },
361
+ defaults: { dark: '#42444D', light: '#D6DBEB' },
362
362
  description: '',
363
363
  },
364
364
  {