Add new face: doom-modeline-unread-number.

This commit is contained in:
Vincent Zhang 2019-01-30 16:14:49 +08:00
parent cfb1f80f1f
commit c76cf1c199
2 changed files with 7 additions and 4 deletions

View file

@ -184,7 +184,10 @@ The icons may not be showed correctly in terminal and on Windows.")
`((t (:inherit (error bold))))
"Face for errors in the modeline. Used by `*flycheck'")
;; Bar
(defface doom-modeline-unread-number
`((t (:inherit (italic))))
"Face for unread number in the modeline. Used by `github', `mu4e', etc.")
(defface doom-modeline-bar '((t (:inherit highlight)))
"The face used for the left-most bar on the mode-line of an active window.")

View file

@ -1438,10 +1438,10 @@ Example:
(doom-modeline-icon-faicon "github"
:v-adjust -0.0575
:face 'doom-modeline-warning)
(propertize "#" 'face '(:inherit (doom-modeline-warning italic))))
(propertize "#" 'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
doom-modeline-vspc
(propertize (number-to-string doom-modeline--github-notifications-number)
'face '(:inherit (warning italic)))
'face '(:inherit (warning doom-modeline-unread-number)))
" ")
'help-echo "Github Notifications
mouse-1: Show notifications
@ -1513,7 +1513,7 @@ mouse-1: Toggle Debug on Quit"
global-mode-string))
(propertize
(concat " " (number-to-string mu4e-alert-mode-line) " ")
'face '(:inherit (italic))
'face 'doom-modeline-unread-number
'help-echo (if (= mu4e-alert-mode-line 1)
"You have an unread email"
(format "You have %s unread emails" mu4e-alert-mode-line)))))