Bigfont Fix when changing bg/fg

This commit is contained in:
Robert Jelic
2025-03-05 01:44:49 +01:00
parent 78a42954c0
commit bd72cb6171

View File

@@ -177,6 +177,12 @@ end
function BigFont:init(props, basalt)
VisualElement.init(self, props, basalt)
self.set("type", "BigFont")
self:observe("background", function(self, value)
self.bigfontText = makeText(self.get("fontSize"), self.get("text"), self.get("foreground"), value)
end)
self:observe("foreground", function(self, value)
self.bigfontText = makeText(self.get("fontSize"), self.get("text"), value, self.get("background"))
end)
end
--- @shortDescription Renders the BigFont