#56024: fix: draw menu bar access key underlines in the text color
Merged
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
- I have built and tested this change
- I have filled out the PR description
- I have reviewed and verified the changes
-
npm testpasses - PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, past tense, and no longer than 80 characters.
Release Notes
Notes: Fixed menu bar access key underlines being black in dark mode on Windows.
Backports
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