dsanders11

#56024: fix: draw menu bar access key underlines in the text color

Merged
Created: Nov 23, 2026, 6:30:42 PM
Merged: Nov 24, 2026, 10:33:15 AM
4 comments
Target: main

Description of Change

Fixes #55514. On Windows the menu bar's access-key underlines (shown after pressing Alt) were drawn with the classic COLOR_MENUTEXT system color, which doesn't follow the dark color scheme, so they were black on a dark menu bar. SubmenuButton now always draws the underline with the button's current text color, so it matches the label in light, dark and High Contrast, and the per-platform SetUnderlineColor plumbing is removed (Linux already set it to the text color).

Manually tested this on both Windows and Linux to ensure no regressions.

Checklist

Release Notes

Notes: Fixed menu bar access key underlines being black in dark mode on Windows.

Backports

44-x-y
Merged
PR Number
#56043
Merged At
Nov 24, 2026, 12:28:43 PM
Released In
Not yet
Release Date
Not yet
45-x-y
In-flight
PR Number
#56044
Waiting to be merged
46-x-y
Merged
PR Number
#56042
Merged At
Nov 24, 2026, 12:28:41 PM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron