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

Function

guiSetTheme

ClientInterface (GUI)Trilogy Hub only

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