2016-07-26 08:08:56 +02:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require( "wibox" ) --DOC_HIDE
|
|
|
|
local beautiful = require( "beautiful" ) --DOC_HIDE
|
|
|
|
local gears = {shape = require("gears.shape")} --DOC_HIDE
|
|
|
|
|
|
|
|
local l = wibox.widget { --DOC_HIDE
|
|
|
|
spacing = 4, --DOC_HIDE
|
|
|
|
layout = wibox.layout.fixed.horizontal --DOC_HIDE
|
|
|
|
} --DOC_HIDE
|
|
|
|
|
|
|
|
for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
|
|
|
|
2016-12-27 21:39:08 +01:00
|
|
|
l:add( --DOC_HIDE
|
2017-01-01 22:06:39 +01:00
|
|
|
wibox.widget {
|
|
|
|
checked = true,
|
|
|
|
color = beautiful.bg_normal,
|
|
|
|
paddings = 2,
|
|
|
|
forced_width = 20, --DOC_HIDE
|
|
|
|
forced_height = 20, --DOC_HIDE
|
|
|
|
check_shape = gears.shape[s],
|
|
|
|
widget = wibox.widget.checkbox
|
|
|
|
}
|
|
|
|
) --DOC_HIDE
|
2016-07-26 08:08:56 +02:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
parent:add(l) --DOC_HIDE
|
2016-12-31 13:59:38 +01:00
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|