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