mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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
|
;; 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
|
||||||
|
Reference in New Issue
Block a user