mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-04 17:01:39 -05:00
Improve git-timemachine segment.
This commit is contained in:
parent
54bc32359a
commit
694647c395
2 changed files with 16 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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)))))
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue