doc: Add a `background` default screenshot
This commit is contained in:
parent
46c83b4001
commit
de7ae79c6c
|
@ -1,6 +1,8 @@
|
|||
---------------------------------------------------------------------------
|
||||
-- A container capable of changing the background color, foreground color
|
||||
-- widget shape.
|
||||
--
|
||||
--@DOC_wibox_container_defaults_background_EXAMPLE@
|
||||
-- @author Uli Schlachter
|
||||
-- @copyright 2010 Uli Schlachter
|
||||
-- @release @AWESOME_VERSION@
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
--DOC_HIDE_ALL
|
||||
local wibox = require("wibox")
|
||||
local gears = {shape = require("gears.shape")}
|
||||
local beautiful = require("beautiful")
|
||||
|
||||
return {
|
||||
text = "Before",
|
||||
align = "center",
|
||||
valign = "center",
|
||||
widget = wibox.widget.textbox,
|
||||
},
|
||||
{
|
||||
{
|
||||
text = "After",
|
||||
align = "center",
|
||||
valign = "center",
|
||||
widget = wibox.widget.textbox,
|
||||
},
|
||||
shape = gears.shape.circle,
|
||||
shape_border_width = 5,
|
||||
shape_border_color = "#ff0000",
|
||||
bg = beautiful.bg_highlight,
|
||||
widget = wibox.container.background
|
||||
}
|
Loading…
Reference in New Issue