container: Add a broder container.

Rather than bloat the `background` container with another 1k lines,
a new container is added. The goal is to implement CSS-style slicing
for the background images. The container also allows to place
generic widgets on each sides and corners of the container.

The main use case for this container is to replace the old
`awful.titlebar` API with `awful.decoration`. That new module will
allow a central client widget to be surrounded by widgets rather than
have 4 separate drawing areas. The border container is designed to
make complex border+titlebar setup trivial.
This commit is contained in:
Emmanuel Lepage Vallee 2022-02-05 15:04:50 -08:00
parent e23940cc6a
commit dc207d5b49
2 changed files with 1051 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,7 @@ return setmetatable({
arcchart = require("wibox.container.arcchart");
place = require("wibox.container.place");
tile = require("wibox.container.tile");
border = require("wibox.container.border");
}, {__call = function(_, args) return base.make_widget_declarative(args) end})
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80