From 1c092cbd17aba35b22bb872e84bf6feca892cf1e Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 1 Jul 2019 19:47:47 +0800 Subject: [PATCH] Optimize doom-modeline--font-height. --- doom-modeline-core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 529b8cd..1a03bd7 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -500,9 +500,9 @@ 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." (let ((height (face-attribute 'mode-line :height))) - (round (* 0.168 (if (number-or-marker-p height) - height - (* (frame-char-height) 10)))))) + (round (* 1.68 (if (number-or-marker-p height) + (/ height 10) + (frame-char-height)))))) (defun doom-modeline-icon-octicon (&rest args) "Display octicon via ARGS."