- Documentation
- Client functions
- guiRegisterTheme
Function
guiRegisterTheme
Adds your own theme. Missing colours are taken from the current theme.
Syntax
bool guiRegisterTheme(string name, table colors)Arguments
namestring- Theme name.
colorstable- A
{key = {r, g, b [, a]}}table.
Returns
true on success.
Example
guiRegisterTheme("grove", {
accent = { 40, 170, 60 },
windowBg = { 16, 24, 18, 245 },
text = { 230, 240, 230 },
})
guiSetTheme("grove")