antfu / broz

A simple, frameless browser for screenshots
843 stars 28 forks source link

[Enhancement] Force Rounded Borders on Windows #10

Open http-samc opened 3 years ago

http-samc commented 3 years ago

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 3 years ago

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

alexanderniebuhr commented 3 years ago

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