28 lines
551 B
Lua
28 lines
551 B
Lua
local parent = ... --DOC_HIDE
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local text_widget = {
|
|
text = "Hello world!",
|
|
widget = wibox.widget.textbox
|
|
}
|
|
|
|
parent : setup {
|
|
{
|
|
text_widget,
|
|
fg = '#ff0000',
|
|
widget = wibox.widget.background
|
|
},
|
|
{
|
|
text_widget,
|
|
fg = '#00ff00',
|
|
widget = wibox.widget.background
|
|
},
|
|
{
|
|
text_widget,
|
|
fg = '#0000ff',
|
|
widget = wibox.widget.background
|
|
},
|
|
spacing = 10,
|
|
layout = wibox.layout.fixed.vertical
|
|
}
|