rougier / elegant-emacs

A very minimal but elegant emacs (I think)
GNU General Public License v3.0
1.36k stars 79 forks source link

Transparent title bar #2

Open remysucre opened 4 years ago

remysucre commented 4 years ago

Make the title bar transparent for a cleaner look. Tested on MacOS.

rougier commented 4 years ago

Thanks. Does that work if you're not on mac ? (I'm on mac and I completely removed the titlebar)

remysucre commented 4 years ago

It should, those parameters are not specific to Mac. I can't test now because I don't have a linux desktop atm.

justinbarclay commented 4 years ago

As far as I know the ns-* namespace is specific to MacOS. (Where ns here stands for NeXTSTEP)

sivark commented 4 years ago

FWIW, I use the following to avoid any window decoration including borders and titlebar (tested on linux):

(set-frame-parameter nil 'undecorated t)

DivineDominion commented 2 years ago

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:

Screen Shot 2021-11-07 at 00 56 35

Dark theme with dark system appearance:

Screen Shot 2021-11-07 at 00 57 01

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.