mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-10 08:18:22 +00:00
get rid of "defer" hack
This commit is contained in:
@@ -9,9 +9,10 @@ return {
|
|||||||
align = 'center middle',
|
align = 'center middle',
|
||||||
width = 48,
|
width = 48,
|
||||||
slices = function (self)
|
slices = function (self)
|
||||||
return self.focused and 'defer'
|
if self.focused or self.hovered or self.pressed then
|
||||||
or self.hovered and 'defer'
|
return nil -- fall back to theme default
|
||||||
or false
|
end
|
||||||
|
return false -- no slices
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
statusbar = {
|
statusbar = {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ local function metaIndex (self, property)
|
|||||||
local layout = self.layout
|
local layout = self.layout
|
||||||
local style = layout:getStyle()
|
local style = layout:getStyle()
|
||||||
value = style and maybeCall(style:getProperty(self, property), self)
|
value = style and maybeCall(style:getProperty(self, property), self)
|
||||||
if value ~= nil and value ~= 'defer' then return value end
|
if value ~= nil then return value end
|
||||||
|
|
||||||
local theme = layout:getTheme()
|
local theme = layout:getTheme()
|
||||||
return theme and maybeCall(theme:getProperty(self, property), self)
|
return theme and maybeCall(theme:getProperty(self, property), self)
|
||||||
|
|||||||
Reference in New Issue
Block a user