Change faces of flycheck icons.

This commit is contained in:
Vincent Zhang 2018-11-26 14:09:22 +08:00
parent bba86db87f
commit 8aeb80f32d

View file

@ -900,7 +900,7 @@ Uses `all-the-icons-material' to fetch the icon."
(concat (if vc-mode " " " ")
(when icon
(concat
(doom-modeline-icon-material icon :face face :height 0.95 :v-adjust (or voffset -0.2))
(doom-modeline-icon-material icon :face face :height 1.1 :v-adjust (or voffset -0.2))
(if text doom-modeline-vspc)))
(if text (propertize text 'face face))
(if vc-mode " " " ")))
@ -917,9 +917,9 @@ Uses `all-the-icons-material' to fetch the icon."
(let-alist (flycheck-count-errors flycheck-current-errors)
(let ((sum (+ (or .error 0) (or .warning 0))))
(doom-modeline-flycheck-icon "do_not_disturb_alt"
(number-to-string sum)
(if .error 'doom-modeline-urgent 'doom-modeline-warning)
-0.15)))
(number-to-string sum)
(if .error 'doom-modeline-urgent 'doom-modeline-warning)
-0.2)))
(doom-modeline-flycheck-icon "check" nil 'doom-modeline-info)))
(`running (doom-modeline-flycheck-icon "access_time" nil 'font-lock-doc-face -0.25))
(`no-checker (doom-modeline-flycheck-icon "sim_card_alert" "-" 'font-lock-doc-face))