awesome/tests/examples/wibox/layout
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
..
defaults Fix adjust misspelling 2020-07-31 17:33:12 -06:00
fixed tests/examples: Explicitly mark tests generating an image 2018-07-24 14:12:44 +02:00
flex tests/examples: Explicitly mark tests generating an image 2018-07-24 14:12:44 +02:00
grid grid: Add border support. 2023-12-31 00:57:07 -08:00
manual tests/examples: Explicitly mark tests generating an image 2018-07-24 14:12:44 +02:00
ratio doc: Add some new lines in an old example. 2021-10-30 22:44:31 -07:00
stack tests/examples: Explicitly mark tests generating an image 2018-07-24 14:12:44 +02:00
template.lua textbox: Rename `align` to `halign`. 2022-09-06 16:11:04 -07:00