From 3c7ad2f3d8b94d0a5e2b33e4716cbb7ddada9a19 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 30 Dec 2018 00:15:35 +0800 Subject: [PATCH] Fix: not same size of state icon in active and inactive windows. --- doom-modeline.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 5716e01..0048901 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -766,8 +766,8 @@ Uses `all-the-icons-material' to fetch the icon." (doom-modeline-icon-material icon :face (if (doom-modeline--active) face) - :height (or height 1.1) - :v-adjust (or voffset -0.225)))) + :height (or height 1.0) + :v-adjust (or voffset -0.215)))) (defvar-local doom-modeline--buffer-file-state-icon nil) (defun doom-modeline-update-buffer-file-state-icon (&rest _) @@ -776,9 +776,7 @@ Uses `all-the-icons-material' to fetch the icon." (cond (buffer-read-only (doom-modeline-buffer-file-state-icon "lock" - 'doom-modeline-warning - 1.0 - -0.215)) + 'doom-modeline-warning)) ((buffer-modified-p) (doom-modeline-buffer-file-state-icon "save" @@ -787,9 +785,7 @@ Uses `all-the-icons-material' to fetch the icon." (not (file-exists-p buffer-file-name))) (doom-modeline-buffer-file-state-icon "do_not_disturb_alt" - 'doom-modeline-urgent - 1.0 - -0.215)) + 'doom-modeline-urgent)) ((buffer-narrowed-p) (doom-modeline-buffer-file-state-icon "vertical_align_center"