doc: Fix the progressbar examples indentation
Correctly, this time
This commit is contained in:
parent
de4715cacd
commit
1a7c816182
|
@ -5,25 +5,25 @@ local beautiful = require("beautiful") --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
value = 75,
|
value = 75,
|
||||||
max_value = 100,
|
max_value = 100,
|
||||||
border_width = 2,
|
border_width = 2,
|
||||||
border_color = beautiful.border_color,
|
border_color = beautiful.border_color,
|
||||||
color = beautiful.border_color,
|
color = beautiful.border_color,
|
||||||
shape = gears.shape.rounded_bar,
|
shape = gears.shape.rounded_bar,
|
||||||
bar_shape = gears.shape.rounded_bar,
|
bar_shape = gears.shape.rounded_bar,
|
||||||
clip = false,
|
clip = false,
|
||||||
forced_height = 30,
|
forced_height = 30,
|
||||||
forced_width = 100,
|
forced_width = 100,
|
||||||
paddings = 5,
|
paddings = 5,
|
||||||
margins = {
|
margins = {
|
||||||
top = 12,
|
top = 12,
|
||||||
bottom = 12,
|
bottom = 12,
|
||||||
},
|
},
|
||||||
widget = wibox.widget.progressbar,
|
widget = wibox.widget.progressbar,
|
||||||
}
|
}
|
||||||
|
|
||||||
) --DOC_HIDE
|
) --DOC_HIDE
|
||||||
|
|
||||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
|
@ -4,23 +4,23 @@ local beautiful = require("beautiful") --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
{
|
{
|
||||||
max_value = 1,
|
max_value = 1,
|
||||||
value = 0.5,
|
value = 0.5,
|
||||||
forced_height = 20,
|
forced_height = 20,
|
||||||
forced_width = 100,
|
forced_width = 100,
|
||||||
paddings = 1,
|
paddings = 1,
|
||||||
border_width = 1,
|
border_width = 1,
|
||||||
border_color = beautiful.border_color,
|
border_color = beautiful.border_color,
|
||||||
widget = wibox.widget.progressbar,
|
widget = wibox.widget.progressbar,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text = "50%",
|
text = "50%",
|
||||||
widget = wibox.widget.textbox,
|
widget = wibox.widget.textbox,
|
||||||
},
|
},
|
||||||
layout = wibox.layout.stack
|
layout = wibox.layout.stack
|
||||||
}
|
}
|
||||||
|
|
||||||
) --DOC_HIDE
|
) --DOC_HIDE
|
||||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
|
@ -3,17 +3,17 @@ local wibox = require("wibox") --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
{
|
{
|
||||||
max_value = 1,
|
max_value = 1,
|
||||||
value = 0.33,
|
value = 0.33,
|
||||||
widget = wibox.widget.progressbar,
|
widget = wibox.widget.progressbar,
|
||||||
},
|
},
|
||||||
forced_height = 100,
|
forced_height = 100,
|
||||||
forced_width = 20,
|
forced_width = 20,
|
||||||
direction = "east",
|
direction = "east",
|
||||||
layout = wibox.container.rotate,
|
layout = wibox.container.rotate,
|
||||||
}
|
}
|
||||||
|
|
||||||
) --DOC_HIDE
|
) --DOC_HIDE
|
||||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue