mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
os/macos: activate ns-auto-titlebar-mode later
If triggered too early, it may read the wrong frame background mode and you'll get dark text on a dark titlebar in MacOS dark mode (or light text on a light titlebar in light mode).
This commit is contained in:
@ -24,10 +24,9 @@
|
||||
|
||||
;; Sets `ns-transparent-titlebar' and `ns-appearance' frame parameters so window
|
||||
;; borders will match the enabled theme.
|
||||
(and (or (daemonp)
|
||||
(display-graphic-p))
|
||||
(require 'ns-auto-titlebar nil t)
|
||||
(ns-auto-titlebar-mode +1))
|
||||
(when (or (daemonp)
|
||||
(display-graphic-p))
|
||||
(add-hook 'doom-load-theme-hook #'ns-auto-titlebar-mode))
|
||||
|
||||
;; HACK On MacOS, disabling the menu bar makes MacOS treat Emacs as a
|
||||
;; non-application window -- which means it doesn't automatically capture
|
||||
|
Reference in New Issue
Block a user