Fuxx
This commit is contained in:
parent
8268fba83d
commit
7ed2a6e110
9565 changed files with 1315332 additions and 90 deletions
30
home/.config/awesome/lib/bling/helpers/shape.lua
Normal file
30
home/.config/awesome/lib/bling/helpers/shape.lua
Normal file
|
@ -0,0 +1,30 @@
|
|||
local gears = require("gears")
|
||||
|
||||
local 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
|
Loading…
Add table
Add a link
Reference in a new issue