-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Remove Border Radius From Frameless Window On Mac #414
Comments
I think it looks good with the border. I've seen apps without that border and it just feels off/fake/not-native. |
I am asking for an option, I also do not recommend to disable that completely. |
The problem is it is actually quite hard to remove the bottom rounded corners, there is an upstream bug tracked at: |
Looking to use Electron to build an OSx version of https://github.com/captbaritone/winamp2-js, but I would need to be able to turn off rounded corners for it to look good. Seems like it might not be a solvable problem, but I wanted to add another example where non-rounded corners might be useful. |
I'm actually having the exact opposite problem. I would like the corners to round on windows and linux. Can anybody help me out? |
A hack that I used to remove the rounded border was to make the window transparent, then use a css |
A bit of a bump but wondering if anyone found a non-hack way of doing this? |
@mikaa123 how do you handle the click through the transparent window ? A real life example of border radius issue is when you want to display content on a video projector or a LED screen or any other projector. |
@gabrielstuff I don't it's possible to let a click go through a window, even if it's transparent |
I really need square corners as well. I'm doing screen capture of a video in a chromeless window, let's say placed at X=0, Y=0, and the screen capture is picking up those rounded corners. I need to be able to capture every pixel of the video (including the missing pixels in the corners). There has to be a way to make it where border radius can be set. I really need a radius of zero. |
Leave the corners away! win = new BrowserWindow({
frame: false,
transparent: true,
}); html {
width: /* less then window's size */;
height: /* the same */;
background: /* some color here */;
} It's a little hack though. But it works well~ |
@MondoGao this hack doesn't work if you're doing a full-screen app or one that docks to the side of the screen. Here's a quick example: Seems impossible to remove the border there, though the design would look much better without it. You can't indent it there because you want it to be flush with the sides. |
Given that there exist workarounds, this is something that isn't on our current roadmap and which I am thus goin to tag as |
Sadly, these "workarkounds" do not work for me on High Sierra. Kinda shame. |
I'm reopening this issue since there is an easy way to do that on newer versions of macOS. |
@zcbenz What is the easier way to remove rounded corners in newer versions of macOS? |
Applying |
Fameless window on mac contains border radius on both top and bottom, is there any option to remove that ?
The text was updated successfully, but these errors were encountered: