awesome/tests/examples/wibox
Emmanuel Lepage Vallee f8f5e2c69b grid: Add border support.
This is long overdue. A bit of historical context. The grid API
is losely somewhat based on the old `radical` module, but was
heavily improved by @getzze. That version had row_span and col_span.

This made the way the previous implementation coded the border
incompatible. I spent some time back then trying to bolt it back on,
but the complexity is quite high and never made it work right.

This commit goes in another direction. Rather than draw the border,
it creates a mask where the border should *not* be, then bucket fill
the widget. This is the equivalent of CSS `border-collapse`.

It also support custom borders. This allows dashed lines and partial
borders.

The main use case will be to add border support to the calendar. It
was previously possible to partially do it using custom cell painters,
but was pretty hacky. Now that the calendar will deprecate the custom
painters in favor of `widget_template`s, a more robust alternative was
required.

The drawback of this commit is obviously the added complexity to the
most complex layout. This is why it adds many tests to cover the various
corner cases.
2023-12-31 00:57:07 -08:00
..
awidget doc: Fix example code header showing in page 2022-08-29 22:48:54 -07:00
container textbox: Rename `align` to `halign`. 2022-09-06 16:11:04 -07:00
layout grid: Add border support. 2023-12-31 00:57:07 -08:00
logo tests/examples: Explicitly mark tests generating an image 2018-07-24 14:12:44 +02:00
nwidget textbox: Rename `align` to `halign`. 2022-09-06 16:11:04 -07:00
widget Fix typo in example wibox.widget.textbox file (#3795) 2023-04-23 00:28:45 -07:00
template.lua test: Enforce the maximum size for the `wibox` test example templte. 2022-08-29 22:49:46 -07:00