[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emms-help] Not possible to change icon color
From: |
Yoni Rabkin |
Subject: |
Re: [emms-help] Not possible to change icon color |
Date: |
Fri, 04 Jan 2019 16:25:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Carlos Pita <address@hidden> writes:
> Hi,
>
> there is a var (not customizable but a var) to set the icon color:
>
> (defvar emms-mode-line-icon-color "black"...)
>
> But immediately after that the icon is produced from that color and
> other information and stored into emms-mode-line-icon-image-cache.
>
> This is too early since it doesn't give the user a chance to modify
> the color at all. Maybe that's the desired behavior but I must say
> it's weird that there is a well documented variable to essentially
> hardcode "black".
>
> What about making emms-mode-line-icon-image-cache a function, maybe
> emms-mode-line-icon-image-cached (with an ending 'd'), that produces
> the icon the first time it's called and stores it in a cache var
> afterwards?
Thanks for pointing this out.
I've made a small modification to how this works. The image color can
now be set ahead of time, and will take effect when
`emms-mode-line-mode-line-function' is invoked.
--
"Cut your own wood and it will warm you twice"