mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Optimize: calculate font height of mode-line.
Use face-attribute instead of frame-char-height. Close #189.
This commit is contained in:
parent
7d8ec424c8
commit
2bf802e7f5
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ If the actual char height is larger, it respects the actual char height.")
|
||||||
|
|
||||||
(defun doom-modeline--font-height ()
|
(defun doom-modeline--font-height ()
|
||||||
"Calculate the actual char height of the mode-line."
|
"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)
|
(defun doom-modeline-icon-octicon (&rest args)
|
||||||
"Display octicon via ARGS."
|
"Display octicon via ARGS."
|
||||||
|
|
Loading…
Reference in a new issue