antfu/broz

[Enhancement] Force Rounded Borders on Windows

http-samc opened this issue · 2 comments

Hi, loving the project. One thing that helps make the presentation more aesthetic (in addition to the frameless aspect) is rounded corners. Needless to say, OSX already does this automatically, but for Windows users, it would help a lot.

I don't use JS in my workflow very often, but it seems that setting the transparent flag to true in the browser initialization and appending some sort of border-radius styling onto the body of the page should do the trick.

If you want, I can make the PR, though I haven't written JS in a few years so it might take longer than it should (feel free to do it yourself if you know the details).

There's a good chance I could be doing something wrong too, regardless, here's where I got the idea.

antfu commented

Yes, we could. As the transparent window in electron has come hard caveats, I'd prefer to have it under and cli options. PR welcome, thanks

questionable if we can check for windows version, in electron os package?
Win 11 has native rounded borders.