core/ui-settings/theme-switcher.service.ts
Properties |
Methods |
constructor(options: OptionsService)
|
||||||
Parameters :
|
applyTheme | ||||||
applyTheme(preference: "light" | "dark" | "system")
|
||||||
Parameters :
Returns :
void
|
changeUserPreference | ||||||
changeUserPreference(preference: "light" | "dark" | "system")
|
||||||
Parameters :
Returns :
void
|
getCurrentThemePreference |
getCurrentThemePreference()
|
Returns :
"light" | "dark" | "system"
|
getUsersSystemPreferenceForTheme$ |
getUsersSystemPreferenceForTheme$()
|
Returns :
any
|
resetTemporaryTheme |
resetTemporaryTheme()
|
Returns :
void
|
temporaryChangeTheme | ||||||
temporaryChangeTheme(preference: "light" | "dark")
|
||||||
Parameters :
Returns :
void
|
currentlyAppliedTheme$ |
Type : Observable<ThemeOptions>
|
darkThemeAvailable$ |
Type : Observable<boolean>
|
darkThemeClass |
Default value : `c8y-dark-theme`
|
disableThemeSelection$ |
Type : Observable<boolean>
|
userSelectedThemePreference$ |
Type : Observable<ThemePreferenceOptions>
|