mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Enhance timemachine segment.
This commit is contained in:
parent
77cd244ae5
commit
51af51d248
2 changed files with 3 additions and 5 deletions
|
@ -786,7 +786,7 @@ etc. (also see the face `doom-modeline-unread-number')."
|
||||||
:group 'doom-modeline-faces)
|
:group 'doom-modeline-faces)
|
||||||
|
|
||||||
(defface doom-modeline-buffer-timemachine
|
(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."
|
"Face for timemachine status."
|
||||||
:group 'doom-modeline-faces)
|
:group 'doom-modeline-faces)
|
||||||
|
|
||||||
|
|
|
@ -2864,14 +2864,12 @@ 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)
|
||||||
(doom-modeline--buffer-mode-icon)
|
|
||||||
;; Snapshot icon
|
;; Snapshot icon
|
||||||
(doom-modeline-icon 'material "camera_alt" "📷" "%1*"
|
(doom-modeline-icon 'material "camera_alt" "📷" "%1*"
|
||||||
:face (if active
|
:face (if active 'doom-modeline-highlight 'mode-line-inactive)
|
||||||
'(:inherit doom-modeline-warning :weight normal)
|
|
||||||
'mode-line-inactive)
|
|
||||||
:height 1.1 :v-adjust -0.25)
|
:height 1.1 :v-adjust -0.25)
|
||||||
(and doom-modeline-icon (doom-modeline-vspc))
|
(and doom-modeline-icon (doom-modeline-vspc))
|
||||||
|
(doom-modeline--buffer-mode-icon)
|
||||||
;; Buffer name
|
;; Buffer name
|
||||||
(propertize "*%b*" 'face (if active
|
(propertize "*%b*" 'face (if active
|
||||||
'doom-modeline-buffer-timemachine
|
'doom-modeline-buffer-timemachine
|
||||||
|
|
Loading…
Add table
Reference in a new issue