ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiSetThemeColor

Function

guiSetThemeColor

ClientInterface (GUI)Trilogy Hub only

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)