API Reference
@univerjs
@univerjs/core
classes
Themeservice

@univerjs/core v0.4.2Docs


Class: ThemeService

Extends

Constructors

new ThemeService()

new ThemeService(): ThemeService

Returns

ThemeService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/core/src/services/theme/theme.service.ts:33 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
currentTheme$readonlyObservable<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

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getCurrentTheme()

getCurrentTheme(): IStyleSheet

Returns

IStyleSheet

Defined in

submodules/univer/packages/core/src/services/theme/theme.service.ts:39 (opens in a new tab)


setTheme()

setTheme(theme): void

Parameters

ParameterType
themeIStyleSheet

Returns

void

Defined in

submodules/univer/packages/core/src/services/theme/theme.service.ts:47 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.