Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Option for having round corners #56

Open
TechnikMax opened this issue May 18, 2021 · 6 comments
Open

Option for having round corners #56

TechnikMax opened this issue May 18, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@TechnikMax
Copy link

In the past i used a transparent window with some html & css to have round corners.

When using this plugin to get the fancy acrylic effect this is no longer possible, because the normal transparent areas are (of course) acrylic.

Please add an option so that the acrylic background on the BrowserWindow can have a border-radius on its own.

@0xENDER
Copy link
Contributor

0xENDER commented Aug 6, 2021

Would this still be necessary when Windows 11 comes out? I mean, having no rounded corners is consistent with Windows 10. And all windows will have rounded corners by default in Windows 11. But I guess having a choice is also good...

@tscpp
Copy link
Collaborator

tscpp commented Aug 6, 2021

Using the win32 composition API to get round corners would be a mess and slow, or even impossible. Until WinUI 3's APIs for win32 is released, I'd say implementing round corners is not an option.

@TechnikMax
Copy link
Author

Ok, I understand hopefully the release of the WinUI 3's APIs for win32 doesn't take to long.

Would this still be necessary when Windows 11 comes out? I mean, having no rounded corners is consistent with Windows 10. And all windows will have rounded corners by default in Windows 11. But I guess having a choice is also good...

I know, but the problem is that i use the option frame: false to use a custom title bar (HTML & CSS based) this already removes the minimize & restore animation in Win 10 (can be also seen in Spotify) and in Win 11 it also removes the round corners.

@0xENDER
Copy link
Contributor

0xENDER commented Aug 6, 2021

The animations thingy is true. But the rounded corners do not disappear in windows 11.
image

@seo-rii seo-rii added the enhancement New feature or request label Oct 5, 2021
@nodgear
Copy link

nodgear commented Jan 29, 2022

Quick delayed info (maybe due to windows updates):
Apps like spotify now have their animation working just fine, with or without frame/titlebar.
It is also true for my electron apps

@GHOSCHT
Copy link

GHOSCHT commented Feb 22, 2022

I just stumbled on this pretty new microsoft guide illustrating the use of the new win11 API features.
They mentioned "Lack of frame styles" under the category "Apps that are not rounded by policy, but can be rounded", so I thought this might apply here. Just wanted to make this visible. I've got no experience with the win32 API, so I might be wrong...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants