Dermot Musgrove wrote:
> 
> Hi all,
> 
> I notice that Glade generates colors for Druid* bg, logo_bg etc modulus 256.
> I have read that to cover the spectrum (decimal 0-65535) values in the
> range decimal 0-255 should be multiplied by 257 (hex 101) so that (in hex)
> 
> 00 goes to 0000
> 01 goes to 0101
> c0 goes to c0c0
> ff goes to ffff
> 
> Glade ends up using only the spectrum 0000-ff00 so that colors are a little
> bit darker (I can't tell the difference myself though).

I think the only place Glade does this is in load_parse_color() isn't it?
I've updated it to multiply by 257.

We may switch to 16-bit colors in the XML at some point. I think all we need
to change is load_parse_color() and save_color() to do this.

Damon



+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to