Tweak optionmenu and entry paddings
This commit is contained in:
parent
5ae521be77
commit
5cc06cb5eb
@ -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()
|
||||
|
@ -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'),
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user