Fix: doom-modeline-major-mode-color-icon is not working.

This commit is contained in:
Vincent Zhang 2019-05-06 04:55:29 +08:00
parent 4795a3b3a8
commit 3e5edc255c

View file

@ -378,8 +378,10 @@ directory, the file name, and its state (modified, read-only or non-existent)."
(unless (string-empty-p icon)
(concat
(propertize icon 'face `(:inherit
;; TODO: doom-modeline-major-mode-color-icon
,(get-text-property 0 'face icon)
,(let ((plist (get-text-property 0 'face icon)))
(if doom-modeline-major-mode-color-icon
plist
(remove :inherit plist)))
:inherit
,(if active 'mode-line 'mode-line-inactive)))
(if active doom-modeline-vspc doom-modeline-inactive-vspc)))))