From ad99dd534eb1d4b1685902310dbfee6fa81feff9 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 4 May 2019 23:42:31 -0700 Subject: [PATCH] Improve list focus/highlight --- src/vscodeThemeGenerator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vscodeThemeGenerator.ts b/src/vscodeThemeGenerator.ts index 189dae2..5be77d7 100644 --- a/src/vscodeThemeGenerator.ts +++ b/src/vscodeThemeGenerator.ts @@ -108,13 +108,14 @@ export class VscodeThemeGenerator implements IThemeGenerator { // list.activeSelectionBackground: List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not. theme.colors['list.activeSelectionBackground'] = addAlpha(colorSet.base.color1, 0.5); // list.activeSelectionForeground: List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not. - theme.colors['list.activeSelectionForeground'] = contrast(theme.colors['list.activeSelectionBackground']); + theme.colors['list.activeSelectionForeground'] = '#FFFFFF'; // list.dropBackground: List/Tree drag and drop background when moving items around using the mouse. theme.colors['list.dropBackground'] = addAlpha(colorSet.base.color1, 0.5); // list.focusBackground: List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not. theme.colors['list.focusBackground'] = addAlpha(colorSet.base.color1, 0.5); - theme.colors['list.focusForeground'] = contrast(theme.colors['list.focusBackground']); + theme.colors['list.focusForeground'] = '#FFFFFF'; // list.highlightForeground: List/Tree foreground color of the match highlights when searching inside the list/tree. + theme.colors['list.highlightForeground'] = colorSet.base.color1; // list.hoverBackground: List/Tree background when hovering over items using the mouse. theme.colors['list.hoverBackground'] = addAlpha('#FFFFFF', 0.1); // list.inactiveSelectionBackground: List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.