Skip to content

Color

This page documents hooks in the color category.


OnThemeChanged(themeName, useTransition)View Source

Purpose

Runs when a theme is applied or when a theme transition finishes.

Category

Color

Realm

Client

Parameters

string themeName The theme identifier that was applied.

boolean useTransition True when the theme change was requested with transition behavior. False when applied directly or when a transition completes.

Example Usage

  hook.Add("OnThemeChanged", "liaExampleOnThemeChanged", function(themeName, useTransition)
      print("[MyModule] handled OnThemeChanged")
  end)