From 86c2de3e68b6e7ff5370add495d6276ee46676b5 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 15 Sep 2006 03:08:22 +0200 Subject: [PATCH] Urgh I had fill/stroke inverted, no wonder I was getting ugly colors! --- sugar/canvas/IconColor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/canvas/IconColor.py b/sugar/canvas/IconColor.py index 8babea0d..68739b0a 100644 --- a/sugar/canvas/IconColor.py +++ b/sugar/canvas/IconColor.py @@ -19,9 +19,9 @@ class IconColor: def __init__(self, color_string=None): if color_string == None or not is_valid(color_string): n = int(random.random() * (len(Colors.colors) - 1)) - [self._fill, self._stroke] = Colors.colors[n] + [self._stroke, self._fill] = Colors.colors[n] else: - [self._fill, self._stroke] = _parse_string(color_string) + [self._stroke, self._fill] = _parse_string(color_string) def get_stroke_color(self): return self._stroke