@univerjscoreclassesThemeservice

@univerjs/core v0.5.4


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

ThemeService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
currentTheme$readonlyObservable<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

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getCurrentTheme()

getCurrentTheme(): IStyleSheet

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:39

Returns

IStyleSheet


setTheme()

setTheme(theme): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/theme/theme.service.ts:47

Parameters

ParameterType
themeIStyleSheet

Returns

void