Skip to content

Commit 7516e0e

Browse files
committed
Theming: diff colors should be more specific. Fixes microsoft#25544
1 parent 0b90861 commit 7516e0e

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

extensions/theme-abyss/themes/abyss-color-theme.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@
336336
// "peekViewTitleInfoForeground": "",
337337

338338
// Editor: Diff
339-
"diffInserted": "#31958A55",
340-
// "diffInsertedOutline": "",
341-
"diffRemoved": "#892F4688",
342-
// "diffRemovedOutline": "",
339+
"diffEditorInserted": "#31958A55",
340+
// "diffEditorInsertedOutline": "",
341+
"diffEditorRemoved": "#892F4688",
342+
// "diffEditorRemovedOutline": "",
343343

344344
// Workbench: Title
345345
"titleBarActiveBackground": "#10192c",

extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,10 @@
376376
// "peekViewTitleInfoForeground": "",
377377

378378
// Editor: Diff
379-
// "diffInserted": "",
380-
// "diffInsertedOutline": "",
381-
// "diffRemoved": "",
382-
// "diffRemovedOutline": "",
379+
// "diffEditorInserted": "",
380+
// "diffEditorInsertedOutline": "",
381+
// "diffEditorRemoved": "",
382+
// "diffEditorRemovedOutline": "",
383383

384384
// Workbench: Title
385385
"titleBarActiveBackground": "#002C39",

src/vs/editor/browser/widget/diffEditorWidget.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,10 +1954,10 @@ function createFakeLinesDiv(): HTMLElement {
19541954
const defaultInsertColor = Color.fromRGBA(new RGBA(155, 185, 85, 255 * 0.2));
19551955
const defaultRemoveColor = Color.fromRGBA(new RGBA(255, 0, 0, 255 * 0.2));
19561956

1957-
export const diffInserted = registerColor('diffInserted', { dark: defaultInsertColor, light: defaultInsertColor, hc: null }, nls.localize('diffInserted', 'Background color for text that got inserted.'));
1958-
export const diffRemoved = registerColor('diffRemoved', { dark: defaultRemoveColor, light: defaultRemoveColor, hc: null }, nls.localize('diffRemoved', 'Background color for text that got removed.'));
1959-
export const diffInsertedOutline = registerColor('diffInsertedOutline', { dark: null, light: null, hc: '#33ff2eff' }, nls.localize('diffInsertedOutline', 'Outline color for the text that got inserted.'));
1960-
export const diffRemovedOutline = registerColor('diffRemovedOutline', { dark: null, light: null, hc: '#FF008F' }, nls.localize('diffRemovedOutline', 'Outline color for text that got removed.'));
1957+
export const diffInserted = registerColor('diffEditorInserted', { dark: defaultInsertColor, light: defaultInsertColor, hc: null }, nls.localize('diffEditorInserted', 'Background color for text that got inserted.'));
1958+
export const diffRemoved = registerColor('diffEditorRemoved', { dark: defaultRemoveColor, light: defaultRemoveColor, hc: null }, nls.localize('diffEditorRemoved', 'Background color for text that got removed.'));
1959+
export const diffInsertedOutline = registerColor('diffEditorInsertedOutline', { dark: null, light: null, hc: '#33ff2eff' }, nls.localize('diffEditorInsertedOutline', 'Outline color for the text that got inserted.'));
1960+
export const diffRemovedOutline = registerColor('diffEditorRemovedOutline', { dark: null, light: null, hc: '#FF008F' }, nls.localize('diffEditorRemovedOutline', 'Outline color for text that got removed.'));
19611961

19621962

19631963
registerThemingParticipant((theme, collector) => {

0 commit comments

Comments
 (0)