doc: Add a `margin` default screenshot

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-24 14:13:47 -04:00
parent 26cf28b23b
commit 47a471072a
2 changed files with 56 additions and 0 deletions

View File

@ -1,4 +1,6 @@
---------------------------------------------------------------------------
--
--@DOC_wibox_container_defaults_margin_EXAMPLE@
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@

View File

@ -0,0 +1,54 @@
--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,
}