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