reorganize themes, see #42

This commit is contained in:
airstruck
2016-02-11 11:10:40 -05:00
parent c9a5811adc
commit 774d2856c1
6 changed files with 278 additions and 250 deletions

View File

@@ -179,7 +179,6 @@ local function initialize (self)
else
shortcut = Shortcut.stringify(shortcut)
end
self.height = font:getLineHeight() + pad * 2
self.flow = 'x'
self:addChild { icon = icon, width = self.height }
self:addChild { text = text, width = textWidth }
@@ -197,7 +196,9 @@ local function initialize (self)
self.icon = nil
self.text = nil
else
self.width = textWidth
-- top level menu
self.width = textWidth + pad * 2
self.align = 'middle center'
end
end