Improve list focus/highlight

This commit is contained in:
Daniel Imms
2019-05-04 23:42:31 -07:00
parent 027f9507c6
commit ad99dd534e

View File

@@ -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.