diff --git a/sugar/graphics/entry.py b/sugar/graphics/entry.py index 40604bb4..ad92d0f6 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 335956e9..3ffaf4af 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 160bccb6..f638a442 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)