Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ThemeService

Index

Constructors

Properties

activeTheme: Theme = NO_THEME
deferredInitializer: Deferred<void> = ...
onDidColorThemeChange: Event<ThemeChangeEvent> = ...
preferences: PreferenceService
schemaProvider: PreferenceSchemaProvider
themeChange: Emitter<ThemeChangeEvent> = ...
themes: {} = {}

Type declaration

updateColorThemePreference: DebouncedFunc<(() => void)> = ...
STORAGE_KEY: "theme" = 'theme'

Accessors

  • get defaultTheme(): Theme
  • get initialized(): Promise<void>

Methods

  • doUpdateColorThemePreference(): void
  • getConfiguredTheme(): undefined | Theme
  • getTheme(themeId: string): Theme
  • init(): void
  • loadUserTheme(): void
  • reset(): void
  • setCurrentTheme(themeId: string, persist?: boolean): void
  • Parameters

    • themeId: string
    • persist: boolean = true

      If true, the value of the workbench.colorTheme preference will be set to the provided ID.

    Returns void

  • tryGetTheme(themeId: string): undefined | Theme
  • validateActiveTheme(): void