Skip to content

Commit 0685819

Browse files
authored
Merge pull request microsoft#269105 from microsoft/mrleemurray/quick-crane-green
Improve status bar item hover colors for accessibility
2 parents 3f52756 + e9bf40d commit 0685819

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

extensions/theme-defaults/themes/dark_modern.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
"sideBarTitle.foreground": "#CCCCCC",
8989
"statusBar.background": "#181818",
9090
"statusBar.border": "#2B2B2B",
91+
"statusBarItem.hoverBackground": "#F1F1F133",
92+
"statusBarItem.hoverForeground": "#FFFFFF",
9193
"statusBar.debuggingBackground": "#0078D4",
9294
"statusBar.debuggingForeground": "#FFFFFF",
9395
"statusBar.focusBorder": "#0078D4",

extensions/theme-defaults/themes/light_modern.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
"statusBar.background": "#F8F8F8",
105105
"statusBar.foreground": "#3B3B3B",
106106
"statusBar.border": "#E5E5E5",
107-
"statusBarItem.hoverBackground": "#B8B8B850",
107+
"statusBarItem.hoverBackground": "#1F1F1F11",
108+
"statusBarItem.hoverForeground": "#000000",
108109
"statusBarItem.compactHoverBackground": "#CCCCCC",
109110
"statusBar.debuggingBackground": "#FD716C",
110111
"statusBar.debuggingForeground": "#000000",

src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@
177177
outline-offset: -1px;
178178
}
179179

180-
.monaco-workbench:not(.hc-light):not(.hc-black) .part.statusbar > .items-container > .statusbar-item a:hover:not(.disabled) {
181-
background-color: var(--vscode-statusBarItem-hoverBackground);
180+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item a:hover:not(.disabled) {
181+
background-color: var(--vscode-statusBarItem-hoverBackground) !important;
182182
}
183183

184184
/** Status bar entry item kinds */

src/vs/workbench/common/theme.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,18 +336,18 @@ export const STATUS_BAR_ITEM_FOCUS_BORDER = registerColor('statusBarItem.focusBo
336336

337337
export const STATUS_BAR_ITEM_HOVER_BACKGROUND = registerColor('statusBarItem.hoverBackground', {
338338
dark: Color.white.transparent(0.12),
339-
light: Color.white.transparent(0.12),
340-
hcDark: Color.white.transparent(0.12),
341-
hcLight: Color.black.transparent(0.12)
339+
light: Color.black.transparent(0.12),
340+
hcDark: Color.black,
341+
hcLight: Color.white
342342
}, localize('statusBarItemHoverBackground', "Status bar item background color when hovering. The status bar is shown in the bottom of the window."));
343343

344344
export const STATUS_BAR_ITEM_HOVER_FOREGROUND = registerColor('statusBarItem.hoverForeground', STATUS_BAR_FOREGROUND, localize('statusBarItemHoverForeground', "Status bar item foreground color when hovering. The status bar is shown in the bottom of the window."));
345345

346346
export const STATUS_BAR_ITEM_COMPACT_HOVER_BACKGROUND = registerColor('statusBarItem.compactHoverBackground', {
347-
dark: Color.white.transparent(0.20),
348-
light: Color.white.transparent(0.20),
349-
hcDark: Color.white.transparent(0.20),
350-
hcLight: Color.black.transparent(0.20)
347+
dark: Color.white.transparent(0.12),
348+
light: Color.black.transparent(0.12),
349+
hcDark: Color.black,
350+
hcLight: Color.white
351351
}, localize('statusBarItemCompactHoverBackground', "Status bar item background color when hovering an item that contains two hovers. The status bar is shown in the bottom of the window."));
352352

353353
export const STATUS_BAR_PROMINENT_ITEM_FOREGROUND = registerColor('statusBarItem.prominentForeground', STATUS_BAR_FOREGROUND, localize('statusBarProminentItemForeground', "Status bar prominent items foreground color. Prominent items stand out from other status bar entries to indicate importance. The status bar is shown in the bottom of the window."));

0 commit comments

Comments
 (0)