Interface IThemeManager

An interface for a theme manager.

Hierarchy

  • IThemeManager

Properties

darkThemes?: readonly string[]

Get the names of the registered dark themes.

lightThemes?: readonly string[]

Get the names of the registered light themes.

preferredDarkTheme?: string

Get the name of the preferred dark theme.

preferredLightTheme?: string

Get the name of the preferred light theme.

preferredTheme?: string

Get the name of the preferred theme.

theme: string

Get the name of the current theme.

themeChanged: ISignal<IThemeManager, IChangedArgs<string, string, string>>

A signal fired when the application theme changes.

themes: readonly string[]

The names of the registered themes.

Methods

  • Get display name for theme.

    Parameters

    • name: string

    Returns string

  • Test whether a given theme is light.

    Parameters

    • name: string

    Returns boolean

  • Load a theme CSS file by path.

    Parameters

    • path: string

      The path of the file to load.

    Returns Promise<void>

  • 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.

  • Set the current theme.

    Parameters

    • name: string

    Returns Promise<void>

  • Test whether a given theme styles scrollbars, and if the user has scrollbar styling enabled.

    Parameters

    • name: string

    Returns boolean

Generated using TypeDoc