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
feat: make BrowserWindow vibrancy visual effect state customizable #25106
feat: make BrowserWindow vibrancy visual effect state customizable #25106
Conversation
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.
Needs WG-Releases approval
@@ -1451,7 +1474,14 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) { | |||
|
|||
[effect_view setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; | |||
[effect_view setBlendingMode:NSVisualEffectBlendingModeBehindWindow]; | |||
[effect_view setState:NSVisualEffectStateFollowsWindowActiveState]; | |||
|
|||
if (visual_effect_state_ == VisualEffectState::ACTIVE) { |
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.
Can we make this a switch so the compiler yells at you when you miss one of the enum options
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.
(Can be follow up to avoid blocking the minor)
Release Notes Persisted
|
Backport of #25083
See that PR for details.
Notes: Add
visualEffectState
option to BrowserWindows to allow customization of vibrancy effect state on macOS.