A class that provides theme management.

Implements

Constructors

Properties

_base: string
_current: null | string = null
_host: Widget
_links: HTMLLinkElement[] = []
_outstanding: null | Promise<void> = null
_overrideProps: Dict<string> = {}
_overrides: Dict<string> = {}
_pending: number = 0
_requests: {
    [theme: string]: number;
} = {}

Type declaration

  • [theme: string]: number
_splash: null | ISplashScreen
_themeChanged: Signal<ThemeManager, IChangedArgs<string, null | string, string>> = ...
_themes: {
    [key: string]: ITheme;
} = {}

Type declaration

translator: ITranslator

Accessors

Methods

  • Decrease a font size w.r.t. its current setting or its value in the current theme.

    Parameters

    • key: string

      A Jupyterlab font size CSS variable, without the leading '--jp-'.

    Returns Promise<void>

  • Get the value of a CSS variable from its key.

    Parameters

    • key: string

      A Jupyterlab CSS variable, without the leading '--jp-'.

    Returns string

    value - The current value of the Jupyterlab CSS variable

  • Increase a font size w.r.t. its current setting or its value in the current theme.

    Parameters

    • key: string

      A Jupyterlab font size CSS variable, without the leading '--jp-'.

    Returns Promise<void>

  • Loads all current CSS overrides from settings. If an override has been removed or is invalid, this function unloads it instead.

    Returns void

  • Validate a CSS value w.r.t. a key

    Parameters

    • key: string

      A Jupyterlab CSS variable, without the leading '--jp-'.

    • val: string

      A candidate CSS value

    Returns boolean