GNU bug report logs - #77841
Some svg image's black color is replaced by emacs's theme foreground color

Previous Next

Package: emacs;

Reported by: Billy Lei <LeiYiXia29 <at> outlook.com>

Date: Wed, 16 Apr 2025 12:16:02 UTC

Severity: normal

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 77841 <at> debbugs.gnu.org, Manuel Giraud <manuel <at> ledu-giraud.fr>, Billy Lei <LeiYiXia29 <at> outlook.com>
Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color
Date: Sat, 3 May 2025 17:34:22 +0100
[Message part 1 (text/plain, inline)]
On Sat, May 03, 2025 at 03:39:22PM +0000, Ihor Radchenko wrote:
> 
> Alan Third <alan <at> idiocy.org> writes:
> > Does anyone know anything about "CurrentColor" in CSS? I'm wondering
> > if that's our solution...
> 
> I do not know much, but from quick googling:
> https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentcolor_keyword

As far as I an tell the attached patch works for anything that comes
with Emacs itself. It may break any third-party SVG files used as
widgets, or just relying on the fill colour being set. I don't think
there's anything we can do about that if we want to change this
behaviour.

I don't know if anyone is actually using SVG files in that way, so
this may not be a real concern. I'd still suggest we probably want to
discuss this in Emacs devel to get it a little more visibility before
pushing it.

Needs documentation and news entry. But lets see if this actually
works for everyone first.
-- 
Alan Third
[0001-Change-foreground-color-handling-for-SVG-files-bug-7.patch (text/x-diff, attachment)]

This bug report was last modified 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.