Improve timemachine segment.

This commit is contained in:
Vincent Zhang 2021-09-09 01:22:23 +08:00
parent 16c654c121
commit 6fc40724d2

View file

@ -2864,13 +2864,8 @@ The cdr can also be a function that returns a name to use.")
(let ((active (doom-modeline--active))) (let ((active (doom-modeline--active)))
(concat (concat
(doom-modeline-spc) (doom-modeline-spc)
;; Snapshot icon
(doom-modeline-icon 'material "camera_alt" "📷" "%1*"
:face (if active 'doom-modeline-highlight 'mode-line-inactive)
:height 1.1 :v-adjust -0.25)
(and doom-modeline-icon (doom-modeline-vspc))
(doom-modeline--buffer-mode-icon) (doom-modeline--buffer-mode-icon)
;; Buffer name (doom-modeline--buffer-state-icon)
(propertize "*%b*" 'face (if active (propertize "*%b*" 'face (if active
'doom-modeline-buffer-timemachine 'doom-modeline-buffer-timemachine
'mode-line-inactive))))) 'mode-line-inactive)))))