-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix: vibrancy window border #46648
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: vibrancy window border #46648
Conversation
Worth mentioning there's an alternate solution using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clavin personally i'd rather the non-patch route with appropriate commenting - our patches have been ballooning lately and there's no clear path for removal here. We can also try to talk to upstream about it.
Refactored this to use |
Release Notes Persisted
|
I have automatically backported this PR to "36-x-y", please check out #46771 |
I have automatically backported this PR to "35-x-y", please check out #46772 |
* fix: vibrancy window border * Use WidgetDelegate::OnWidgetInitialized instead
* fix: vibrancy window border * Use WidgetDelegate::OnWidgetInitialized instead
fix: vibrancy window border (#46648) * fix: vibrancy window border * Use WidgetDelegate::OnWidgetInitialized instead Co-authored-by: Calvin <clavin@users.noreply.github.com>
fix: vibrancy window border (#46648) * fix: vibrancy window border * Use WidgetDelegate::OnWidgetInitialized instead Co-authored-by: Calvin <clavin@users.noreply.github.com>
Description of Change
Chromium sets some properties on NSWindow when we initialize a widget with support for translucency (added in #46392). This causes undesirable visual effects, such as the loss of the window border (see #46586).
The easiest fix is to patch out the unintended Chromium code. We set both properties ourselves when appropriate.
Fixes #46586
Ref: #46392
Checklist
npm test
passesRelease Notes
Notes: Fixed the border style of windows with vibrancy on macOS.