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

feat: make BrowserWindow vibrancy visual effect state customizable #25106

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Aug 24, 2020

Backport of #25083

See that PR for details.

Notes: Add visualEffectState option to BrowserWindows to allow customization of vibrancy effect state on macOS.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 24, 2020
@trop trop bot requested a review from codebytere August 24, 2020 15:46
@codebytere codebytere removed the new-pr 🌱 PR opened in the last 24 hours label Aug 24, 2020
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 24, 2020
Copy link
Member

@codebytere codebytere left a 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

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 25, 2020
@@ -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) {
Copy link
Member

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

Copy link
Member

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)

@MarshallOfSound MarshallOfSound dismissed codebytere’s stale review August 26, 2020 23:19

Approved by Releases WG

@MarshallOfSound MarshallOfSound merged commit deb7845 into 10-x-y Aug 26, 2020
@release-clerk
Copy link

release-clerk bot commented Aug 26, 2020

Release Notes Persisted

Add visualEffectState option to BrowserWindows to allow customization of vibrancy effect state on macOS.

@MarshallOfSound MarshallOfSound deleted the trop/10-x-y-bp-feat-make-browserwindow-vibrancy-visual-effect-state-customizable-1598283994400 branch August 26, 2020 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants