applyTheme for containers to apply to children

This commit is contained in:
Robert Jelic
2025-04-06 19:31:24 +02:00
parent cdf5803e3b
commit 1e3914739d

View File

@@ -178,6 +178,14 @@ function BaseElement:applyTheme()
end
end
end
if(self:isType("Container"))then
local children = self.get("children")
for _, child in ipairs(children) do
if(child and child.applyTheme)then
child:applyTheme()
end
end
end
return self
end