- Documentation
- Client functions
- guiGetThemeColor
Function
guiGetThemeColor
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))