Skip to main content
Version: 0.9.0-beta.2

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

NameType
themesIColorTheme | IColorTheme[]

Returns

void

Implementation of

IColorThemeService.addThemes

Defined in

src/services/theme/colorThemeService.ts:83


getColorTheme

getColorTheme(): IColorTheme

Get the current Color Theme

Returns

IColorTheme

Implementation of

IColorThemeService.getColorTheme

Defined in

src/services/theme/colorThemeService.ts:124


getThemeById

getThemeById(id): undefined | IColorTheme

Get specific theme via id

Parameters

NameType
idstring

Returns

undefined | IColorTheme

Implementation of

IColorThemeService.getThemeById

Defined in

src/services/theme/colorThemeService.ts:119


getThemes

getThemes(): IColorTheme[]

Get all themes in colorThemes

Returns

IColorTheme[]

Implementation of

IColorThemeService.getThemes

Defined in

src/services/theme/colorThemeService.ts:144


reload

reload(): void

Reload current theme

Returns

void

Implementation of

IColorThemeService.reload

Defined in

src/services/theme/colorThemeService.ts:148


reset

reset(): void

Reset theme

Returns

void

Implementation of

IColorThemeService.reset

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

NameType
idstring

Returns

void

Implementation of

IColorThemeService.setTheme

Defined in

src/services/theme/colorThemeService.ts:128


updateTheme

updateTheme(theme): void

Update specific theme,

Parameters

NameType
themeIColorTheme

Returns

void

Implementation of

IColorThemeService.updateTheme

Defined in

src/services/theme/colorThemeService.ts:98