Options
All
  • Public
  • Public/Protected
  • All
Menu

Module IThemeManager

A namespace for the IThemeManager sub-types.

Hierarchy

  • IThemeManager

Implemented by

Index

Properties

theme

theme: string | null

Get the name of the current theme.

themeChanged

themeChanged: ISignal<this, IChangedArgs<string>>

A signal fired when the application theme changes.

themes

themes: ReadonlyArray<string>

The names of the registered themes.

Methods

isLight

  • isLight(name: string): boolean
  • Test whether a given theme is light.

    Parameters

    • name: string

    Returns boolean

loadCSS

  • loadCSS(path: string): Promise<void>
  • Load a theme CSS file by path.

    Parameters

    • path: string

      The path of the file to load.

    Returns Promise<void>

register

  • register(theme: ITheme): IDisposable
  • Register a theme with the theme manager.

    Parameters

    • theme: ITheme

      The theme to register.

    Returns IDisposable

    A disposable that can be used to unregister the theme.

setTheme

  • setTheme(name: string): Promise<void>
  • Set the current theme.

    Parameters

    • name: string

    Returns Promise<void>

themeScrollbars

  • themeScrollbars(name: string): boolean
  • Test whether a given theme styles scrollbars, and if the user has scrollbar styling enabled.

    Parameters

    • name: string

    Returns boolean

Generated using TypeDoc