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 for WCO container #35569

Merged
merged 2 commits into from Sep 8, 2022

Conversation

rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented Sep 2, 2022

Description of Change

Fixes #35312

Ref #35312 (comment)

Chromium was setting a background colour for the windows control overlay container, whereas we weren't. This PR copies the line so that we are also setting a background colour for the WCO container, which should avoid rendering glitches.

I'm currently on an RTL system language to work on another issue, so the WCO in the demo below is mirrored, but it shows that the gaps have been filled in with the overlay button colour.

WCO with an RTL system language

CC @deepak1556

Checklist

Release Notes

Notes: Added a background to the WCO container to avoid rendering glitches.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Sep 2, 2022
@deepak1556 deepak1556 added semver/patch backwards-compatible bug fixes target/19-x-y target/21-x-y PR should also be added to the "21-x-y" branch. labels Sep 3, 2022
@deepak1556
Copy link
Member

Background of the container view should also be adjusted when user calls BrowserWindow::SetTitleBarOverlay

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Sep 3, 2022
@rzhao271
Copy link
Contributor Author

rzhao271 commented Sep 6, 2022

Added. BrowserWindow::SetTitleBarOverlay calls WinFrameView::InvalidateCaptionButtons so I added the SetBackground call there.

@deepak1556
Copy link
Member

Failing test is unrelated, merging.

@deepak1556 deepak1556 merged commit 4fb4167 into electron:main Sep 8, 2022
@release-clerk
Copy link

release-clerk bot commented Sep 8, 2022

Release Notes Persisted

Added a background to the WCO container to avoid rendering glitches.

@trop
Copy link
Contributor

trop bot commented Sep 8, 2022

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

@trop
Copy link
Contributor

trop bot commented Sep 8, 2022

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

@trop
Copy link
Contributor

trop bot commented Sep 8, 2022

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

@trop trop bot added in-flight/20-x-y and removed target/20-x-y target/21-x-y PR should also be added to the "21-x-y" branch. labels Sep 8, 2022
@rzhao271 rzhao271 deleted the rzhao271/wco-bg-fix branch September 8, 2022 14:53
@trop trop bot added the merged/21-x-y PR was merged to the "21-x-y" branch. label Sep 8, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* fix: Set background for WCO container

* Add background when invalidating as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/21-x-y PR was merged to the "21-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: WCO separator colour incorrect in v20
3 participants