summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-05-23 00:32:05 +0100
committerjao <jao@gnu.org>2021-05-23 00:32:05 +0100
commit4207f8b22026bedd2fbf319e800a72079045eb08 (patch)
tree3d4239b7f27972b3b418a83d0c1454de2bdfdd94 /lib/eos
parentd4fe6b51138beb3932650614a527e416e3f1ca51 (diff)
downloadelibs-4207f8b22026bedd2fbf319e800a72079045eb08.tar.gz
elibs-4207f8b22026bedd2fbf319e800a72079045eb08.tar.bz2
jao-minibuffer: subtler separator
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-minibuffer.el13
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))