OpenFin Workspace Platform API
    Preparing search index...

    Interface ThemeApi

    interface ThemeApi {
        getGeneratedPalettes(): Promise<GeneratedPalettes>;
        getSelectedScheme(): Promise<ColorSchemeOptionType>;
        getThemes(): Promise<CustomThemes>;
        setSelectedScheme(newScheme: ColorSchemeOptionType): Promise<void>;
    }
    Index
    • Get the generated palettes from the platform provider.

      Returns Promise<GeneratedPalettes>

      the generated palettes.

    • Returns Promise<CustomThemes>

      the legacy themes or null if the platform provider is using the new theme system.

      This method is deprecated. It is recommended to use getGeneratedPalettes instead. Get the legacy themes from the platform provider.