Fix aligment of menu icons
This commit is contained in:
parent
52ca451a05
commit
5ae521be77
@ -42,11 +42,11 @@ class MenuItem(hippo.CanvasBox):
|
||||
|
||||
self._action_id = action_id
|
||||
self.props.padding = 5
|
||||
self.props.spacing = 5
|
||||
|
||||
if icon_name:
|
||||
icon = CanvasIcon(icon_name=icon_name,
|
||||
scale=units.SMALL_ICON_SCALE)
|
||||
scale=units.SMALL_ICON_SCALE,
|
||||
box_width=units.microgrid_to_pixels(3))
|
||||
if icon_color:
|
||||
icon.props.xo_color = icon_color
|
||||
self.append(icon)
|
||||
|
Loading…
Reference in New Issue
Block a user