macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.47k stars 680 forks source link

Remove titlebar but keep rounded corners #1422

Open a125x opened 11 months ago

a125x commented 11 months ago

Is there any way to remove window titlebar but keep standard rounded corners? Current solution with MMNoTitleBarWindow leaves sharp and ugly corners.

It'd be nice to see something like this instead:

image
ychin commented 11 months ago

Not right now. What exactly do you hope to see? A thinner title bar, or just MacVim without title bar but still show a draggable window with close/minimize buttons?

a125x commented 11 months ago

No, I mean no title bar at all without any buttons, something like kitty terminal with hide_window_decorations titlebar-only setting written in config.

Like on this screenshot, kitty terminal does not have any titlebar decorations and buttons, while macvim have them.

image

If I want to disable them, the only option is to disable title bar completely, but it looks pretty bad because macvim becomes the only app without standard rounded corners.

image

It's even more noticeable when I'm using window border based focus in the tiling window manager:

image
ychin commented 10 months ago

Hmm, in Kitty, when you turn on that setting, is the top part (where the title bar is) draggable (to move the window) just like a normal titled window? I wonder if they just hide the title bar or remove it.

a125x commented 10 months ago

Seems like it's not draggable. It's still possible to resize the window, but there's no way to move it around without some kind of third-party window manager, I assume.

ychin commented 10 months ago

Right. So basically the only difference is that it has rounded corners. I took a look and have a rough idea how to implement it. Will get to it a little bit later when I have time.

a125x commented 10 months ago

Thanks for the support!

winstongrace commented 1 month ago

Seems like it's not draggable. It's still possible to resize the window, but there's no way to move it around without some kind of third-party window manager, I assume.

Long-time user of both MacVim and Kitty. Just wanted to note that the window in Kitty is still draggable. If you hover on the left or right edge, and drag vertically, instead of horizontally to resize - it will drag the window.

Likewise, hover over the top or bottom window edge and drag horizontally.

winstongrace commented 1 month ago

I think it's a standard Mac thing – I can do the same with the majority of my apps. It just doesn't look like you can do it because the cursor switches to resizing arrows.