Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/shell/services/ThemeDom

Cockpit client (features), next. Source: ui/client/features/shell/services/ThemeDom.ts.

Functions#

applyTheme()#

applyTheme(theme): void

Defined in: ui/client/features/shell/services/ThemeDom.ts:19

Applies the theme to .

Parameters#

theme

Theme

Returns#

void


resolvePreference()#

resolvePreference(preference): Theme

Defined in: ui/client/features/shell/services/ThemeDom.ts:14

The theme a preference paints today.

Parameters#

preference

ThemePreference

Returns#

Theme


systemPrefersLight()#

systemPrefersLight(): boolean

Defined in: ui/client/features/shell/services/ThemeDom.ts:5

Whether the operating system asks for a light interface right now.

Returns#

boolean