Fix: invalid faces of icons.

This commit is contained in:
Vincent Zhang 2019-02-12 03:50:36 +08:00
parent a1e765fa56
commit 7ea698723f

View file

@ -307,7 +307,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
,(doom-modeline-icon-height 1.1) ,(doom-modeline-icon-height 1.1)
:family :family
,(all-the-icons-icon-family icon) ,(all-the-icons-icon-family icon)
:inherit 'mode-line-inactive))) :inherit mode-line-inactive)))
(if active doom-modeline-vspc doom-modeline-inactive-vspc)))) (if active doom-modeline-vspc doom-modeline-inactive-vspc))))
;; state icon ;; state icon
@ -323,7 +323,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
,(doom-modeline-icon-height 1.3) ,(doom-modeline-icon-height 1.3)
:family :family
,(all-the-icons-icon-family icon) ,(all-the-icons-icon-family icon)
:inherit 'mode-line-inactive) :inherit mode-line-inactive)
'mode-line-inactive))) 'mode-line-inactive)))
(if active doom-modeline-vspc doom-modeline-inactive-vspc))) (if active doom-modeline-vspc doom-modeline-inactive-vspc)))
@ -520,7 +520,7 @@ Uses `all-the-icons-octicon' to fetch the icon."
,(doom-modeline-icon-height 1.2) ,(doom-modeline-icon-height 1.2)
:family :family
,(all-the-icons-icon-family icon) ,(all-the-icons-icon-family icon)
:inherit 'mode-line-inactive) :inherit mode-line-inactive)
'mode-line-inactive)) 'mode-line-inactive))
doom-modeline-inactive-vspc doom-modeline-inactive-vspc
(propertize text 'face 'mode-line-inactive))) (propertize text 'face 'mode-line-inactive)))
@ -822,7 +822,7 @@ icons."
,(doom-modeline-icon-height 1.3) ,(doom-modeline-icon-height 1.3)
:family :family
,(all-the-icons-icon-family icon) ,(all-the-icons-icon-family icon)
:inherit 'mode-line-inactive) :inherit mode-line-inactive)
'mode-line-inactive))) 'mode-line-inactive)))
(when (and icon text) doom-modeline-inactive-vspc) (when (and icon text) doom-modeline-inactive-vspc)
(when text (propertize text 'face 'mode-line-inactive)))) (when text (propertize text 'face 'mode-line-inactive))))