Optimize: calculate font height of mode-line.

Use face-attribute instead of frame-char-height.
Close #189.
This commit is contained in:
Vincent Zhang 2019-07-01 18:38:12 +08:00
parent 7d8ec424c8
commit 2bf802e7f5

View file

@ -499,7 +499,7 @@ If the actual char height is larger, it respects the actual char height.")
(defun doom-modeline--font-height ()
"Calculate the actual char height of the mode-line."
(round (* 1.68 (frame-char-height))))
(round (* 0.168 (face-attribute 'mode-line :height))))
(defun doom-modeline-icon-octicon (&rest args)
"Display octicon via ARGS."