add prelight on mouse enter to activity icons

* prelight uses profile.get_color()
This commit is contained in:
John (J5) Palmieri
2007-01-09 15:25:51 -05:00
parent 4853f68eaa
commit 4869f74642
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ from sugar.graphics import colors
from sugar.graphics import iconcolor
from sugar import profile
# TODO: rgb_to_html and html_to_rgb are useful elsewhere
# we should put this in a common module
def rgb_to_html(r, g, b):
""" (r, g, b) tuple (in float format) -> #RRGGBB """
return '#%02x%02x%02x' % (int(r * 255), int(g * 255), int(b * 255))