Improve git-timemachine segment.

This commit is contained in:
Vincent Zhang 2019-11-20 22:56:38 +08:00
parent 54bc32359a
commit 694647c395
2 changed files with 16 additions and 12 deletions

View file

@ -534,6 +534,11 @@ It requires `circe' or `erc' package."
"Face for battery error statues."
:group 'doom-modeline-faces)
(defface doom-modeline-buffer-timemachine
'((t (:inherit (doom-modeline-buffer-path italic))))
"Face for battery error statues."
:group 'doom-modeline-faces)
;;
;; Externals

View file

@ -2480,20 +2480,19 @@ The cdr can also be a function that returns a name to use.")
(let ((active (doom-modeline--active)))
(concat
(doom-modeline-spc)
(doom-modeline--buffer-mode-icon)
;; Snapshot icon
(doom-modeline-icon 'material "camera_alt" "📷" "%1*"
(if active
'(:inherit doom-modeline-warning :weight normal)
'mode-line-inactive)
:height 1.1 :v-adjust -0.25)
(doom-modeline-vspc)
(when doom-modeline-icon
(concat
(doom-modeline--buffer-mode-icon)
;; Snapshot icon
(doom-modeline-icon 'material "camera_alt" "📷" "%1*"
(if active
'(:inherit doom-modeline-warning :weight normal)
'mode-line-inactive)
:height 1.1 :v-adjust -0.25)
(doom-modeline-vspc)))
;; buffer name
(propertize "*%b*" 'face (if active
'doom-modeline-buffer-file
'doom-modeline-buffer-timemachine
'mode-line-inactive)))))
;;