Re: How to adapt colors of SVG icon?




On Oct 28, 2015 7:48 AM, "Olaf Leidinger" <oleid mescharet de> wrote:
>
> Dear List,
>
> some gnome-shell themes have non-black background or
> a non-white foreground. When loading a two-colored SVG file, what's the
> easiest way to use the current shell theme's foreground and background
> color for this very file? I'm using the SVG file via a St.Icon in a
> PanelMenu.Button.

Symbolic SVGs are recolored using CSS, you define four style classes, foreground background success and warning, and the theme fills in the definition at load time.
(The names might be different because I'm going from memory, maybe fg instead of foreground etc. Check the gtk docs)

Cheers

Giovanni

> Best,
>
> Olaf
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> https://mail.gnome.org/mailman/listinfo/gnome-shell-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]