Skip to content

fix: window with customButtonsOnHover should have rounded corner - #26901

Merged
codebytere merged 1 commit into
masterfrom
CustomButtonsOnHover-RoundCorner
Dec 11, 2020
Merged

codebytere merged 1 commit into
masterfrom
CustomButtonsOnHover-RoundCorner

Conversation

@zcbenz

@zcbenz zcbenz commented Dec 9, 2020

Copy link
Copy Markdown
Contributor

Description of Change

Close #10424.

The customButtonsOnHover option relied on the NSWindowStyleMaskFullSizeContentView style to hide window title and buttons, which is actually a weird code path and unnecessary.

This PR makes it use the normal window styles like the other titleBarStyle options, which fixes the problem that the window has no rounded corner.

Checklist

Release Notes

Notes: Fix window with customButtonsOnHover option not having rounded corner on macOS.

@zcbenz zcbenz added the semver/patch backwards-compatible bug fixes label Dec 9, 2020
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Dec 9, 2020
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Dec 10, 2020
@codebytere

Copy link
Copy Markdown
Member

Failure is:

reporting api sends a report for a deprecation

And is known.

@codebytere
codebytere merged commit 28ae68d into master Dec 11, 2020
@release-clerk

release-clerk Bot commented Dec 11, 2020

Copy link
Copy Markdown

Release Notes Persisted

Fix window with customButtonsOnHover option not having rounded corner on macOS.

@codebytere
codebytere deleted the CustomButtonsOnHover-RoundCorner branch December 11, 2020 19:03
@trop

trop Bot commented Dec 11, 2020

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "10-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Dec 11, 2020

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "11-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Dec 11, 2020

Copy link
Copy Markdown
Contributor

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

@nornagon

Copy link
Copy Markdown
Contributor

Is it still possible to get a frameless window without rounded corners on macOS after this PR?

@zcbenz

zcbenz commented Dec 12, 2020

Copy link
Copy Markdown
Contributor Author

Is it still possible to get a frameless window without rounded corners on macOS after this PR?

No, but we can add a new API to turn off rounded corner if there is request, we only need to apply the NSWindowStyleMaskFullSizeContentView style.

@zcbenz

zcbenz commented Dec 15, 2020

Copy link
Copy Markdown
Contributor Author

I think we should hold on backporting it to 10/11, there are some users relying on this option to create a frameless window without rounded corner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BrowserWindow with customButtonsOnHover and frame:false no longer rounds the corners on Mac

3 participants