Theme
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.6
element.theme:c(name, shade, alpha): Color element from tocolor -- GRAY, 900, 0.5
element.theme:combine(name, shade, alpha): { element = Color element, original = { r, g, b, a } }local customButtonTheme = ButtonTheme:new()
customButtonTheme:setProperty('borderRadius', 0)
local someButton = Button:new()
someButton.theme = customButtonTheme
someButton:doPulse()Last updated