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
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|