@univerjs/core v0.5.0-beta.1 • Docs
Class: ThemeService
Extends
Constructors
new ThemeService()
new ThemeService(): ThemeService
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:33
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:93 |
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
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100
getCurrentTheme()
getCurrentTheme(): IStyleSheet
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:39
setTheme()
setTheme(theme): void
Parameters
Parameter | Type |
---|---|
theme | IStyleSheet |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:47