static bling and rubato

This commit is contained in:
Chris Cochrun 2022-05-17 11:12:22 -05:00
parent 168920f078
commit 61a89f8dca
90 changed files with 10201 additions and 24 deletions

View file

@ -0,0 +1,30 @@
local gears = require("gears")
shape = {}
-- Create rounded rectangle shape (in one line)
function shape.rrect(radius)
return function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, radius)
end
end
-- Create partially rounded rect
function shape.prrect(radius, tl, tr, br, bl)
return function(cr, width, height)
gears.shape.partially_rounded_rect(
cr,
width,
height,
tl,
tr,
br,
bl,
radius
)
end
end
return shape