Fix incorrect icon while doom-modeline-major-mode-color-icon is nil.

This commit is contained in:
Vincent Zhang 2020-02-16 02:21:14 +08:00
parent a18f913cf1
commit c2b286f2f3

View file

@ -362,9 +362,8 @@ mouse-1: Previous buffer\nmouse-3: Next buffer"
(if (doom-modeline--active)
(if doom-modeline-major-mode-color-icon
icon
(propertize icon 'face `(:inherit ,(let ((props (get-text-property 0 'face icon)))
props (remove :inherit props))
:inherit mode-line)))
(propertize icon 'face `(:inherit ,(get-text-property 0 'face icon)
:foreground ,(face-foreground 'mode-line))))
(propertize icon 'face `(:inherit ,(get-text-property 0 'face icon)
:inherit doom-modeline-icon-inactive)))
(doom-modeline-vspc)))))