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" )
|
|
|
|
|
|
|
|
parent:add(wibox.widget {
|
2016-12-27 21:39:08 +01:00
|
|
|
{
|
|
|
|
{
|
|
|
|
markup = "<b>rounded_edge</b> = <i>false</i>",
|
|
|
|
widget = wibox.widget.textbox
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
colors = {
|
|
|
|
beautiful.bg_normal,
|
|
|
|
beautiful.bg_highlight,
|
|
|
|
beautiful.border_color,
|
|
|
|
},
|
|
|
|
values = {
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
},
|
|
|
|
max_value = 10,
|
|
|
|
min_value = 0,
|
|
|
|
rounded_edge = false,
|
|
|
|
bg = "#ff000033",
|
|
|
|
border_width = 0.5,
|
|
|
|
border_color = "#000000",
|
|
|
|
widget = wibox.container.arcchart
|
|
|
|
},
|
|
|
|
margins = 2,
|
|
|
|
colors = {
|
|
|
|
beautiful.bg_normal,
|
|
|
|
beautiful.bg_highlight,
|
|
|
|
beautiful.border_color,
|
|
|
|
},
|
|
|
|
layout = wibox.container.margin
|
|
|
|
},
|
|
|
|
margins = 1,
|
|
|
|
color = beautiful.border_color,
|
|
|
|
layout = wibox.container.margin,
|
|
|
|
},
|
|
|
|
layout = wibox.layout.fixed.vertical
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
markup = "<b>rounded_edge</b> = <i>true</i>",
|
|
|
|
widget = wibox.widget.textbox
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
colors = {
|
|
|
|
beautiful.bg_normal,
|
|
|
|
beautiful.bg_highlight,
|
|
|
|
beautiful.border_color,
|
|
|
|
},
|
|
|
|
values = {
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
},
|
|
|
|
max_value = 10,
|
|
|
|
min_value = 0,
|
|
|
|
rounded_edge = true,
|
|
|
|
bg = "#ff000033",
|
|
|
|
border_width = 0.5,
|
|
|
|
border_color = "#000000",
|
|
|
|
widget = wibox.container.arcchart
|
|
|
|
},
|
|
|
|
margins = 1,
|
|
|
|
color = beautiful.border_color,
|
|
|
|
layout = wibox.container.margin,
|
|
|
|
},
|
|
|
|
layout = wibox.layout.fixed.vertical
|
|
|
|
},
|
|
|
|
layout = wibox.layout.flex.horizontal
|
|
|
|
})
|
2016-08-04 23:44:49 +02:00
|
|
|
|
|
|
|
return 500, 60
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|