From 5e23b0cb34bf05d0cff039d72a55ed77172bf555 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 18 Jul 2019 19:53:55 +0800 Subject: [PATCH] Improve git-timemachine segment. --- doom-modeline-segments.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index f1b4ebf..4a9b126 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -2255,20 +2255,21 @@ The cdr can also be a function that returns a name to use.") (concat (doom-modeline-spc) - (doom-modeline--buffer-mode-icon) + (let (doom-modeline-major-mode-color-icon) + (doom-modeline--buffer-mode-icon)) ;; snapshot icon (doom-modeline-buffer-file-state-icon "camera_alt" "%1*" - (if active 'warning 'mode-line-inactive) - 1.1 + (if active 'mode-line 'mode-line-inactive) + 1.2 -0.25) (doom-modeline-vspc) ;; buffer name (propertize "%b" 'face (if active - 'doom-modeline-buffer-file + '(inherit (font-lock-doc-face bold)) 'mode-line-inactive))))) (provide 'doom-modeline-segments)