Alan Third writes: > On Sat, May 24, 2025 at 07:57:26PM +0200, Manuel Giraud wrote: >> With this and the same SVG I provided, the foreground color of the text >> is black using a light theme. Using a dark theme, the foreground color >> of the text is white... So that seems to do the trick. > > Excellent, thanks. > > I've pushed a branch scratch/svg-colors with the various fixes. Can > you please check it's working as you'd expect? Thanks! Here is series of screenshot with emacs -Q from this branch that illustrates all the correct (IMO) features: SVG images keeps the default black, Emacs "widgets" follow the theme, DocView could follow the theme if the user wants. The first screenshot is with a light theme (modus-operandi). The second screenshot is with a dark theme (modus-vivendi) and the last screenshot is with the same dark theme after having set `doc-view-svg-face' to "inherit from default" only.