2016-03-19 09:58:43 +01:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
|
|
|
|
local text_widget = {
|
|
|
|
text = "Hello world!",
|
|
|
|
widget = wibox.widget.textbox
|
|
|
|
}
|
2016-11-21 22:38:23 +01:00
|
|
|
|
2016-03-19 09:58:43 +01:00
|
|
|
parent : setup {
|
|
|
|
{
|
|
|
|
text_widget,
|
|
|
|
bg = '#ff0000',
|
2016-05-23 05:56:45 +02:00
|
|
|
widget = wibox.container.background
|
2016-03-19 09:58:43 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text_widget,
|
|
|
|
bg = '#00ff00',
|
2016-05-23 05:56:45 +02:00
|
|
|
widget = wibox.container.background
|
2016-03-19 09:58:43 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text_widget,
|
|
|
|
bg = '#0000ff',
|
2016-05-23 05:56:45 +02:00
|
|
|
widget = wibox.container.background
|
2016-03-19 09:58:43 +01:00
|
|
|
},
|
|
|
|
spacing = 10,
|
|
|
|
layout = wibox.layout.fixed.vertical
|
|
|
|
}
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|