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

Function

guiRegisterTheme

ClientInterface (GUI)Trilogy Hub only

Adds your own theme. Missing colours are taken from the current theme.

Syntax

bool guiRegisterTheme(string name, table colors)

Arguments

namestring
Theme name.
colorstable
A {key = {r, g, b [, a]}} table.

Returns

true on success.

Example

guiRegisterTheme("grove", {
    accent = { 40, 170, 60 },
    windowBg = { 16, 24, 18, 245 },
    text = { 230, 240, 230 },
})
guiSetTheme("grove")