A class inheriting the Theme class is created inside all components. The references of the Theme class are as follows:
local Element = Element:new()element.theme:getColor(key)element.theme:getProperty(key)element.theme:setColor(key, value)element.theme:setProperty(key, value)element.theme:ch(name, shade, alpha): { r =25, g =25, b =25, a =155 } -- GRAY, 900, 0.6element.theme:c(name, shade, alpha): Color element from tocolor -- GRAY, 900, 0.5element.theme:combine(name, shade, alpha): { element = Color element, original = { r, g, b, a } }
This is how you can customize the individual buttons or elements you create.
We are working on a general theme customization!
You can still override all element types in this way. (or you can with Adapter method)
local customButtonTheme = ButtonTheme:new()customButtonTheme:setProperty('borderRadius', 0)local someButton = Button:new()someButton.theme = customButtonThemesomeButton:doPulse()