From 3e5edc255c4d0481e1e5a1bd6c366f66dee5062f Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 6 May 2019 04:55:29 +0800 Subject: [PATCH] Fix: doom-modeline-major-mode-color-icon is not working. --- doom-modeline-segments.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index f65ab8a..26c7251 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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)))))