awesome/tests/examples/wibox/container/defaults/margin.lua

55 lines
1.2 KiB
Lua

--DOC_HIDE_ALL
local wibox = require("wibox")
local beautiful = require("beautiful")
return {
nil,
{
nil,
{
{
text = "Before",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
bg = beautiful.bg_highlight,
widget = wibox.container.background
},
nil,
expand = "none",
layout = wibox.layout.align.horizontal,
},
nil,
expand = "none",
layout = wibox.layout.align.vertical,
},
{
nil,
{
nil,
{
{
{
text = "After",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
bg = beautiful.bg_highlight,
widget = wibox.container.background
},
top = 5,
left = 20,
color = "#ff0000",
widget = wibox.container.margin,
},
nil,
expand = "none",
layout = wibox.layout.align.horizontal,
},
nil,
expand = "none",
layout = wibox.layout.align.vertical,
}