From 7fa56cb94c03f60bb96f9bd17b41a87d267580e9 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 25 May 2016 15:19:18 -0400 Subject: [PATCH] doc: Add a flex layout default screenshot --- lib/wibox/layout/flex.lua | 2 ++ tests/examples/wibox/layout/defaults/flex.lua | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/examples/wibox/layout/defaults/flex.lua diff --git a/lib/wibox/layout/flex.lua b/lib/wibox/layout/flex.lua index aa932292b..cef6b99ed 100644 --- a/lib/wibox/layout/flex.lua +++ b/lib/wibox/layout/flex.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_layout_defaults_flex_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/layout/defaults/flex.lua b/tests/examples/wibox/layout/defaults/flex.lua new file mode 100644 index 000000000..81d59cd53 --- /dev/null +++ b/tests/examples/wibox/layout/defaults/flex.lua @@ -0,0 +1,10 @@ +local generic_widget = ... --DOC_HIDE +local wibox = require("wibox") --DOC_HIDE + +return --DOC_HIDE +wibox.widget { + generic_widget( "first" ), + generic_widget( "second" ), + generic_widget( "third" ), + layout = wibox.layout.flex.horizontal +}