diff options
-rw-r--r-- | lib/eos/jao-minibuffer.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el index d535f93..a7eaadd 100644 --- a/lib/eos/jao-minibuffer.el +++ b/lib/eos/jao-minibuffer.el @@ -142,10 +142,15 @@ (setq-default mode-line-format '(" ")) (dolist (b (buffer-list)) (with-current-buffer b (setq-local mode-line-format '(" ")))) - (set-face-attribute 'mode-line nil :box nil :height 1 - :background jao-minibuffer-active-buffer-line-color) - (set-face-attribute 'mode-line-inactive nil :box nil :height 1 - :background jao-minibuffer-inactive-buffer-line-color) + (let ((bg (face-attribute 'default :background))) + (set-face-attribute 'mode-line nil :box nil :height 1 + :foreground bg + :overline jao-minibuffer-active-buffer-line-color + :extend t) + (set-face-attribute 'mode-line-inactive nil :box nil :height 1 + :foreground bg + :overline jao-minibuffer-inactive-buffer-line-color + :extend t)) (advice-add 'force-mode-line-update :after #'jao-minibuffer-refresh) (advice-add 'select-window :after #'jao-minibuffer-refresh) (jao-minibuffer-add-variable 'jao-minibuffer--mode-line-format order)) |