2014-01-25 07:33:50 +01:00
|
|
|
local setmetatable = setmetatable
|
2016-02-11 07:36:50 +01:00
|
|
|
local wibox = require("wibox" )
|
|
|
|
local theme = require( "radical.theme" )
|
|
|
|
local shape = require( "gears.shape" )
|
2014-01-25 07:33:50 +01:00
|
|
|
|
|
|
|
local module = {
|
|
|
|
margins = {
|
|
|
|
TOP = 0,
|
|
|
|
BOTTOM = 0,
|
2014-02-07 05:47:24 +01:00
|
|
|
RIGHT = 15,
|
|
|
|
LEFT = 15
|
2014-01-25 07:33:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-11 07:36:50 +01:00
|
|
|
local function draw(item)
|
|
|
|
item.widget:set_shape(shape.hexagon)
|
|
|
|
item.widget:set_shape_border_width(item.border_width)
|
|
|
|
theme.update_colors(item)
|
2014-01-25 07:33:50 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return setmetatable(module, { __call = function(_, ...) return draw(...) end })
|
|
|
|
-- kate: space-indent on; indent-width 2; replace-tabs on;
|