style system overhaul

This commit is contained in:
airstruck
2015-11-09 17:14:40 -05:00
parent f866442cf1
commit 058d9351e5
9 changed files with 86 additions and 83 deletions

View File

@@ -39,6 +39,7 @@ A tree of widget data.
A Layout instance.
--]]--
function Layout:constructor (data)
data = data or {}
self.accelerators = {}
self:addDefaultHandlers()
self:setStyle()
@@ -46,8 +47,8 @@ function Layout:constructor (data)
self.isShown = false
self.hooks = {}
self.root = data or {}
Widget(self, self.root)
self.root = data
Widget(self, data)
end
--[[--