mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
Fix some script icons for non-square buttons
This commit is contained in:
parent
7aaf212a9b
commit
cf8a808bd7
8 changed files with 14 additions and 10 deletions
|
|
@ -61,6 +61,7 @@ function icon (params) return function (ctx, width, height)
|
|||
local wh = math.min (width, height) * .5
|
||||
local x0 = math.ceil (wh * .4)
|
||||
local x1 = math.floor (wh * 1.6)
|
||||
ctx:translate (math.floor (width * .5 - wh), math.floor (height * .5 - wh))
|
||||
ctx:rectangle (wh * .4, wh * .4, wh * 1.2, wh * 1.2)
|
||||
ctx:set_source_rgba (.7, .7, .7, 1)
|
||||
ctx:fill ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue