2013-05-11 21:02:42 +02:00
|
|
|
local setmetatable = setmetatable
|
|
|
|
local base = require( "radical.base" )
|
2014-01-05 23:35:23 +01:00
|
|
|
local color = require( "gears.color" )
|
2013-05-11 21:02:42 +02:00
|
|
|
|
|
|
|
local module = {
|
|
|
|
margins = {
|
|
|
|
TOP = 0 ,
|
|
|
|
BOTTOM = 0 ,
|
|
|
|
LEFT = 0 ,
|
|
|
|
BOTTOM = 0 ,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
local function draw(data)
|
|
|
|
data.arrow_type = base.arrow_type.NONE
|
2013-07-21 10:15:56 +02:00
|
|
|
if data.wibox then
|
|
|
|
data.wibox.border_width = 1
|
|
|
|
data.wibox.border_color = data.border_color
|
2014-01-05 23:35:23 +01:00
|
|
|
data.wibox:set_bg(color(data.bg))
|
2013-07-21 10:15:56 +02:00
|
|
|
end
|
2013-05-11 21:02:42 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return setmetatable(module, { __call = function(_, ...) return draw(...) end })
|
|
|
|
-- kate: space-indent on; indent-width 2; replace-tabs on;
|