42 lines
1.3 KiB
Lua
42 lines
1.3 KiB
Lua
--DOC_GEN_IMAGE --DOC_HIDE
|
|
local parent = ... --DOC_HIDE
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
local beautiful = require( "beautiful" ) --DOC_HIDE
|
|
|
|
local l = wibox.layout { --DOC_HIDE
|
|
forced_width = 640, --DOC_HIDE
|
|
forced_height = 120, --DOC_HIDE
|
|
spacing = 5, --DOC_HIDE
|
|
layout = wibox.layout.flex.horizontal --DOC_HIDE
|
|
} --DOC_HIDE
|
|
|
|
for _, i in ipairs {0, 2, 5, 10} do
|
|
local w = wibox.widget {
|
|
{
|
|
image = beautiful.awesome_icon,
|
|
forced_height = 30,
|
|
forced_width = 30,
|
|
widget = wibox.widget.imagebox
|
|
},
|
|
forced_width = 20, --DOC_HIDE
|
|
forced_height = 100, --DOC_HIDE
|
|
valign = "top",
|
|
halign = "left",
|
|
vertical_spacing = i,
|
|
widget = wibox.container.tile
|
|
}
|
|
|
|
l:add(wibox.widget {--DOC_HIDE
|
|
{--DOC_HIDE
|
|
markup = "<b>`vertical_spacing` = "..i.."</b>",--DOC_HIDE
|
|
widget = wibox.widget.textbox,--DOC_HIDE
|
|
},--DOC_HIDE
|
|
w,--DOC_HIDE
|
|
layout = wibox.layout.fixed.vertical,--DOC_HIDE
|
|
}) --DOC_HIDE
|
|
end
|
|
|
|
parent:add(l) --DOC_HIDE
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|