Theia API Documentation v1.65.0
    Preparing search index...
    interface MixStandaloneTheme {
        label: string;
        semanticHighlighting: boolean;
        themeData: ThemeMix;
        themeName: string;
        tokenColorMap: string[];
        tokenTheme: TokenTheme;
        type: ColorScheme;
        defines(color: string): boolean;
        getColor(color: string, useDefault?: boolean): undefined | Color;
        getTokenStyleMetadata(
            type: string,
            modifiers: string[],
            modelLanguage: string,
        ): undefined | ITokenStyle;
    }

    Hierarchy

    • IStandaloneTheme
      • MixStandaloneTheme
    Index

    Properties

    label: string
    semanticHighlighting: boolean

    Defines whether semantic highlighting should be enabled for the theme.

    themeData: ThemeMix
    themeName: string
    tokenColorMap: string[]

    List of all colors used with tokens. getTokenStyleMetadata references the colors by index into this list.

    tokenTheme: TokenTheme
    type: ColorScheme

    Methods

    • Returns whether the theme defines a value for the color. If not, that means the default color will be used.

      Parameters

      • color: string

      Returns boolean

    • Resolves the color of the given color identifier. If the theme does not specify the color, the default color is returned unless useDefault is set to false.

      Parameters

      • color: string

        the id of the color

      • OptionaluseDefault: boolean

        specifies if the default color should be used. If not set, the default is used.

      Returns undefined | Color

    • Returns the token style for a given classification. The result uses the MetadataConsts format

      Parameters

      • type: string
      • modifiers: string[]
      • modelLanguage: string

      Returns undefined | ITokenStyle