From 46c83b400134cc76905b2ca1aced124317f4df49 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 24 May 2016 13:34:25 -0400 Subject: [PATCH] doc: Add a `mirror` default screenshot --- lib/wibox/container/mirror.lua | 2 ++ .../wibox/container/defaults/mirror.lua | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 tests/examples/wibox/container/defaults/mirror.lua diff --git a/lib/wibox/container/mirror.lua b/lib/wibox/container/mirror.lua index d9229050..975f57ca 100644 --- a/lib/wibox/container/mirror.lua +++ b/lib/wibox/container/mirror.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_container_defaults_mirror_EXAMPLE@ -- @author dodo -- @copyright 2012 dodo -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/container/defaults/mirror.lua b/tests/examples/wibox/container/defaults/mirror.lua new file mode 100644 index 00000000..e216c9b4 --- /dev/null +++ b/tests/examples/wibox/container/defaults/mirror.lua @@ -0,0 +1,19 @@ +--DOC_HIDE_ALL +local wibox = require("wibox") + +return { + text = "Before", + align = "center", + valign = "center", + widget = wibox.widget.textbox, +}, +{ + { + text = "After", + align = "center", + valign = "center", + widget = wibox.widget.textbox, + }, + reflection = {horizontal = true}, + widget = wibox.container.mirror +}