summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-10-26 21:57:14 +0100
committerjao <jao@gnu.org>2021-10-26 21:57:14 +0100
commit63c3013ee281783c3264ef589d54fa5b9fdb8ca3 (patch)
treeb520d02afed04420e32ff3356ed1a37cd78fa050 /lib/eos
parent34288685116e90826aaa5639bafc4b5ef58b2575 (diff)
downloadelibs-63c3013ee281783c3264ef589d54fa5b9fdb8ca3.tar.gz
elibs-63c3013ee281783c3264ef589d54fa5b9fdb8ca3.tar.bz2
the default bg/fg situation
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-minibuffer.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index fda2c57..6845c51 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -148,7 +148,7 @@
(jao-minibuffer--add-variable 'jao-minibuffer-msg-info variable-name order))
(defun jao-minibuffer-adjust-mode-line-faces ()
- (let ((bg (face-attribute 'default :background)))
+ (let ((bg (frame-parameter nil 'background-color)))
(set-face-attribute 'mode-line nil :box nil :height 1
:background bg :foreground bg
:overline jao-minibuffer-active-buffer-line-color
@@ -167,11 +167,11 @@
(setq-default mode-line-position jao-minibuffer--mode-line-position)
(dolist (b (buffer-list))
(with-current-buffer b (setq-local mode-line-format '(" "))))
- (jao-minibuffer-adjust-mode-line-faces)
(advice-add 'force-mode-line-update :after #'jao-minibuffer-refresh)
(advice-add 'select-window :after #'jao-minibuffer-refresh)
;; (add-hook 'window-selection-change-functions #'jao-minibuffer-refresh)
- (jao-minibuffer-add-variable 'jao-minibuffer--mode-line-format order))
+ (jao-minibuffer-add-variable 'jao-minibuffer--mode-line-format order)
+ (jao-minibuffer-adjust-mode-line-faces))
;;;###autoload
(defun jao-minibuffer-toggle ()