Carlos Pita <[email protected]> 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"

_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to