summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-09-02 08:28:42 -0700
committerFranck Cuny <franck@fcuny.net>2024-09-02 08:28:42 -0700
commit84c4eac6bacb8907b6b2a0b26f983e38a742c5d6 (patch)
treea53dae5f42532ece8a35f23184445c276704fbaa
parentupdate configuration for `savehist` (diff)
downloademacs.d-84c4eac6bacb8907b6b2a0b26f983e38a742c5d6.tar.gz
tweak ef-theme a bit
Make the modeline more visible.
-rw-r--r--config/init-ui.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/init-ui.el b/config/init-ui.el
index d19da49..9372d9e 100644
--- a/config/init-ui.el
+++ b/config/init-ui.el
@@ -67,10 +67,19 @@
 
 (use-package ef-themes
   :ensure t
+  :init
+  (add-hook 'ef-themes-post-load-hook #'my-ef-themes-mode-line)
+  :preface
+  (defun my-ef-themes-mode-line ()
+    "Tweak the style of the mode lines."
+    (ef-themes-with-colors
+      (custom-set-faces
+       `(mode-line ((,c :background ,bg-active :foreground ,fg-main :box (:line-width 1 :color ,fg-dim))))
+       `(mode-line-inactive ((,c :box (:line-width 1 :color ,bg-active)))))))
   :custom
   (ef-themes-region '(intense no-extend neutral))
-  (ef-themes-variable-pitch-ui t)
-  (ef-themes-mixed-fonts t)
+  (ef-themes-variable-pitch-ui nil)
+  (ef-themes-mixed-fonts nil)
   (ef-themes-disable-other-themes t)
   :config
   (ef-themes-select 'ef-cyprus))