Class: ColorThemeService
molecule.ColorThemeService
Implements
Constructors
constructor
• new ColorThemeService()
Defined in
src/services/theme/colorThemeService.ts:77
Properties
colorTheme
• Private
colorTheme: IColorTheme
Defined in
src/services/theme/colorThemeService.ts:75
colorThemes
• Private
colorThemes: IColorTheme
[]
Defined in
src/services/theme/colorThemeService.ts:74
Methods
addThemes
▸ addThemes(themes
): void
Add themes into colorThemes
This will update the duplicated themes found in colorThemes
Parameters
Name | Type |
---|---|
themes | IColorTheme | IColorTheme [] |
Returns
void
Implementation of
Defined in
src/services/theme/colorThemeService.ts:83
getColorTheme
▸ getColorTheme(): IColorTheme
Get the current Color Theme
Returns
Implementation of
IColorThemeService.getColorTheme
Defined in
src/services/theme/colorThemeService.ts:124
getThemeById
▸ getThemeById(id
): undefined
| IColorTheme
Get specific theme via id
Parameters
Name | Type |
---|---|
id | string |
Returns
undefined
| IColorTheme
Implementation of
IColorThemeService.getThemeById
Defined in
src/services/theme/colorThemeService.ts:119
getThemes
▸ getThemes(): IColorTheme
[]
Get all themes in colorThemes
Returns
Implementation of
Defined in
src/services/theme/colorThemeService.ts:144
reload
▸ reload(): void
Reload current theme
Returns
void
Implementation of
Defined in
src/services/theme/colorThemeService.ts:148
reset
▸ reset(): void
Reset theme
Returns
void
Implementation of
Defined in
src/services/theme/colorThemeService.ts:152
setTheme
▸ setTheme(id
): void
Set the current Color Theme via id,
Please ensure the theme could be found in colorThemes
Parameters
Name | Type |
---|---|
id | string |
Returns
void
Implementation of
Defined in
src/services/theme/colorThemeService.ts:128
updateTheme
▸ updateTheme(theme
): void
Update specific theme,
Parameters
Name | Type |
---|---|
theme | IColorTheme |
Returns
void
Implementation of
IColorThemeService.updateTheme