Changes
Jump to navigation
Jump to search
Line 11:
Line 11:
+
Line 19:
Line 20:
+
+
+
Line 30:
Line 34:
+
Development Team/Almanac/sugar.graphics.style (view source)
Revision as of 13:43, 2 October 2008
, 13:43, 2 October 2008no edit summary
*COLOR_INACTIVE_STROKE
*COLOR_INACTIVE_STROKE
*COLOR_TEXT_FIELD_GREY
*COLOR_TEXT_FIELD_GREY
=== How do I use the system colors in my activity? ===
=== How do I use the system colors in my activity? ===
intWhite = sugar.graphics.style.COLOR_WHITE.get_int()
intWhite = sugar.graphics.style.COLOR_WHITE.get_int()
</pre>
</pre>
=== Is there a transparent color? ===
=== Is there a transparent color? ===
Yes there is. You want to use sugar.graphics.style.COLOR_TRANSPARENT
Yes there is. You want to use sugar.graphics.style.COLOR_TRANSPARENT
=== Can I use the sugar color object for my own colors since it offers so many useful conversion functions? ===
=== Can I use the sugar color object for my own colors since it offers so many useful conversion functions? ===
red = sugar.graphics.style.Color('#FF0000')
red = sugar.graphics.style.Color('#FF0000')
</pre>
</pre>