mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Fix incorrect icon while doom-modeline-major-mode-color-icon is nil.
This commit is contained in:
parent
a18f913cf1
commit
c2b286f2f3
1 changed files with 2 additions and 3 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue