awesome/tests/examples/wibox/container/background/fg.lua

30 lines
649 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.container.background
},
{
text_widget,
fg = '#00ff00',
widget = wibox.container.background
},
{
text_widget,
fg = '#0000ff',
widget = wibox.container.background
},
spacing = 10,
layout = wibox.layout.fixed.vertical
}
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80