Class EditorStyles

THe EditorStyles contains values and styles used throughout the editor.

Constructors

Properties

accentColor: SRGBColor
animations: {
    onPing: ((element: UIElement, onPingRequested: (() => void)) => void);
}

Different animations used for UIElement objects in the editor.

Type declaration

  • onPing: ((element: UIElement, onPingRequested: (() => void)) => void)

    Applied on objects that are the source for a library resource ping. The ping should be executed in onPingRequested.

      • (element, onPingRequested): void
      • Parameters

        • element: UIElement
        • onPingRequested: (() => void)
            • (): void
            • Returns void

        Returns void

button: {
    borderless: string;
    borderlessDark: string;
    default: string;
    header: {
        accessory: string;
        accessoryHelp: string;
    };
    keyWindow: {
        containerLabelButton: string;
    };
    labelBadge: string;
    labelBadgeBlue: string;
    large: {
        danger: string;
        default: string;
        success: string;
    };
    toolbar: {
        default: string;
        defaultVertical: string;
        segmentedButton: string;
    };
}

Style for UIElements in the context of a UIButton

Type declaration

  • borderless: string
  • borderlessDark: string
  • default: string

    The default button style.

  • header: {
        accessory: string;
        accessoryHelp: string;
    }
    • accessory: string

      A button style, when used as accessory for a UIHeaderLabel.

    • accessoryHelp: string

      A button style, when used as 'Help' accessory for a UIHeaderLabel.

  • keyWindow: {
        containerLabelButton: string;
    }
    • containerLabelButton: string
  • labelBadge: string
  • labelBadgeBlue: string
  • large: {
        danger: string;
        default: string;
        success: string;
    }
    • danger: string

      A larger danger button style.

      Used for actions such as a Discard or Destroy button on a sheet.

    • default: string

      A larger button style.

      Used for actions such as the OK button on a message box.

    • success: string

      A larger success button style.

      Used for actions such as a Save or Accept button on a sheet.

  • toolbar: {
        default: string;
        defaultVertical: string;
        segmentedButton: string;
    }
    • default: string
    • defaultVertical: string
    • segmentedButton: string
color: {
    control: {
        background: SRGBColor;
    };
    danger: SRGBColor;
    documentationHint: SRGBColor;
    element: {
        focusBorder: SRGBColor;
    };
    home: {
        darkSlateGray: Immutable<SRGBColor>;
        lightSlateGray: Immutable<SRGBColor>;
    };
    keyWindow: {
        background: Immutable<SRGBColor>;
    };
    panel: {
        background: {
            border: Immutable<SRGBColor>;
            darkSlateGray: Immutable<SRGBColor>;
            lightSlateGray: Immutable<SRGBColor>;
        };
    };
    success: SRGBColor;
    text: SRGBColor;
    warning: SRGBColor;
}

Different colors used throughout the editor.

Type declaration

darkBackgroundColor: SRGBColor
defaultGizmoIconColor: SRGBColor
defaultGizmoIconSizeInPixels = 72
directoryBarTagButton: string
errorFlashColor: Immutable<SRGBColor>

The color to be used when flashing errors on input fields.

focusOutlineColor: SRGBColor
foldout: string
foldoutCompact: string
foldoutCompactDismiss: string
foldoutDismiss: string
hoverBorderColor: Immutable<SRGBColor>
inspector: {
    accessoryButton: string;
    accessoryButtonWidth: number;
    windowPadding: RectOffset;
}

Styles for UIElements used in the context of a UIObjectInspector.

inspectorTitleLabel: string
kBigSpacing: number
kBorderWidthLarge: number

A large border width.

kBorderWidthMedium: number

A medium-sized border width.

kBorderWidthThin: number

A very thin border width.

kCurveEditorHeader: string
kDefaultFontSize: number
kExpand: string
kLabelWindowStatus: string

A label used to display the key state of a window, such as 'Loading...', or 'No object selected'.

kMediumSpacing: number
kResetButton: string
kSmallSpacing: number
kTitleLabel: string
kToggleButton: string
kToggleButtonNoPadding: string
label: {
    bold: string;
    box: {
        danger: string;
        info: string;
        secondary: string;
        warning: string;
    };
    centered: string;
    default: string;
    header: {
        description: string;
        subtitle: string;
        title: string;
        title1: string;
        title2: string;
    };
    multiline: {
        bold: string;
        centered: string;
        default: string;
    };
}

Styles for UIElements used in the context of a UILabel.

Type declaration

  • bold: string
  • box: {
        danger: string;
        info: string;
        secondary: string;
        warning: string;
    }
    • danger: string

      An danger box label with a background and border. The content is inset. Useful for both single and multi-line content.

    • info: string

      An info box label with a background and border. The content is inset. Useful for both single and multi-line content.

    • secondary: string

      An secondary box label with a background and border. The content is inset. Useful for both single and multi-line content.

    • warning: string

      An warning box label with a background and border. The content is inset. Useful for both single and multi-line content.

  • centered: string
  • default: string
  • header: {
        description: string;
        subtitle: string;
        title: string;
        title1: string;
        title2: string;
    }
    • description: string
    • subtitle: string
    • title: string
    • title1: string
    • title2: string
  • multiline: {
        bold: string;
        centered: string;
        default: string;
    }
    • bold: string
    • centered: string
    • default: string
materialSectionResourceControl: string
materialSectionTitle: string
pingBackgroundColor: Immutable<SRGBColor>
pingColor: Immutable<SRGBColor>
primaryDarkGray: SRGBColor
primaryMidGray: SRGBColor
radiusBig: number
radiusMedium: number
radiusSmall: number
sceneOverlayLabel: string
segmentedButton: {
    dark: string;
}

Styles for UIElements used in the context of a UISegmentedButton.

selectionAreaColor: SRGBColor

The fill color used when drawing a selection area over the screen.

selectionAreaOutlineColor: SRGBColor

The stroke color used when drawing a selection area over the screen.

selectionColor: SRGBColor
selectionColorLight: SRGBColor
settingsWindowTabBar = "PreferencesWindowTabBar"
shapes: {
    brandIcons: {
        Abstract: string;
        InstaLOD: string;
        InstaMAT: string;
        Polyverse: string;
        RSX: string;
    };
}

Built in shapes.

Type declaration

  • brandIcons: {
        Abstract: string;
        InstaLOD: string;
        InstaMAT: string;
        Polyverse: string;
        RSX: string;
    }

    Brand icons for Abstract products.

    • Abstract: string
    • InstaLOD: string
    • InstaMAT: string
    • Polyverse: string
    • RSX: string
srgbAccentColor: SRGBColor
srgbFocusOutlineColor: SRGBColor
tabBar: string
tabBarLarge: string
toolbarButtonSize: number

A constant that determines the size of a toolbar button.

toolbarIconSize: number

A constant that determines the size of icons on toolbar buttons.

toolbarSizeWithHighlight: number

A constant that determines the size of a toolbar button with the highlight.

verticallyCenteredLabel: string
viewportMessage: string

Methods

  • Creates a dark background panel.

    Returns UIPanel

  • Creates an info box label with the given message.

    Parameters

    • message: string | I18N

      The message to display in the info box.

    Returns UILabel

    The info box label.

    This should typically convey helpful "Did you know?" style information to the user.