Update functions for icons.

This commit is contained in:
Vincent Zhang 2018-06-21 19:06:00 +08:00
parent 2beb80206a
commit e69364282c

View file

@ -364,17 +364,17 @@ active."
(defun doom-modeline-maybe-icon-octicon (&rest args) (defun doom-modeline-maybe-icon-octicon (&rest args)
"Display octicon via `ARGS'." "Display octicon via `ARGS'."
(when (and (featurep 'all-the-icons) (display-graphic-p) (not (eq system-type 'windows-nt))) (when (display-graphic-p)
(apply 'all-the-icons-octicon args))) (apply 'all-the-icons-octicon args)))
(defun doom-modeline-maybe-icon-faicon (&rest args) (defun doom-modeline-maybe-icon-faicon (&rest args)
"Display font awesome icon via `ARGS'." "Display font awesome icon via `ARGS'."
(when (and (featurep 'all-the-icons) (display-graphic-p) (not (eq system-type 'windows-nt))) (when (display-graphic-p)
(apply 'all-the-icons-faicon args))) (apply 'all-the-icons-faicon args)))
(defun doom-modeline-maybe-icon-material (&rest args) (defun doom-modeline-maybe-icon-material (&rest args)
"Display material icon via `ARGS'." "Display material icon via `ARGS'."
(when (and (featurep 'all-the-icons) (display-graphic-p) (not (eq system-type 'windows-nt))) (when (display-graphic-p)
(apply 'all-the-icons-material args))) (apply 'all-the-icons-material args)))
(defsubst doom-modeline--active () (defsubst doom-modeline--active ()