From 33284e5d9a6409096856a7a43ca6eb18b8b06e23 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 4 Jun 2019 22:56:12 +0800 Subject: [PATCH] Enable and disable colorful major icons. Close #182. --- doom-modeline-segments.el | 8 +++++++- doom-modeline.el | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 5b0d826..862c77c 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -380,7 +380,13 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (when icon (concat (if (doom-modeline--active) - icon + (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) :inherit diff --git a/doom-modeline.el b/doom-modeline.el index d57eecf..8af95bd 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -4,7 +4,7 @@ ;; Author: Vincent Zhang ;; Homepage: https://github.com/seagle0128/doom-modeline -;; Version: 2.3.2 +;; Version: 2.3.3 ;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (dash "2.11.0")) ;; Keywords: faces mode-line