Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set background color for menu bar on Windows #37766

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

dsanders11
Copy link
Member

Description of Change

Fixes #34939.

More information is in a comment on that issue, but the long and short of it is the Background created by views::CreateThemedSolidBackground isn't immediately set, and will change to stay in sync with the color provider. So the code has been refactored to ensure background_color_ is always up-to-date.

Checklist

Release Notes

Notes: Fixed the active background color for top-level menu items on Windows

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 30, 2023
@dsanders11 dsanders11 added 23-x-y 24-x-y semver/patch backwards-compatible bug fixes target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. and removed 23-x-y 24-x-y labels Mar 30, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 31, 2023
@codebytere codebytere merged commit 6012172 into electron:main Mar 31, 2023
@release-clerk
Copy link

release-clerk bot commented Mar 31, 2023

Release Notes Persisted

Fixed the active background color for top-level menu items on Windows

@trop
Copy link
Contributor

trop bot commented Mar 31, 2023

I have automatically backported this PR to "23-x-y", please check out #37784

@trop trop bot added in-flight/23-x-y and removed target/23-x-y PR should also be added to the "23-x-y" branch. labels Mar 31, 2023
@trop
Copy link
Contributor

trop bot commented Mar 31, 2023

I have automatically backported this PR to "24-x-y", please check out #37785

@trop trop bot added in-flight/24-x-y and removed target/24-x-y PR should also be added to the "24-x-y" branch. labels Mar 31, 2023
@dsanders11 dsanders11 deleted the fix-menu-bar-win-highlight branch March 31, 2023 20:58
@trop trop bot added merged/24-x-y PR was merged to the "24-x-y" branch merged/23-x-y PR was merged to the "23-x-y" branch. and removed in-flight/24-x-y labels Apr 1, 2023
@trop
Copy link
Contributor

trop bot commented Apr 16, 2023

@GhostlyDark has manually backported this PR to "22-x-y", please check out #37991

@trop trop bot added the merged/22-x-y PR was merged to the "22-x-y" branch. label Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/22-x-y PR was merged to the "22-x-y" branch. merged/23-x-y PR was merged to the "23-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Dark pink hover/focus background for menus in menu bar
2 participants