diff options
author | John (J5) Palmieri <quinticent@localhost.localdomain> | 2007-01-09 20:25:51 (GMT) |
---|---|---|
committer | John (J5) Palmieri <quinticent@localhost.localdomain> | 2007-01-09 20:25:51 (GMT) |
commit | 4869f7464200cd7dd5e94b66647b9217e7a4b6d9 (patch) | |
tree | 9ab2bd65260a67b329ee5699b72cf52a72a1e269 /shell/view/home/activitiesdonut.py | |
parent | 4853f68eaaac91793bd6fc38c4a02acd10cc980e (diff) |
add prelight on mouse enter to activity icons
* prelight uses profile.get_color()
Diffstat (limited to 'shell/view/home/activitiesdonut.py')
-rw-r--r-- | shell/view/home/activitiesdonut.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/view/home/activitiesdonut.py b/shell/view/home/activitiesdonut.py index 117fd28..4796a37 100644 --- a/shell/view/home/activitiesdonut.py +++ b/shell/view/home/activitiesdonut.py @@ -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)) |