Enable and disable colorful major icons.

Close #182.
This commit is contained in:
Vincent Zhang 2019-06-04 22:56:12 +08:00
parent 59c81a0d81
commit 33284e5d9a
2 changed files with 8 additions and 2 deletions

View file

@ -380,7 +380,13 @@ mouse-1: Previous buffer\nmouse-3: Next buffer"
(when icon (when icon
(concat (concat
(if (doom-modeline--active) (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 (propertize icon 'face `(:inherit
,(get-text-property 0 'face icon) ,(get-text-property 0 'face icon)
:inherit :inherit

View file

@ -4,7 +4,7 @@
;; Author: Vincent Zhang <seagle0128@gmail.com> ;; Author: Vincent Zhang <seagle0128@gmail.com>
;; Homepage: https://github.com/seagle0128/doom-modeline ;; 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")) ;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (dash "2.11.0"))
;; Keywords: faces mode-line ;; Keywords: faces mode-line