Preparing search index...

    Enum specifying foreground color role.

        // ForegroundRole identifies the semantic purpose of a foreground color.
    // Use setForegroundRole() on a CalloutFrame to apply theme-aware foreground colors.
    const root = new Widget(parent);
    const layout = new BoxLayout();
    layout.setDirection(Direction.TopToBottom);
    root.layout = layout;

    const frame = new CalloutFrame(root);
    frame.setForegroundRole(ForegroundRole.Content, ColorGroup.Normal);
    layout.addWidget(frame);

    // Available ForegroundRole values:
    // Content, ActiveContent, PlaceholderContent, Link, Highlight,
    // Focus, DividerIn, DividerOut, InputOutline
    const label = new Label(root);
    label.text = 'ForegroundRole applied to CalloutFrame';
    layout.addWidget(label);
    Index

    Enumeration Members

    ActiveContent: number

    Active or selected content text color role.

    ButtonOutline: number

    Button outline color role.

    ColorGreen: number

    Green accent color role.

    ColorOrange: number

    Orange accent color role.

    ColorRed: number

    Red accent color role.

    ColorYellow: number

    Yellow accent color role.

    Content: number

    Primary content text color role.

    DividerIn: number

    Inner divider line color role.

    DividerOut: number

    Outer divider line color role.

    Focus: number

    Focused element text color role.

    Highlight: number

    Highlighted text color role.

    InputOutline: number

    Input field outline color role.

    Link: number

    Hyperlink text color role.

    PlaceholderContent: number

    Placeholder or hint text color role.

    RegionSelection: number

    Region selection indicator color role.