mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-25 14:18:03 +01:00
Use ‘window-default-font-height’, not ‘window-mode-line-height’
‘window-mode-line-height’ seems to also include the border around the mode-line, which for the icons I think we generally don’t want to have happen. A better option would be to use something that gets the font height specifically in the mode-line, but right now I can’t think of a good way to get at this.
This commit is contained in:
parent
f16969f053
commit
9eac12fe51
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ This uses `window-mode-line-height' on emacs 24.4+. Otherwise it assumes 16.
|
|||
|
||||
This function also adjusts the line height by `mode-icons-line-height-adjust'."
|
||||
(+ mode-icons-line-height-adjust
|
||||
(or (and (fboundp 'window-mode-line-height) (window-mode-line-height window)) 16)))
|
||||
(or (and (fboundp 'window-mode-line-height) (window-default-font-height window)) 16)))
|
||||
|
||||
(defun mode-icons-get-icon-display (icon type &optional face active)
|
||||
"Get the value for the display property of ICON having TYPE.
|
||||
|
|
Loading…
Reference in a new issue