Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-27 21:35:28 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-27 21:35:28 (GMT)
commitf09a63930f6470c737f7c606116a5ce7f6265f63 (patch)
tree5993205383197dcac6df45a7fd864172583bbc47 /sugar/graphics
parent8a9232234b654c8acfe6a415c1e7cb254647080b (diff)
Fix stroke/fill on ZoomBox icons.
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/button.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sugar/graphics/button.py b/sugar/graphics/button.py
index 4419327..7b487ae 100644
--- a/sugar/graphics/button.py
+++ b/sugar/graphics/button.py
@@ -47,7 +47,8 @@ class Button(hippo.CanvasBox, hippo.CanvasItem):
self._round_box.props.background_color = color.BLACK.get_int()
self._round_box.props.padding_top = units.points_to_pixels(1)
self._round_box.props.padding_bottom = units.points_to_pixels(1)
-
+ self._round_box.props.spacing = units.points_to_pixels(3)
+
self._text_box = hippo.CanvasText()
self._text_box.props.font_desc = font.DEFAULT.get_pango_desc()
self._text_box.props.color = color.BUTTON_NORMAL.get_int()
@@ -87,8 +88,8 @@ class Button(hippo.CanvasBox, hippo.CanvasItem):
else:
self._icon = CanvasIcon(icon_name=value,
scale=units.SMALL_ICON_SCALE,
- fill_color=color.WHITE,
- stroke_color=color.BLACK)
+ fill_color=color.BLACK,
+ stroke_color=color.WHITE)
# Insert icon on the label's left
self._round_box.remove_all()
self._round_box.append(self._icon)