From 9753bfb775d04cedaa955a92b3e2256ceb28b0cc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Sep 2024 16:17:07 -0400 Subject: [PATCH] fix: {back,fore}ground-color in subsequent frames New frames created after the first get initialized with #000000 as their {back,fore}ground-color parameters, for some reason, making text unreadable in dark themes. --- lisp/doom-ui.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/doom-ui.el b/lisp/doom-ui.el index 847f5301f..1d0e5978c 100644 --- a/lisp/doom-ui.el +++ b/lisp/doom-ui.el @@ -589,7 +589,9 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original (setq doom-theme theme) (put 'doom-theme 'previous-themes (or last-themes 'none)) ;; DEPRECATED Hook into `enable-theme-functions' when we target 29 - (doom-run-hooks 'doom-load-theme-hook)))))) + (doom-run-hooks 'doom-load-theme-hook) + (setf (alist-get 'foreground-color default-frame-alist) (face-foreground 'default nil t) + (alist-get 'background-color default-frame-alist) (face-background 'default nil t))))))) ;;