Enhance timemachine segment.

This commit is contained in:
Vincent Zhang 2021-07-22 02:33:30 +08:00
parent 77cd244ae5
commit 51af51d248
2 changed files with 3 additions and 5 deletions

View file

@ -786,7 +786,7 @@ etc. (also see the face `doom-modeline-unread-number')."
:group 'doom-modeline-faces)
(defface doom-modeline-buffer-timemachine
'((t (:inherit (doom-modeline-buffer-file italic underline))))
'((t (:inherit doom-modeline-buffer-file :slant italic)))
"Face for timemachine status."
:group 'doom-modeline-faces)

View file

@ -2864,14 +2864,12 @@ 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*"
:face (if active
'(:inherit doom-modeline-warning :weight normal)
'mode-line-inactive)
: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)
;; Buffer name
(propertize "*%b*" 'face (if active
'doom-modeline-buffer-timemachine