34 lines
821 B
Lua
34 lines
821 B
Lua
--DOC_HIDE_ALL
|
|
local parent = ...
|
|
local wibox = require("wibox")
|
|
local beautiful = require("beautiful")
|
|
|
|
local function gen(val)
|
|
return wibox.widget {
|
|
{
|
|
{
|
|
text = "Value: "..val,
|
|
align = "center",
|
|
valign = "center",
|
|
widget = wibox.widget.textbox,
|
|
},
|
|
bg = beautiful.bg_normal,
|
|
widget = wibox.widget.background,
|
|
},
|
|
paddings = val,
|
|
value = 0.75,
|
|
max_value = 1,
|
|
min_value = 0,
|
|
widget = wibox.container.radialprogressbar
|
|
}
|
|
end
|
|
|
|
local l = wibox.layout {
|
|
gen(0),gen(5),gen(10),
|
|
forced_height = 30,
|
|
forced_width = 400,
|
|
layout = wibox.layout.flex.horizontal
|
|
}
|
|
|
|
parent:add(l)
|