- Documentation
- Client functions
- guiSetThemeColor
Function
guiSetThemeColor
Changes one colour of the current theme. Keys: accent, accentBright, accentDim, accentText, windowBg, windowBorder, titleBg, titleBgActive, panelBg, fieldBg, fieldBorder, text, textDim, textDisabled, hover, press, shadow, scrollTrack, scrollThumb.
Syntax
bool guiSetThemeColor(string key, int r, int g, int b [, int a = 255])Arguments
keystring- Colour key.
rint- Red.
gint- Green.
bint- Blue.
aint, optional = 255- Alpha.
Returns
true on success.
Example
guiSetThemeColor("accent", 40, 200, 120)