removed local variable colors

parameter "colors" can be used like a local variable.
This commit is contained in:
Ulrich Schmidt 2016-11-05 19:16:18 +01:00
parent 549693dd38
commit 64f848c9d0

View file

@ -19,7 +19,7 @@ function theme.getColorForState(opt)
end
function theme.drawBox(x,y,w,h, colors, cornerRadius)
local colors = colors or theme.getColorForState(opt)
colors = colors or theme.getColorForState(opt)
cornerRadius = cornerRadius or theme.cornerRadius
w = math.max(cornerRadius/2, w)
if h < cornerRadius/2 then