From 5cc06cb5ebaba91a272b34082de21166809cf742 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 05 Mar 2007 11:43:32 +0000 Subject: Tweak optionmenu and entry paddings --- (limited to 'sugar') diff --git a/sugar/graphics/entry.py b/sugar/graphics/entry.py index 40604bb..ad92d0f 100644 --- a/sugar/graphics/entry.py +++ b/sugar/graphics/entry.py @@ -58,6 +58,7 @@ class Entry(hippo.CanvasBox, hippo.CanvasItem): self._round_box = RoundBox() self._round_box.props.border_color = color.FRAME_BORDER.get_int() + self._round_box.props.padding = units.points_to_pixels(2) self.append(self._round_box, hippo.PACK_EXPAND) self._canvas_widget = hippo.CanvasWidget() diff --git a/sugar/graphics/optionmenu.py b/sugar/graphics/optionmenu.py index 335956e..3ffaf4a 100644 --- a/sugar/graphics/optionmenu.py +++ b/sugar/graphics/optionmenu.py @@ -66,7 +66,7 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem): self._round_box = RoundBox() self._round_box.props.border_color = color.FRAME_BORDER.get_int() self._round_box.props.spacing = units.points_to_pixels(3) - self._round_box.props.padding = units.points_to_pixels(1) + self._round_box.props.padding = units.points_to_pixels(3) self.append(self._round_box, hippo.PACK_EXPAND) self._canvas_text = hippo.CanvasText(text=_('No options'), diff --git a/sugar/graphics/roundbox.py b/sugar/graphics/roundbox.py index 160bccb..f638a44 100644 --- a/sugar/graphics/roundbox.py +++ b/sugar/graphics/roundbox.py @@ -25,7 +25,7 @@ from sugar.graphics import color class RoundBox(hippo.CanvasBox, hippo.CanvasItem): __gtype_name__ = 'SugarRoundBox' - _BORDER_DEFAULT = 2.0 + _BORDER_DEFAULT = units.points_to_pixels(1.0) def __init__(self, **kwargs): hippo.CanvasBox.__init__(self, **kwargs) -- cgit v0.9.1