[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using more and/or better icons in Emacs
From: |
Alan Third |
Subject: |
Re: Using more and/or better icons in Emacs |
Date: |
Fri, 9 Apr 2021 20:30:14 +0100 |
On Fri, Apr 09, 2021 at 12:46:57PM -0500, Stefan Kangas wrote:
> For this to work, we obviously need to insert SVG files that are the
> same height as the current face.
>
> Experimenting with this now, using my patch,
>
> (insert-image (find-image '((:type svg
> :file "material/file/ic_folder_24px.svg"))))
>
> I'm getting an SVG in the buffer that is actually taller than the line.
> When we added new SVG icons to customize recently, Alan Third fiddled
> with the height and viewport in the SVG file to force it to be the same
> height as the line.
>
> But is there any way to do this directly from Emacs? It seems like a
> pain to have to edit the SVG file for every icon (and my attempts at
> doing so has failed so far...).
Something like
(insert-image (create-image "my/svg/file.svg" 'svg nil
:height (line-pixel-height)
:ascent 'center))
Although it won't tie in quite as neatly as having the actual SVG
height set to 1em or whatever.
--
Alan Third
- Re: Using more and/or better icons in Emacs, (continued)
- Re: Using more and/or better icons in Emacs, Yuri Khan, 2021/04/09
- Re: Using more and/or better icons in Emacs, tomas, 2021/04/09
- Re: Using more and/or better icons in Emacs, Dmitry Gutov, 2021/04/09
- Re: Using more and/or better icons in Emacs, Dmitry Gutov, 2021/04/09
- Re: Using more and/or better icons in Emacs, Stefan Kangas, 2021/04/09
- Re: Using more and/or better icons in Emacs, Dmitry Gutov, 2021/04/09
- Re: Using more and/or better icons in Emacs, Stefan Kangas, 2021/04/09
- Re: Using more and/or better icons in Emacs, Eli Zaretskii, 2021/04/09
- Re: Using more and/or better icons in Emacs,
Alan Third <=
- Re: Using more and/or better icons in Emacs, Alan Third, 2021/04/09
- Re: Using more and/or better icons in Emacs, Dmitry Gutov, 2021/04/09
- Re: Using more and/or better icons in Emacs, Stefan Kangas, 2021/04/09
- Re: Using more and/or better icons in Emacs, Stefan Kangas, 2021/04/09
- Re: Using more and/or better icons in Emacs, Alan Third, 2021/04/10
- Re: Using more and/or better icons in Emacs, Stefan Kangas, 2021/04/10
- Re: Using more and/or better icons in Emacs, Alan Third, 2021/04/10
- Re: Using more and/or better icons in Emacs, Alan Third, 2021/04/12
- Re: Using more and/or better icons in Emacs, Stefan Kangas, 2021/04/12
- Re: Using more and/or better icons in Emacs, Alan Third, 2021/04/13