Error when passing color options to an input widget
tesselode opened this issue · 0 comments
tesselode commented
Specifying colors when creating an input widget results in an error.
This should reproduce the issue:
local input = {text = ""}
function love.update(dt)
suit.layout:reset(100,100)
suit.Input(input, {color = {
normal = {bg = { 255, 0, 0}, fg = {188,188,188}},
}}, suit.layout:row(200,30))
end
The error I get:
Error: suit/theme.lua:115: bad argument #3 to 'setColor' (number expected, got nil)
stack traceback:
[C]: in function 'setColor'
suit/theme.lua:115: in function 'f'
suit/core.lua:158: in function <suit/core.lua:157>
suit/core.lua:165: in function 'draw'
main.lua:42: in function 'draw'
[string "boot.lua"]:467: in function <[string "boot.lua"]:435>
[C]: in function 'xpcall'