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

Function

guiGetThemeColor

ClientInterface (GUI)Trilogy Hub only

Returns one colour of the current theme.

Syntax

int guiGetThemeColor(string key)

Arguments

keystring
Key, e.g. "accent", "windowBg", "text".

Returns

r, g, b, a.

Example

local r, g, b = guiGetThemeColor("accent")
dxDrawRectangle(0, 0, 200, 4, tocolor(r, g, b))