OSD symbols

Matthias Clasen mclasen at redhat.com
Wed Dec 2 06:42:32 PST 2009

On Wed, 2009-12-02 at 15:14 +0100, Jakub Steiner wrote:
> On Wed, Dec 2, 2009 at 3:00 PM, Patryk Zawadzki <patrys at pld-linux.org> wrote:
> > To do it properly you'll need a "glyph" drawing mode for icons.
> >
> > https://bugzilla.gnome.org/show_bug.cgi?id=591698
> Perhaps that is indeed the way to go. I would have personally thought
> injecting a stylesheet "path { fill: #fff }" where the color would be
> taken from text[NORMAL] or somesuch would be more appropriate? This
> would enable us to color a specific part of the symbol differently
> (think about a last bar of battery-critical). Just have that part of
> the SVG labeled 'warning' and then do something like
> "path[inkscape:label='warning'] { fill: #f00 } where that would be
> mapped from gtkrc (either a new named color @warning or
> @selected_fg_color).

I don't think anything replacing individual colors is going to work very
well in general. I was thinking you'd probably have to do something the
color rotation in the gimp: convert to hls, rotate to map hue in icon to
hue of theme color, then convert back. That would let you have 'red' as
alert color in your icon and e.g. purple in the theme, and let you map
all shades of red in the icon to shades of purple.

More information about the xdg mailing list