Uli Schlachter
9f2c4719ed
Make the piechart deterministic ( #1258 )
...
Previously, the API to set the data that should be displayed was
:set_data(t) where t is a table. This table has the labels to use as its
keys and the numbers as its values. With this API, it was not possible
to influence the order in which the "pie pieces" were drawn.
This commit adds and uses a new API called :set_data_list(t). Here, t is
a table with integer keys and tables as values, thus one can iterate
over this with ipairs() and the order is well-defined. The tables used
as values contain the label as their first entry and the number as their
second entry.
Fixes: https://github.com/awesomeWM/awesome/issues/1249
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-07 20:20:09 +01:00
Daniel Hahler
aeab2a70e9
Fix whitespace warnings reported by luacheck ( #1229 )
2016-11-21 22:38:23 +01:00
Emmanuel Lepage Vallee
072ff10cf0
tests: Test the slider widget.
2016-10-12 02:24:47 -04:00
Emmanuel Lepage Vallee
f25621c94c
tests: Test the graph shape.
2016-09-26 01:20:57 -04:00
Emmanuel Lepage Vallee
549d68dcc5
doc: Add more progressbar shape examples
2016-09-26 01:18:09 -04:00
Emmanuel Lepage Vallee
7b11f1c1b4
tests: Test progressbat paddings, margins and clip
2016-09-26 01:18:09 -04:00
Emmanuel Lepage Vallee
a8568eb969
doc: Add examples for vertical and labelled progressbar
2016-09-26 01:18:09 -04:00
Emmanuel Lepage Vallee
b49b859fac
tests: Use the new progressbar features in the default test.
2016-09-26 01:18:09 -04:00
Emmanuel Lepage Vallee
6990cc15dc
tests: Add an helper "before and after" method for the layouts
...
This will avoid a lot of copy paste as the
remove/set/swap/insert/add/remove_widgets/swap_widgets code
is identical beside the method name.
2016-09-26 00:40:20 -04:00
Emmanuel Lepage Vallee
de3a8bb5fb
tests: Test the arc chart container.
2016-09-24 14:45:09 -04:00
Emmanuel Lepage Vallee
2a976951ea
tests: The the piechart widget.
2016-09-24 14:45:09 -04:00
Emmanuel Lepage Vallee
0a3a71dd45
widgets: Add a piechart widget.
2016-09-24 14:45:09 -04:00
Emmanuel Lepage Vallee
52cca3b8b7
tests: Test the checkbox widget.
2016-09-24 14:45:09 -04:00
Emmanuel Lepage Vallee
6128e995f2
tests: Test the radical progressbar
2016-09-24 14:45:08 -04:00
Uli Schlachter
a8834bfcc1
tests/examples: Move common template code into a common file ( #993 )
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-09 19:03:49 +02:00
Uli Schlachter
ffe64727fe
Silence warnings in examples ( #944 )
...
There was a problem that the examples were considered to have failed as soon as
they produced any kind of output, but there were legitimate cases of warnings
being printed that triggered these checks. Commit 4819be4f4f
used a
regular expression to detect and ignore this warnings.
This commit reverts the above commit and instead silences the warnings by
monkey-patching the function that prints the warnings into a no-op.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-06-07 22:57:01 +02:00
Emmanuel Lepage Vallee
a8505ed019
doc: Add an imagebox widget default screenshot
2016-05-30 18:00:59 -04:00
Emmanuel Lepage Vallee
83a9a9e67a
doc: Add a progressbar widget default screenshot
2016-05-30 18:00:59 -04:00
Emmanuel Lepage Vallee
f29eeed82e
doc: Add a graph widget default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
ec2cfc7be2
doc: Add a textbox widget default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
ab40a342af
doc: Add a stack layout default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
163748c782
doc: Add a ratio layout default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
7fa56cb94c
doc: Add a flex layout default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
150026690c
doc: Add a fixed layout default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
5ba7af2be2
doc: Add an align layout default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
f1ea1c04dd
doc: Add a layout demonnstration template.
...
Draw rectangle with optional text placed by the layout
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
47a471072a
doc: Add a `margin` default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
26cf28b23b
doc: Add a `constraint` default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
de7ae79c6c
doc: Add a `background` default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
46c83b4001
doc: Add a `mirror` default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
ab0a9a077e
doc: Add a `rotate` default screenshot
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
e57ae1789d
doc: Add a container default example template
...
This will be implemented by each container and then grouped into
a list by CMake and inserted in the widget system documentation.
2016-05-30 18:00:58 -04:00
Emmanuel Lepage Vallee
bc2c0cfcb0
doc: Add a wibox.container.rotate example
...
Also fix the documentation
2016-05-30 17:51:19 -04:00
Emmanuel Lepage Vallee
feb3833fd1
doc: Move the background examples to the container suit
2016-05-30 17:51:19 -04:00
Emmanuel Lepage Vallee
d85588babe
wibox: Create a container module
...
Previously, the "containers" were placed in layout or widget.
They all have similar APIs and usage, so lets bring them together.
2016-05-30 17:51:19 -04:00
Emmanuel Lepage Vallee
f4b2043da5
tests: Fix the wibox template
2016-05-15 17:15:55 -04:00
Emmanuel Lepage Vallee
66ca66ca87
tests: Add basic drawin shim
2016-05-03 17:12:54 -04:00
Emmanuel Lepage Vallee
c62116f505
tests: Add wibox.widget.background tests
2016-03-31 04:45:46 -04:00
Emmanuel Lepage Vallee
25c76322a0
tests: Add a template to take screenshots of widgets
2016-03-31 04:45:45 -04:00