OSD symbols

Ted Gould ted at gould.cx
Wed Dec 2 07:05:59 PST 2009

On Wed, 2009-12-02 at 09:42 -0500, Matthias Clasen wrote:
> 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.

I strongly believe that we shouldn't do any automatic choosing of color,
and just allow the theme to set symbolic color names that are passed
into the SVG as named colors.  So a theme could set a "warning_color"
and adjust that based on what colors work.  Computers suck at choosing
colors and there becomes a11y issues as well.

I think the basis for this discussion was put here by Matthew Paul


But we had discussed the idea of substituting the colors at UDS, and I
think it's a worthwhile investigation.

If it is reasonable, I think we should standardize a set of "expected"
names for icon authors.  I'm thinking like "text_color",
"background_color" and "prelight_color" or some such.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/xdg/attachments/20091202/7ab51adc/attachment.pgp 

More information about the xdg mailing list