ThemeService
service
Properties
Section titled “Properties”currentTheme
Section titled “currentTheme”Type: unknown
Default Value: this.#currentTheme.asReadonly()
customTheme
Section titled “customTheme”Type: unknown
Default Value: signal<CustomThemeSettings>(DEFAULT_THEME)
customThemes
Section titled “customThemes”Type: unknown
Default Value: computed<CustomThemeSettings[]>(() => \{ const customThemesToken = this.#customThemesToken || []; return customThemesToken.map((theme) => \{ const \{ key, label, description, hasLightTheme, hasDarkTheme \} = theme; return \{ key, label, description, hasLightTheme: hasLightTheme ?? true, hasDarkTheme: hasDarkTheme ?? false \}; \}); \})
disableMode
Section titled “disableMode”Type: unknown
Default Value: this.#disableMode.asReadonly()
Type: unknown
Default Value: this.#mode.asReadonly()
Methods
Section titled “Methods”setCustomTheme
Section titled “setCustomTheme”setCustomTheme(key: string): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| key | string |
setMode
Section titled “setMode”setMode(mode: Mode): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| mode | Mode |
toggleTheme
Section titled “toggleTheme”toggleTheme(theme: Mode): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| theme | Mode |