Skip to content

ThemesAPI

Defined in: namespaces.ts:879

registerTheme(options): Promise<void>

Defined in: namespaces.ts:881

Registers a theme with the ThemeEngine.

ThemeRegisterOptions

Promise<void>


getActiveTheme(): Promise<string | null>

Defined in: namespaces.ts:883

Returns the currently active theme ID, or null if no theme is active.

Promise<string | null>


setActiveTheme(themeId): Promise<void>

Defined in: namespaces.ts:885

Activates a registered theme by ID, or clears the active theme.

string | null | undefined

Promise<void>


getThemeList(): Promise<ThemeInfo[]>

Defined in: namespaces.ts:887

Returns all registered themes across all plugins.

Promise<ThemeInfo[]>


onThemeChanged(callback): Promise<string>

Defined in: namespaces.ts:889

Subscribes to theme change notifications.

(themeId) => void

Promise<string>


offThemeChanged(token): Promise<void>

Defined in: namespaces.ts:891

Unsubscribes a theme change listener.

string

Promise<void>