mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
simplify style system
This commit is contained in:
@@ -66,8 +66,8 @@ local function metaIndex (self, property)
|
||||
|
||||
local layout = self.layout
|
||||
local style = layout:getStyle()
|
||||
value = style and style:getProperty(self, property)
|
||||
if value ~= nil and value ~= 'defer' then return maybeCall(value, self) end
|
||||
value = style and maybeCall(style:getProperty(self, property), self)
|
||||
if value ~= nil and value ~= 'defer' then return value end
|
||||
|
||||
local theme = layout:getTheme()
|
||||
return theme and maybeCall(theme:getProperty(self, property), self)
|
||||
|
||||
Reference in New Issue
Block a user