More color fixes

This commit is contained in:
Marco Pesenti Gritti 2006-09-15 03:22:01 +02:00
parent 86c2de3e68
commit b7a5854a0b

View File

@ -4,7 +4,7 @@ from sugar.canvas import Colors
def _parse_string(color_string):
if color_string == 'white':
return ['#4f4f4f', 'white']
return ['white', '#4f4f4f']
splitted = color_string.split(',')
if len(splitted) == 2:
@ -30,5 +30,5 @@ class IconColor:
return self._fill
def to_string(self):
return '%s,%s' % (self._fill, self._stroke)
return '%s,%s' % (self._stroke, self._fill)