Commit 6ec170ca265b

Vincent Demeester <vincent@sbr.pm>
2024-10-29 22:36:06
tools/emacs: update active-mode-line color
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent aea8e67
Changed files (1)
tools
emacs
tools/emacs/init.el
@@ -124,9 +124,17 @@
       modus-themes-section-headings nil
       modus-themes-scale-headings t
       )
+
+(defun my-update-active-mode-line-colors ()
+  (set-face-attribute
+   'mode-line nil
+   :foreground (modus-themes-get-color-value 'fg-mode-line-active)
+   :background (modus-themes-get-color-value 'bg-blue-nuanced)))
+(add-hook 'modus-themes-after-load-theme-hook #'my-update-active-mode-line-colors)
 (define-key global-map (kbd "C-<f5>") #'modus-themes-toggle)
 
 (load-theme 'modus-operandi :no-confirm))
+(my-update-active-mode-line-colors)
 
 (require 'init-func)