better support for custom color themes in button and label

This commit is contained in:
len0rd 2025-08-12 12:54:44 -04:00
parent 45a4b65053
commit 07a1731419
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@ return function(core, text, ...)
local opt, x,y,w,h = core.getOptionsAndSize(...)
opt.id = opt.id or text
opt.font = opt.font or love.graphics.getFont()
opt.color = opt.color or core.theme.color
w = w or opt.font:getWidth(text) + 4
h = h or opt.font:getHeight() + 4