Skip to main content
Version: 0.9.0-beta.2

Interface: IColorThemeService

molecule.IColorThemeService

Implemented by

Methods

addThemes

addThemes(themes): void

Add themes into colorThemes

This will update the duplicated themes found in colorThemes

Parameters

NameType
themesIColorTheme | IColorTheme[]

Returns

void

Defined in

src/services/theme/colorThemeService.ts:23


getColorTheme

getColorTheme(): IColorTheme

Get the current Color Theme

Returns

IColorTheme

Defined in

src/services/theme/colorThemeService.ts:47


getThemeById

getThemeById(id): void

Get specific theme via id

Parameters

NameType
idstring

Returns

void

Defined in

src/services/theme/colorThemeService.ts:43


getThemes

getThemes(): IColorTheme[]

Get all themes in colorThemes

Returns

IColorTheme[]

Defined in

src/services/theme/colorThemeService.ts:38


reload

reload(): void

Reload current theme

Returns

void

Defined in

src/services/theme/colorThemeService.ts:51


reset

reset(): void

Reset theme

Returns

void

Defined in

src/services/theme/colorThemeService.ts:55


setTheme

setTheme(id): void

Set the current Color Theme via id, Please ensure the theme could be found in colorThemes

Parameters

NameTypeDescription
idstringThe id is required

Returns

void

Defined in

src/services/theme/colorThemeService.ts:29


updateTheme

updateTheme(theme): void

Update specific theme,

Parameters

NameTypeDescription
themeIColorThemeThe id is required in theme

Returns

void

Defined in

src/services/theme/colorThemeService.ts:34