Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sugar/graphics/color.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/color.py b/sugar/graphics/color.py
index 32d248c..864e8e3 100644
--- a/sugar/graphics/color.py
+++ b/sugar/graphics/color.py
@@ -62,7 +62,7 @@ class RGBColor(object):
int(self._b * 65535))
def get_html(self):
- return '#%x%x%x' % (self._r * 255, self._g * 255, self._b * 255)
+ return '#%02x%02x%02x' % (self._r * 255, self._g * 255, self._b * 255)
class HTMLColor(RGBColor):
def __init__(self, html_color):