Class: ThemeService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:27
Extends
Constructors
new ThemeService()
new ThemeService(): ThemeService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:33
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
currentTheme$ | readonly | Observable <IStyleSheet > | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:31 |
Methods
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getCurrentTheme()
getCurrentTheme(): IStyleSheet
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:39
Returns
setTheme()
setTheme(theme): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:47
Parameters
Parameter | Type |
---|---|
theme | IStyleSheet |
Returns
void