Skip to main content

getEffectiveTheme

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/theming/core/theme / getEffectiveTheme

Function: getEffectiveTheme()

getEffectiveTheme(theme?: string | null): string

Defined in: utils/theming/core/theme.js:93

Get the effective theme (resolves 'auto' to actual theme)

Parameters​

theme?​

The theme preference

string | null

Returns​

string

'dark' or 'light'