File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/components/src/utils Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,22 @@ const polyfillTheme = vsCodeTheme => {
121121 ) ;
122122 }
123123
124+ if ( uiColors . list . hoverBackground === uiColors . sideBar . background ) {
125+ if (
126+ uiColors . list . inactiveSelectionBackground &&
127+ uiColors . list . hoverBackground !==
128+ uiColors . list . inactiveSelectionBackground
129+ ) {
130+ uiColors . list . hoverBackground = uiColors . list . inactiveSelectionBackground ;
131+ } else {
132+ // if that didnt work, its math time
133+ uiColors . list . hoverBackground = decreaseContrast (
134+ uiColors . sideBar . background ,
135+ 0.25
136+ ) ;
137+ }
138+ }
139+
124140 uiColors . list . foreground = uiColors . list . foreground || mutedForeground ;
125141 uiColors . list . hoverForeground =
126142 uiColors . list . hoverForeground || uiColors . sideBar . foreground ;
You can’t perform that action at this time.
0 commit comments