Constructors
Private
constructor
- new ThemeSettings(): ThemeSettings
-
Methods
addNewTheme
- addNewTheme(id, name?, sourceThemeId?): void
-
Parameters
-
id: string
-
Optional
name: string
-
Optional
sourceThemeId: string
Returns void
canThemeBeModified
- canThemeBeModified(id): boolean
-
Returns boolean
deleteTheme
- deleteTheme(id): void
-
Returns void
getCurrentTheme
- getCurrentTheme(): string
-
Returns string
getThemeColors
- getThemeColors(id): undefined | Record<string, RGBA>
-
Returns undefined | Record<string, RGBA>
getThemeIdList
- getThemeIdList(): string[]
-
Returns string[]
getThemeName
- getThemeName(id): string
-
Returns string
resolveColorKey
- resolveColorKey(key): RGBA
-
Returns RGBA
setCurrentTheme
- setCurrentTheme(id): void
-
Returns void
setThemeName
- setThemeName(id, name): void
-
Returns void
updateThemeColor
- updateThemeColor(id, key, newColor): void
-
Parameters
-
id: string
-
-
newColor: RGBA
Returns void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Error