- Documentation
- Client functions
- guiSetTheme
Function
guiSetTheme
Changes the theme of the whole interface: a name (default, sunset, midnight, ocean, emerald, crimson, grape, slate, light or your own from guiRegisterTheme) or a table of colours.
Syntax
bool guiSetTheme(mixed theme)Arguments
thememixed- A name or a
{key = {r, g, b [, a]}}table.
Returns
true on success.
Example
guiSetTheme("midnight")
guiSetTheme({ accent = { 255, 0, 120 } })
See also
guiGetThemeNamesReturns the names of available themes (sorted).guiSetThemeColorChanges 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.guiRegisterThemeAdds your own theme. Missing colours are taken from the current theme.