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:
parent
e4539bb56c
commit
27d3e73fb7
1 changed files with 3 additions and 4 deletions
|
@ -24,10 +24,9 @@
|
||||||
|
|
||||||
;; Sets `ns-transparent-titlebar' and `ns-appearance' frame parameters so window
|
;; Sets `ns-transparent-titlebar' and `ns-appearance' frame parameters so window
|
||||||
;; borders will match the enabled theme.
|
;; borders will match the enabled theme.
|
||||||
(and (or (daemonp)
|
(when (or (daemonp)
|
||||||
(display-graphic-p))
|
(display-graphic-p))
|
||||||
(require 'ns-auto-titlebar nil t)
|
(add-hook 'doom-load-theme-hook #'ns-auto-titlebar-mode))
|
||||||
(ns-auto-titlebar-mode +1))
|
|
||||||
|
|
||||||
;; HACK On MacOS, disabling the menu bar makes MacOS treat Emacs as a
|
;; HACK On MacOS, disabling the menu bar makes MacOS treat Emacs as a
|
||||||
;; non-application window -- which means it doesn't automatically capture
|
;; non-application window -- which means it doesn't automatically capture
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue