Skip to content

Commit

Permalink
Merge pull request #5 from sargalias/menu-hover-color
Browse files Browse the repository at this point in the history
Add color for menu highlighting on hover.
  • Loading branch information
bceskavich authored Nov 24, 2019
2 parents 240f00c + 2c71c2d commit 46dd8aa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/settings/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ export interface MiscColors {
bgDark: string;
bgDarker: string;
purpleDarker: string;
menuHover: string;
}
2 changes: 2 additions & 0 deletions src/settings/colors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import git from './git';
import inputs from './inputs';
import lists from './lists';
import mergeConflicts from './merge-conflicts';
import menu from './menu';
import notification from './notification';
import panels from './panels';
import peekView from './peek-view';
Expand Down Expand Up @@ -47,6 +48,7 @@ export default (colors: Colors) => ({
...inputs(colors),
...lists(colors),
...mergeConflicts(colors),
...menu(colors),
...notification(colors),
...panels(colors),
...peekView(colors),
Expand Down
14 changes: 14 additions & 0 deletions src/settings/colors/menu.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Colors } from '../Theme';

// See: https://code.visualstudio.com/api/references/theme-color#menu-bar-colors
export default ({ misc }: Colors) => ({
'menubar.selectionForeground': null,
'menubar.selectionBackground': null,
'menubar.selectionBorder': null,
'menu.foreGround': null,
'menu.background': null,
'menu.selectionForeground': null,
'menu.selectionBackground': misc.menuHover,
'menu.selectionBorder': null,
'menu.separatorBackground': null
});
3 changes: 2 additions & 1 deletion src/themes/DraculaAtNight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const misc: MiscColors = {
bgDark: '#21222C',
bgDarker: '#191A21',
purpleDarker: '#574473',
selection: '#44475A'
selection: '#44475A',
menuHover: '#3A434D'
};

const theme: Theme = {
Expand Down

0 comments on commit 46dd8aa

Please sign in to comment.