Fixed checkbox color

This commit is contained in:
Robert Jelic
2023-05-03 22:49:14 +02:00
parent 4f0d154b31
commit f90c2e3878

View File

@@ -71,9 +71,9 @@ return function(name, basalt)
local verticalAlign = utils.getTextVerticalAlign(h, "center") local verticalAlign = utils.getTextVerticalAlign(h, "center")
local bg,fg = self:getBackground(), self:getForeground() local bg,fg = self:getBackground(), self:getForeground()
if (self:getValue()) then if (self:getValue()) then
self:addBlit(1, verticalAlign, utils.getTextHorizontalAlign(symbol, w, "center"), tHex[bg], tHex[fg]) self:addBlit(1, verticalAlign, utils.getTextHorizontalAlign(symbol, w, "center"), tHex[fg], tHex[bg])
else else
self:addBlit(1, verticalAlign, utils.getTextHorizontalAlign(inactiveSymbol, w, "center"), tHex[bg], tHex[fg]) self:addBlit(1, verticalAlign, utils.getTextHorizontalAlign(inactiveSymbol, w, "center"), tHex[fg], tHex[bg])
end end
if(text~="")then if(text~="")then
local align = textPos=="left" and -text:len() or 3 local align = textPos=="left" and -text:len() or 3