mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Add new face: doom-modeline-unread-number.
This commit is contained in:
parent
cfb1f80f1f
commit
c76cf1c199
2 changed files with 7 additions and 4 deletions
|
@ -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.")
|
||||
|
||||
|
|
|
@ -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)))))
|
||||
|
|
Loading…
Reference in a new issue