Optimize: Set height via font.

This commit is contained in:
Vincent Zhang 2018-12-21 00:54:12 +08:00
parent cbd86384fe
commit 7f95e8b8d8

View file

@ -81,11 +81,8 @@
;; Variables ;; Variables
;; ;;
(defvar doom-modeline-height (pcase system-type (defvar doom-modeline-height (let ((font (face-font 'mode-line)))
('darwin 25) (if font (* 2 (aref (font-info font) 2)) 25))
('gnu/linux 30)
('windows-nt 40)
(_ 26))
"How tall the mode-line should be (only respected in GUI Emacs).") "How tall the mode-line should be (only respected in GUI Emacs).")
(defvar doom-modeline-bar-width 3 (defvar doom-modeline-bar-width 3