2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE --DOC_HIDE
|
2016-07-25 04:35:58 +02:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local gears = {shape = require("gears.shape") } --DOC_HIDE
|
|
|
|
local beautiful = require("beautiful") --DOC_HIDE
|
|
|
|
|
|
|
|
|
|
|
|
local l = wibox.layout { --DOC_HIDE
|
|
|
|
forced_height = 120, --DOC_HIDE
|
|
|
|
forced_width = 100, --DOC_HIDE
|
|
|
|
layout = wibox.layout.flex.vertical --DOC_HIDE
|
|
|
|
} --DOC_HIDE
|
|
|
|
|
|
|
|
for _, shape in ipairs {"rounded_bar", "octogon", "hexagon", "powerline" } do
|
|
|
|
l:add(wibox.widget {
|
2016-12-27 21:39:08 +01:00
|
|
|
value = 0.33,
|
|
|
|
bar_shape = gears.shape[shape],
|
|
|
|
bar_border_color = beautiful.border_color,
|
|
|
|
bar_border_width = 1,
|
|
|
|
border_width = 2,
|
|
|
|
border_color = beautiful.border_color,
|
|
|
|
margins = 5, --DOC_HIDE
|
|
|
|
paddings = 1,
|
|
|
|
widget = wibox.widget.progressbar,
|
|
|
|
})
|
2016-07-25 04:35:58 +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
|