removed local variable colors
parameter "colors" can be used like a local variable.
This commit is contained in:
parent
549693dd38
commit
64f848c9d0
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function theme.getColorForState(opt)
|
||||||
end
|
end
|
||||||
|
|
||||||
function theme.drawBox(x,y,w,h, colors, cornerRadius)
|
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
|
cornerRadius = cornerRadius or theme.cornerRadius
|
||||||
w = math.max(cornerRadius/2, w)
|
w = math.max(cornerRadius/2, w)
|
||||||
if h < cornerRadius/2 then
|
if h < cornerRadius/2 then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue