[Sugar-devel] xo colors & gradients

Gary Martin garycmartin at googlemail.com
Mon Aug 23 16:49:32 EDT 2010


Hi Erik,

On 23 Aug 2010, at 18:52, Erik Blankinship <erikb at mediamods.com> wrote:

> When I launch an activity, the SVG icon used to display my activity changes appearance by rendering with the XO colors.
> 
> (1) Is there a way to render gradients using the fill color?  For example, if the child's XO fill color is red, I would like to render an activity icon using a red gradient.  Maybe there are tricks in SVG which make this possible?

Yep, that's possible. Personally I edit all my SVGs by hand, so it's easy for me to generate clean XML code and put the fill and stroke variables in the correct places. It would seem to feel somewhat off the spirit of the sugar icon style (strong, clear, flat shaded silhouettes), but there are a few cases where I have considered something along this line, i.e. an icon that represents something specifically with different colours like ColourDeducto vs Deducto. I don't think I've seen any activity icons try this yet, but it might work for some specific cases if it's not used to try and make 3d style shaded button icons.  

> (2) Also, is there a way to override the XO colors and use different colors?  I know this is against UI guidelines, I am just wondering if it is possible.

Yes, unfortunately :( There are still many activity icons that don't correctly use the owner fill and stroke colours. I try and fix them best I can and post to the original authors, but it can be slow going. The main issue here is that folks completely loose any metaphor of colour representing identity throughout the Sugar UI. It only takes a few incorrect icons dotted about to dilute this idea. GCompris is the tough to solve case here, there are 100 plus ported activities all with multi coloured icons.

Do you need a hand with a specific icon?

Regards,
--Gary

> Thank you.
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


More information about the Sugar-devel mailing list