From 4207f8b22026bedd2fbf319e800a72079045eb08 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 23 May 2021 00:32:05 +0100 Subject: jao-minibuffer: subtler separator --- lib/eos/jao-minibuffer.el | 13 +++++++++---- 1 file 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)) -- cgit v1.2.3