radical/item_style/basic.lua

23 lines
457 B
Lua
Raw Normal View History

local setmetatable = setmetatable
local print = print
local module = {
margins = {
TOP = 2,
BOTTOM = 2,
RIGHT = 2,
LEFT = 4
}
}
local function draw(data,item,is_focussed,is_pressed)
if is_focussed then
item.widget:set_bg(data.bg_focus)
else
2013-07-13 07:05:46 +02:00
item.widget:set_bg(nil)
end
end
return setmetatable(module, { __call = function(_, ...) return draw(...) end })
-- kate: space-indent on; indent-width 2; replace-tabs on;