2016-08-04 23:44:49 +02:00
|
|
|
--DOC_HIDE_ALL
|
2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE
|
2016-08-04 23:44:49 +02:00
|
|
|
local parent = ...
|
|
|
|
local wibox = require( "wibox" )
|
|
|
|
local beautiful = require( "beautiful" )
|
|
|
|
|
|
|
|
local cols = {"#ff000022","#00ff0022","#0000ff22","#ff00ff22"}
|
|
|
|
|
|
|
|
local l = wibox.layout.fixed.horizontal()
|
|
|
|
l.spacing = 10
|
|
|
|
parent:add(l)
|
|
|
|
|
|
|
|
for _, v in ipairs {0,1,3,6.5} do
|
|
|
|
l:add(wibox.widget {
|
2016-12-27 21:39:08 +01:00
|
|
|
{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text = v,
|
|
|
|
align = "center",
|
|
|
|
valign = "center",
|
|
|
|
widget = wibox.widget.textbox,
|
|
|
|
},
|
|
|
|
bg= "#ff000044",
|
|
|
|
widget = wibox.container.background,
|
|
|
|
},
|
|
|
|
colors = {
|
|
|
|
beautiful.bg_normal,
|
|
|
|
beautiful.bg_highlight,
|
|
|
|
beautiful.border_color,
|
|
|
|
},
|
|
|
|
values = {
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
},
|
|
|
|
max_value = 10,
|
|
|
|
min_value = 0,
|
|
|
|
rounded_edge = false,
|
|
|
|
bg = "#00ff0033",
|
|
|
|
border_width = v,
|
|
|
|
border_color = "#000000",
|
|
|
|
widget = wibox.container.arcchart
|
|
|
|
},
|
2016-08-04 23:44:49 +02:00
|
|
|
bg = cols[_],
|
|
|
|
widget = wibox.container.background
|
2016-12-27 21:39:08 +01:00
|
|
|
})
|
2016-08-04 23:44:49 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return nil, 60
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|