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
;;
(defvar doom-modeline-height (pcase system-type
('darwin 25)
('gnu/linux 30)
('windows-nt 40)
(_ 26))
(defvar doom-modeline-height (let ((font (face-font 'mode-line)))
(if font (* 2 (aref (font-info font) 2)) 25))
"How tall the mode-line should be (only respected in GUI Emacs).")
(defvar doom-modeline-bar-width 3