|
1 | 1 | import type * as monaco from "monaco-editor"; |
2 | 2 | import type { Theme } from "../stores/uiStore"; |
3 | 3 |
|
| 4 | +const darkDiffColors = { |
| 5 | + "diffEditor.insertedTextBackground": "#2ea04366", |
| 6 | + "diffEditor.removedTextBackground": "#f8514966", |
| 7 | + "diffEditor.insertedLineBackground": "#2ea04340", |
| 8 | + "diffEditor.removedLineBackground": "#f8514940", |
| 9 | + "diffEditorGutter.insertedLineBackground": "#2ea04350", |
| 10 | + "diffEditorGutter.removedLineBackground": "#f8514950", |
| 11 | + "diffEditor.diagonalFill": "#2d333b55", |
| 12 | +}; |
| 13 | + |
| 14 | +const lightDiffColors = { |
| 15 | + "diffEditor.insertedTextBackground": "#2ea04355", |
| 16 | + "diffEditor.removedTextBackground": "#f8514955", |
| 17 | + "diffEditor.insertedLineBackground": "#2ea04330", |
| 18 | + "diffEditor.removedLineBackground": "#f8514930", |
| 19 | + "diffEditorGutter.insertedLineBackground": "#2ea04340", |
| 20 | + "diffEditorGutter.removedLineBackground": "#f8514940", |
| 21 | + "diffEditor.diagonalFill": "#d0d7de55", |
| 22 | +}; |
| 23 | + |
4 | 24 | export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
5 | 25 | midnight: { |
6 | 26 | base: "vs-dark", |
@@ -43,6 +63,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
43 | 63 | "editorHoverWidget.background": "#161b22", |
44 | 64 | "editorHoverWidget.border": "#30363d", |
45 | 65 | "minimap.background": "#0d1117", |
| 66 | + ...darkDiffColors, |
46 | 67 | }, |
47 | 68 | }, |
48 | 69 |
|
@@ -87,6 +108,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
87 | 108 | "editorHoverWidget.background": "#2c2c2e", |
88 | 109 | "editorHoverWidget.border": "#3a3a3c", |
89 | 110 | "minimap.background": "#1c1c1e", |
| 111 | + ...darkDiffColors, |
90 | 112 | }, |
91 | 113 | }, |
92 | 114 |
|
@@ -131,6 +153,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
131 | 153 | "editorHoverWidget.background": "#ffffff", |
132 | 154 | "editorHoverWidget.border": "#d0d7de", |
133 | 155 | "minimap.background": "#ffffff", |
| 156 | + ...lightDiffColors, |
134 | 157 | }, |
135 | 158 | }, |
136 | 159 |
|
@@ -175,6 +198,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
175 | 198 | "editorHoverWidget.background": "#f8fafc", |
176 | 199 | "editorHoverWidget.border": "#cbd5e1", |
177 | 200 | "minimap.background": "#f0f4f8", |
| 201 | + ...lightDiffColors, |
178 | 202 | }, |
179 | 203 | }, |
180 | 204 |
|
@@ -219,6 +243,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
219 | 243 | "editorHoverWidget.background": "#231e30", |
220 | 244 | "editorHoverWidget.border": "#2d263c", |
221 | 245 | "minimap.background": "#1a1625", |
| 246 | + ...darkDiffColors, |
222 | 247 | }, |
223 | 248 | }, |
224 | 249 |
|
@@ -263,6 +288,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
263 | 288 | "editorHoverWidget.background": "#150025", |
264 | 289 | "editorHoverWidget.border": "#2a0050", |
265 | 290 | "minimap.background": "#0d0015", |
| 291 | + ...darkDiffColors, |
266 | 292 | }, |
267 | 293 | }, |
268 | 294 |
|
@@ -307,6 +333,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
307 | 333 | "editorHoverWidget.background": "#241a16", |
308 | 334 | "editorHoverWidget.border": "#3a2c24", |
309 | 335 | "minimap.background": "#1a1210", |
| 336 | + ...darkDiffColors, |
310 | 337 | }, |
311 | 338 | }, |
312 | 339 |
|
@@ -351,6 +378,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
351 | 378 | "editorHoverWidget.background": "#162416", |
352 | 379 | "editorHoverWidget.border": "#283a28", |
353 | 380 | "minimap.background": "#0f1a0f", |
| 381 | + ...darkDiffColors, |
354 | 382 | }, |
355 | 383 | }, |
356 | 384 |
|
@@ -395,6 +423,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
395 | 423 | "editorHoverWidget.background": "#073642", |
396 | 424 | "editorHoverWidget.border": "#0a4050", |
397 | 425 | "minimap.background": "#002b36", |
| 426 | + ...darkDiffColors, |
398 | 427 | }, |
399 | 428 | }, |
400 | 429 |
|
@@ -439,6 +468,7 @@ export const monacoThemes: Record<Theme, monaco.editor.IStandaloneThemeData> = { |
439 | 468 | "editorHoverWidget.background": "#2f302a", |
440 | 469 | "editorHoverWidget.border": "#49483e", |
441 | 470 | "minimap.background": "#272822", |
| 471 | + ...darkDiffColors, |
442 | 472 | }, |
443 | 473 | }, |
444 | 474 | }; |
0 commit comments