mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: invalid icons after setting modeline fonts.
This commit is contained in:
parent
b1b51de36a
commit
9c283f50bd
1 changed files with 5 additions and 10 deletions
|
@ -310,8 +310,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
;; major mode icon
|
;; major mode icon
|
||||||
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
||||||
(when-let ((icon (or doom-modeline--buffer-file-icon
|
(when-let ((icon (or doom-modeline--buffer-file-icon
|
||||||
(doom-modeline-update-buffer-file-icon)))
|
(doom-modeline-update-buffer-file-icon))))
|
||||||
(face (if active 'mode-line 'mode-line-inactive)))
|
|
||||||
(concat
|
(concat
|
||||||
(if (and active doom-modeline-major-mode-color-icon)
|
(if (and active doom-modeline-major-mode-color-icon)
|
||||||
icon
|
icon
|
||||||
|
@ -319,8 +318,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
'face `(:height
|
'face `(:height
|
||||||
,(doom-modeline-icon-height 1.1)
|
,(doom-modeline-icon-height 1.1)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))))
|
||||||
:inherit ,face)))
|
|
||||||
(if active doom-modeline-vspc doom-modeline-inactive-vspc))))
|
(if active doom-modeline-vspc doom-modeline-inactive-vspc))))
|
||||||
|
|
||||||
;; state icon
|
;; state icon
|
||||||
|
@ -335,8 +333,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
`(:height
|
`(:height
|
||||||
,(doom-modeline-icon-height 1.3)
|
,(doom-modeline-icon-height 1.3)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))
|
||||||
:inherit mode-line-inactive)
|
|
||||||
'mode-line-inactive)))
|
'mode-line-inactive)))
|
||||||
(if active doom-modeline-vspc doom-modeline-inactive-vspc)))
|
(if active doom-modeline-vspc doom-modeline-inactive-vspc)))
|
||||||
|
|
||||||
|
@ -539,8 +536,7 @@ Uses `all-the-icons-octicon' to fetch the icon."
|
||||||
`(:height
|
`(:height
|
||||||
,(doom-modeline-icon-height 1.2)
|
,(doom-modeline-icon-height 1.2)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))
|
||||||
:inherit mode-line-inactive)
|
|
||||||
'mode-line-inactive))
|
'mode-line-inactive))
|
||||||
doom-modeline-inactive-vspc
|
doom-modeline-inactive-vspc
|
||||||
(propertize text 'face 'mode-line-inactive)))
|
(propertize text 'face 'mode-line-inactive)))
|
||||||
|
@ -853,8 +849,7 @@ icons."
|
||||||
`(:height
|
`(:height
|
||||||
,(doom-modeline-icon-height 1.3)
|
,(doom-modeline-icon-height 1.3)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))
|
||||||
:inherit mode-line-inactive)
|
|
||||||
'mode-line-inactive)))
|
'mode-line-inactive)))
|
||||||
(when (and icon text) doom-modeline-inactive-vspc)
|
(when (and icon text) doom-modeline-inactive-vspc)
|
||||||
(when text (propertize text 'face 'mode-line-inactive))))
|
(when text (propertize text 'face 'mode-line-inactive))))
|
||||||
|
|
Loading…
Reference in a new issue