Theia API Documentation v1.65.0
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    activeTheme: Theme
    deferredInitializer: Deferred<void>
    onDidColorThemeChange: Event<ThemeChangeEvent>
    onDidRetrieveThemeEmitter: Emitter<MonacoThemeState> = ...
    preferences: PreferenceService
    schemaProvider: PreferenceSchemaService
    themes: { [id: string]: Theme }
    updateColorThemePreference: DebouncedFunc<() => void>
    STORAGE_KEY: "theme"

    Accessors

    • get defaultTheme(): Theme

      The default theme. If that is not applicable, returns with the fallback theme.

      Returns Theme

    • get initialized(): Promise<void>

      Returns Promise<void>

    Methods

    • Parameters

      • themeId: string

      Returns Theme

    • Returns void

    • Resets the state to the user's default, or to the fallback theme. Also discards any persisted state in the local storage.

      Returns void

    • Parameters

      • themeId: string
      • Optionalpersist: boolean

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

      Returns void

    • Parameters

      • themeId: string

      Returns undefined | Theme