[Sugar-devel] [PATCH clock] Port to Cairo

Gonzalo Odiard gonzalo at laptop.org
Tue Dec 27 08:37:05 EST 2011


Nice work.

May be you can replace:

        # XO Medium Green

> -        self._COLOR_MINUTES = colormap.alloc_color("#00B20D")
> +        self._COLOR_MINUTES = (0, 0.698, 0.051)
>
>
by anything like:

red, green,blue,alpha = style.Color("#00B20D").get_rgba()
self._COLOR_MINUTES = (red, green,blue)

or add the alpha and use set_source_rgba instead of set_source_rgb

Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111227/b952b3fd/attachment.html>


More information about the Sugar-devel mailing list