2013-05-11 21:02:42 +02:00
|
|
|
local setmetatable = setmetatable
|
2016-02-21 08:34:05 +01:00
|
|
|
local context = require( "radical.context" )
|
|
|
|
local base = require( "radical.base" )
|
|
|
|
local shape = require( "gears.shape" )
|
|
|
|
local placement = require( "awful.placement" )
|
2013-05-11 21:02:42 +02:00
|
|
|
|
|
|
|
local function new(args)
|
2016-06-24 08:02:40 +02:00
|
|
|
args = args or {}
|
2013-05-11 21:02:42 +02:00
|
|
|
args.internal = args.internal or {}
|
|
|
|
args.arrow_type = base.arrow_type.NONE
|
2016-02-21 08:34:05 +01:00
|
|
|
|
|
|
|
local ret = context(args)
|
2016-03-02 10:19:44 +01:00
|
|
|
|
|
|
|
local w = ret.wibox
|
|
|
|
|
|
|
|
w:set_shape (shape.rounded_rect, 10)
|
|
|
|
|
2016-06-24 06:46:41 +02:00
|
|
|
w.placement = placement.centered
|
2016-02-21 08:34:05 +01:00
|
|
|
|
|
|
|
return ret
|
2013-05-11 21:02:42 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return setmetatable({}, { __call = function(_, ...) return new(...) end })
|
|
|
|
-- kate: space-indent on; indent-width 2; replace-tabs on;
|