From c76cf1c1992c972a2766a2b204778409f45dac05 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 30 Jan 2019 16:14:49 +0800 Subject: [PATCH] Add new face: doom-modeline-unread-number. --- doom-modeline-core.el | 5 ++++- doom-modeline-segments.el | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index f05d9bf..947fce6 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -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.") diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 83d2ae2..de32288 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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)))))