Skip to content

Commit

Permalink
fix: improve diff editor constract
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 13, 2024
1 parent da24459 commit 3ed3411
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scripts/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export default function getTheme(options: GetThemeOptions) {
'editor.wordHighlightStrongBackground': pick({ light: '#1c6b4810', dark: '#1c6b4810' }),
'editorBracketMatch.background': pick({ light: '#1c6b4820', dark: '#4d937520' }),

'diffEditor.insertedTextBackground': pick({ light: '#1c6b4815', dark: '#4d937522' }),
'diffEditor.removedTextBackground': pick({ light: '#ab595910', dark: '#ab595922' }),
'diffEditor.insertedTextBackground': pick({ light: '#1c6b4830', dark: '#4d937550' }),
'diffEditor.removedTextBackground': pick({ light: '#ab595940', dark: '#ab595950' }),

'scrollbar.shadow': pick({ light: '#6a737d33', dark: '#0000' }),
'scrollbarSlider.background': v('faded'),
Expand Down
4 changes: 2 additions & 2 deletions themes/vitesse-black.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#4d937520",
"diffEditor.insertedTextBackground": "#4d937522",
"diffEditor.removedTextBackground": "#ab595922",
"diffEditor.insertedTextBackground": "#4d937550",
"diffEditor.removedTextBackground": "#ab595950",
"scrollbar.shadow": "#0000",
"scrollbarSlider.background": "#dedcd510",
"scrollbarSlider.hoverBackground": "#dedcd550",
Expand Down
4 changes: 2 additions & 2 deletions themes/vitesse-dark-soft.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#4d937520",
"diffEditor.insertedTextBackground": "#4d937522",
"diffEditor.removedTextBackground": "#ab595922",
"diffEditor.insertedTextBackground": "#4d937550",
"diffEditor.removedTextBackground": "#ab595950",
"scrollbar.shadow": "#0000",
"scrollbarSlider.background": "#dedcd510",
"scrollbarSlider.hoverBackground": "#dedcd550",
Expand Down
4 changes: 2 additions & 2 deletions themes/vitesse-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#4d937520",
"diffEditor.insertedTextBackground": "#4d937522",
"diffEditor.removedTextBackground": "#ab595922",
"diffEditor.insertedTextBackground": "#4d937550",
"diffEditor.removedTextBackground": "#ab595950",
"scrollbar.shadow": "#0000",
"scrollbarSlider.background": "#dedcd510",
"scrollbarSlider.hoverBackground": "#dedcd550",
Expand Down
4 changes: 2 additions & 2 deletions themes/vitesse-light-soft.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#1c6b4820",
"diffEditor.insertedTextBackground": "#1c6b4815",
"diffEditor.removedTextBackground": "#ab595910",
"diffEditor.insertedTextBackground": "#1c6b4830",
"diffEditor.removedTextBackground": "#ab595940",
"scrollbar.shadow": "#6a737d33",
"scrollbarSlider.background": "#393a3410",
"scrollbarSlider.hoverBackground": "#393a3450",
Expand Down
4 changes: 2 additions & 2 deletions themes/vitesse-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#1c6b4820",
"diffEditor.insertedTextBackground": "#1c6b4815",
"diffEditor.removedTextBackground": "#ab595910",
"diffEditor.insertedTextBackground": "#1c6b4830",
"diffEditor.removedTextBackground": "#ab595940",
"scrollbar.shadow": "#6a737d33",
"scrollbarSlider.background": "#393a3410",
"scrollbarSlider.hoverBackground": "#393a3450",
Expand Down

0 comments on commit 3ed3411

Please sign in to comment.