doc: Partially revert the indentation changes
This messes up the doc
This commit is contained in:
parent
767cda5830
commit
6158091422
|
@ -3,20 +3,19 @@ local wibox = require( "wibox" ) --DOC_HIDE
|
||||||
local beautiful = require( "beautiful" ) --DOC_HIDE
|
local beautiful = require( "beautiful" ) --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
checked = true,
|
checked = true,
|
||||||
color = beautiful.bg_normal,
|
color = beautiful.bg_normal,
|
||||||
bg = "#ff00ff",
|
bg = "#ff00ff",
|
||||||
border_width = 3,
|
border_width = 3,
|
||||||
paddings = 4,
|
paddings = 4,
|
||||||
border_color = "#0000ff",
|
border_color = "#0000ff",
|
||||||
check_color = "#ff0000",
|
check_color = "#ff0000",
|
||||||
forced_width = 20, --DOC_HIDE
|
forced_width = 20, --DOC_HIDE
|
||||||
forced_height = 20, --DOC_HIDE
|
forced_height = 20, --DOC_HIDE
|
||||||
check_border_color = "#ffff00",
|
check_border_color = "#ffff00",
|
||||||
check_border_width = 1,
|
check_border_width = 1,
|
||||||
widget = wibox.widget.checkbox
|
widget = wibox.widget.checkbox
|
||||||
}
|
}
|
||||||
) --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
|
||||||
|
|
|
@ -11,19 +11,18 @@ local l = wibox.widget { --DOC_HIDE
|
||||||
for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
||||||
|
|
||||||
l:add( --DOC_HIDE
|
l:add( --DOC_HIDE
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
checked = true,
|
checked = true,
|
||||||
color = beautiful.bg_normal,
|
color = beautiful.bg_normal,
|
||||||
paddings = 2,
|
paddings = 2,
|
||||||
forced_width = 20, --DOC_HIDE
|
forced_width = 20, --DOC_HIDE
|
||||||
forced_height = 20, --DOC_HIDE
|
forced_height = 20, --DOC_HIDE
|
||||||
check_shape = gears.shape[s],
|
check_shape = gears.shape[s],
|
||||||
widget = wibox.widget.checkbox
|
widget = wibox.widget.checkbox
|
||||||
}
|
}
|
||||||
) --DOC_HIDE
|
) --DOC_HIDE
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
parent:add(l) --DOC_HIDE
|
parent:add(l) --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
|
||||||
|
|
|
@ -11,19 +11,18 @@ local l = wibox.widget { --DOC_HIDE
|
||||||
for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
for _, s in ipairs {"rectangle", "circle", "losange", "octogon"} do
|
||||||
|
|
||||||
l:add( --DOC_HIDE
|
l:add( --DOC_HIDE
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
checked = true,
|
checked = true,
|
||||||
color = beautiful.bg_normal,
|
color = beautiful.bg_normal,
|
||||||
paddings = 2,
|
paddings = 2,
|
||||||
forced_width = 20, --DOC_HIDE
|
forced_width = 20, --DOC_HIDE
|
||||||
forced_height = 20, --DOC_HIDE
|
forced_height = 20, --DOC_HIDE
|
||||||
shape = gears.shape[s],
|
shape = gears.shape[s],
|
||||||
widget = wibox.widget.checkbox
|
widget = wibox.widget.checkbox
|
||||||
}
|
}
|
||||||
) --DOC_HIDE
|
) --DOC_HIDE
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
parent:add(l) --DOC_HIDE
|
parent:add(l) --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,30 +4,29 @@ local beautiful = require( "beautiful" ) --DOC_HIDE
|
||||||
local gears = {shape = require("gears.shape")} --DOC_HIDE
|
local gears = {shape = require("gears.shape")} --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
wibox.widget { --DOC_HIDE
|
wibox.widget { --DOC_HIDE
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
checked = true,
|
checked = true,
|
||||||
color = beautiful.bg_normal,
|
color = beautiful.bg_normal,
|
||||||
paddings = 2,
|
paddings = 2,
|
||||||
forced_width = 20, --DOC_HIDE
|
forced_width = 20, --DOC_HIDE
|
||||||
forced_height = 20, --DOC_HIDE
|
forced_height = 20, --DOC_HIDE
|
||||||
shape = gears.shape.circle,
|
shape = gears.shape.circle,
|
||||||
widget = wibox.widget.checkbox
|
widget = wibox.widget.checkbox
|
||||||
}
|
}
|
||||||
, --DOC_HIDE
|
, --DOC_HIDE
|
||||||
wibox.widget { --DOC_HIDE
|
wibox.widget { --DOC_HIDE
|
||||||
checked = false, --DOC_HIDE
|
checked = false, --DOC_HIDE
|
||||||
color = beautiful.bg_normal, --DOC_HIDE
|
color = beautiful.bg_normal, --DOC_HIDE
|
||||||
paddings = 2, --DOC_HIDE
|
paddings = 2, --DOC_HIDE
|
||||||
forced_width = 20, --DOC_HIDE
|
forced_width = 20, --DOC_HIDE
|
||||||
forced_height = 20, --DOC_HIDE
|
forced_height = 20, --DOC_HIDE
|
||||||
shape = gears.shape.circle, --DOC_HIDE
|
shape = gears.shape.circle, --DOC_HIDE
|
||||||
widget = wibox.widget.checkbox --DOC_HIDE
|
widget = wibox.widget.checkbox --DOC_HIDE
|
||||||
}, --DOC_HIDE
|
}, --DOC_HIDE
|
||||||
spacing = 4, --DOC_HIDE
|
spacing = 4, --DOC_HIDE
|
||||||
layout = wibox.layout.fixed.horizontal --DOC_HIDE
|
layout = wibox.layout.fixed.horizontal --DOC_HIDE
|
||||||
} --DOC_HIDE
|
} --DOC_HIDE
|
||||||
|
|
||||||
) --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
|
||||||
|
|
|
@ -20,5 +20,4 @@ parent:add( w ) --DOC_HIDE
|
||||||
for _, v in ipairs(data) do --DOC_HIDE
|
for _, v in ipairs(data) do --DOC_HIDE
|
||||||
w:add_value(v) --DOC_HIDE
|
w:add_value(v) --DOC_HIDE
|
||||||
end --DOC_HIDE
|
end --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,12 +4,11 @@ local beautiful = require( "beautiful" ) --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
image = beautiful.awesome_icon,
|
image = beautiful.awesome_icon,
|
||||||
resize = false,
|
resize = false,
|
||||||
widget = wibox.widget.imagebox
|
widget = wibox.widget.imagebox
|
||||||
}
|
}
|
||||||
|
|
||||||
) --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,22 @@ local beautiful = require( "beautiful" ) --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
data_list = {
|
data_list = {
|
||||||
{ 'L1', 100 },
|
{ 'L1', 100 },
|
||||||
{ 'L2', 200 },
|
{ 'L2', 200 },
|
||||||
{ 'L3', 300 },
|
{ 'L3', 300 },
|
||||||
},
|
},
|
||||||
border_width = 1,
|
border_width = 1,
|
||||||
forced_height = 50, --DOC_HIDE
|
forced_height = 50, --DOC_HIDE
|
||||||
forced_width = 100, --DOC_HIDE
|
forced_width = 100, --DOC_HIDE
|
||||||
colors = {
|
colors = {
|
||||||
beautiful.bg_normal,
|
beautiful.bg_normal,
|
||||||
beautiful.bg_highlight,
|
beautiful.bg_highlight,
|
||||||
beautiful.border_color,
|
beautiful.border_color,
|
||||||
},
|
},
|
||||||
widget = wibox.widget.piechart
|
widget = wibox.widget.piechart
|
||||||
}
|
}
|
||||||
|
|
||||||
) --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
|
||||||
|
|
|
@ -5,17 +5,16 @@ 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.33,
|
value = 0.33,
|
||||||
forced_height = 20,
|
forced_height = 20,
|
||||||
forced_width = 100,
|
forced_width = 100,
|
||||||
shape = gears.shape.rounded_bar,
|
shape = gears.shape.rounded_bar,
|
||||||
border_width = 2,
|
border_width = 2,
|
||||||
border_color = beautiful.border_color,
|
border_color = beautiful.border_color,
|
||||||
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
|
||||||
|
|
|
@ -5,20 +5,19 @@ local gears = {shape=require("gears.shape") } --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget {
|
wibox.widget {
|
||||||
bar_shape = gears.shape.rounded_rect,
|
bar_shape = gears.shape.rounded_rect,
|
||||||
bar_height = 3,
|
bar_height = 3,
|
||||||
bar_color = beautiful.border_color,
|
bar_color = beautiful.border_color,
|
||||||
handle_color = beautiful.bg_normal,
|
handle_color = beautiful.bg_normal,
|
||||||
handle_shape = gears.shape.circle,
|
handle_shape = gears.shape.circle,
|
||||||
handle_border_color = beautiful.border_color,
|
handle_border_color = beautiful.border_color,
|
||||||
handle_border_width = 1,
|
handle_border_width = 1,
|
||||||
value = 25,
|
value = 25,
|
||||||
widget = wibox.widget.slider,
|
widget = wibox.widget.slider,
|
||||||
forced_height = 50, --DOC_HIDE
|
forced_height = 50, --DOC_HIDE
|
||||||
forced_width = 100, --DOC_HIDE
|
forced_width = 100, --DOC_HIDE
|
||||||
}
|
}
|
||||||
|
|
||||||
) --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,13 +3,12 @@ local wibox = require("wibox") --DOC_HIDE
|
||||||
|
|
||||||
parent:add( --DOC_HIDE
|
parent:add( --DOC_HIDE
|
||||||
|
|
||||||
wibox.widget{
|
wibox.widget{
|
||||||
markup = "This <i>is</i> a <b>textbox</b>!!!",
|
markup = "This <i>is</i> a <b>textbox</b>!!!",
|
||||||
align = "center",
|
align = "center",
|
||||||
valign = "center",
|
valign = "center",
|
||||||
widget = wibox.widget.textbox
|
widget = wibox.widget.textbox
|
||||||
}
|
}
|
||||||
|
|
||||||
) --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