From bdbc56a2ac1475fa7cb6c6f2c2a98a28c9d5258d Mon Sep 17 00:00:00 2001 From: nekowinston Date: Tue, 12 Dec 2023 07:14:43 +0100 Subject: [PATCH] fix(ui): selection contrast (#245) --- src/theme/uiColors.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/theme/uiColors.ts b/src/theme/uiColors.ts index 597e040b..abb26768 100644 --- a/src/theme/uiColors.ts +++ b/src/theme/uiColors.ts @@ -22,7 +22,7 @@ export const getUiColors = ( foreground: palette.text, disabledForeground: palette.subtext0, "widget.shadow": opacity(palette.mantle, 0.5), - "selection.background": palette.surface2, + "selection.background": opacity(palette.surface2, 0.4), descriptionForeground: palette.text, errorForeground: palette.red, "icon.foreground": accent, @@ -132,12 +132,12 @@ export const getUiColors = ( "editor.foldBackground": opacity(palette.sky, 0.25), "editor.foreground": palette.text, "editor.hoverHighlightBackground": opacity(palette.sky, 0.25), - "editor.inactiveSelectionBackground": palette.surface2, + "editor.inactiveSelectionBackground": opacity(palette.surface2, 0.25), "editor.lineHighlightBackground": opacity(palette.text, 0.07), "editor.lineHighlightBorder": transparent, "editor.rangeHighlightBackground": opacity(palette.sky, 0.25), "editor.rangeHighlightBorder": transparent, - "editor.selectionBackground": palette.surface2, + "editor.selectionBackground": opacity(palette.surface2, 0.4), "editor.selectionHighlightBackground": opacity(palette.overlay2, 0.4), "editor.selectionHighlightBorder": opacity(palette.sky, 0.2), "editor.wordHighlightBackground": opacity(palette.surface2, 0.7),