From 83a9a9e67a16de6f8ed9493e13213b4d70596109 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 25 May 2016 17:22:44 -0400 Subject: [PATCH] doc: Add a progressbar widget default screenshot --- lib/wibox/widget/progressbar.lua | 1 + tests/examples/wibox/widget/defaults/progressbar.lua | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/examples/wibox/widget/defaults/progressbar.lua diff --git a/lib/wibox/widget/progressbar.lua b/lib/wibox/widget/progressbar.lua index e96f9aced..6e4b6ecf1 100644 --- a/lib/wibox/widget/progressbar.lua +++ b/lib/wibox/widget/progressbar.lua @@ -1,6 +1,7 @@ --------------------------------------------------------------------------- --- A progressbar widget. -- +--@DOC_wibox_widget_defaults_progressbar_EXAMPLE@ -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/widget/defaults/progressbar.lua b/tests/examples/wibox/widget/defaults/progressbar.lua new file mode 100644 index 000000000..c82957ff9 --- /dev/null +++ b/tests/examples/wibox/widget/defaults/progressbar.lua @@ -0,0 +1,12 @@ +local parent = ... --DOC_HIDE +local wibox = require("wibox") --DOC_HIDE + +parent:add( --DOC_HIDE + +wibox.widget { + max_value = 1, + value = 0.33, + widget = wibox.widget.progressbar +} + +) --DOC_HIDE