Open remysucre opened 4 years ago
Thanks. Does that work if you're not on mac ? (I'm on mac and I completely removed the titlebar)
It should, those parameters are not specific to Mac. I can't test now because I don't have a linux desktop atm.
As far as I know the ns-*
namespace is specific to MacOS. (Where ns here stands for NeXTSTEP)
FWIW, I use the following to avoid any window decoration including borders and titlebar (tested on linux):
(set-frame-parameter nil 'undecorated t)
macOS NSWindow
title bar colors depend on system settings -- or, more precise, the app's appearance, which is derived from the system unless it opts out.
Dark theme with light system appearance:
Dark theme with dark system appearance:
So there are caveats when this is enabled by default.
I'd suggest adding this only if the themes auto-set for ns-system-appearance-change-functions
(that are hooks that are called when switching from light to dark and back again, and during the initial appearance setting when the app launches).
Otherwise this could look weird if users don't understand what's going on.
Make the title bar transparent for a cleaner look. Tested on MacOS.