@univerjs/core v0.4.2 • Docs
Class: ThemeService
Extends
Constructors
new ThemeService()
new ThemeService(): ThemeService
Returns
Overrides
Defined in
submodules/univer/packages/core/src/services/theme/theme.service.ts:33 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
currentTheme$ | readonly | Observable <IStyleSheet > | undefined | - | submodules/univer/packages/core/src/services/theme/theme.service.ts:31 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getCurrentTheme()
getCurrentTheme(): IStyleSheet
Returns
Defined in
submodules/univer/packages/core/src/services/theme/theme.service.ts:39 (opens in a new tab)
setTheme()
setTheme(theme): void
Parameters
Parameter | Type |
---|---|
theme | IStyleSheet |
Returns
void
Defined in
submodules/univer/packages/core/src/services/theme/theme.service.ts:47 (opens in a new tab)