From 1be76bb40016386dcb4e0b3fbcb6d94467203afa Mon Sep 17 00:00:00 2001 From: simurai Date: Mon, 2 Jan 2023 16:56:02 +0900 Subject: [PATCH] Use semi-transparency --- src/theme.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/theme.js b/src/theme.js index 6731e28..a229411 100644 --- a/src/theme.js +++ b/src/theme.js @@ -208,10 +208,10 @@ function getTheme({ theme, name }) { "editorGutter.addedBackground" : color.success.muted, "editorGutter.deletedBackground" : color.danger.muted, - "diffEditor.insertedLineBackground": color.diffBlob.addition.lineBg, - "diffEditor.insertedTextBackground": color.diffBlob.addition.textBg, - "diffEditor.removedLineBackground" : color.diffBlob.deletion.lineBg, - "diffEditor.removedTextBackground" : color.diffBlob.deletion.textBg, + "diffEditor.insertedLineBackground": lightDark(alpha(scale.green[1], 0.3), alpha(scale.green[5], 0.15)), + "diffEditor.insertedTextBackground": lightDark(alpha(scale.green[2], 0.5), alpha(scale.green[3], 0.3)), + "diffEditor.removedLineBackground" : lightDark(alpha(scale.red[1], 0.3), alpha(scale.red[5], 0.15)), + "diffEditor.removedTextBackground" : lightDark(alpha(scale.red[3], 0.4), alpha(scale.red[3], 0.3)), "scrollbar.shadow" : alpha(scale.gray[5], 0.2), "scrollbarSlider.background" : alpha(scale.gray[4], 0.2),