[Sugar-devel] [PATCH clock] Port to Cairo
Manuel Quiñones
manuq at laptop.org
Tue Dec 27 11:24:38 EST 2011
El día 27 de diciembre de 2011 10:37, Gonzalo Odiard
<gonzalo at laptop.org> escribió:
> 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
Thanks! I was hoping to skip the harcoded colors in rgb values, and
continue using the hexadecimal codes as the activity originally does.
I will resend the patch with this change.
--
.. manuq ..
More information about the Sugar-devel
mailing list