- Dokumentacja
- Funkcje klienta
- guiSetTheme
Funkcja
guiSetTheme
Zmienia motyw całego interfejsu: nazwa (default, sunset, midnight, ocean, emerald, crimson, grape, slate, light albo własny z guiRegisterTheme) albo tabela kolorów.
Składnia
bool guiSetTheme(mixed theme)Argumenty
thememixed- Nazwa albo tabela
{klucz = {r, g, b [, a]}}.
Zwraca
true przy powodzeniu.
Przykład
guiSetTheme("midnight")
guiSetTheme({ accent = { 255, 0, 120 } })
Zobacz też
guiGetThemeNamesZwraca nazwy dostępnych motywów (posortowane).guiSetThemeColorZmienia jeden kolor bieżącego motywu. Klucze:accent,accentBright,accentDim,accentText,windowBg,windowBorder,titleBg,titleBgActive,panelBg,fieldBg,fieldBorder,text,textDim,textDisabled,hover,press,shadow,scrollTrack,scrollThumb.guiRegisterThemeDodaje własny motyw. Brakujące kolory bierze z bieżącego motywu.