Class EditorStyles

THe EditorStyles contains values and styles used throughout the editor.

Constructors

Properties

accentColor: Color
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: {
    danger: Color;
    documentationHint: Color;
    element: {
        focusBorder: Color;
    };
    home: {
        darkSlateGray: Immutable<Color>;
        lightSlateGray: Immutable<Color>;
    };
    panel: {
        background: {
            darkSlateGray: Immutable<Color>;
            lightSlateGray: Immutable<Color>;
        };
    };
    success: Color;
    text: Color;
    warning: Color;
}

Different colors used throughout the editor.

Type declaration

darkBackgroundColor: Color
defaultGizmoIconColor: Color
defaultGizmoIconSizeInPixels = 72
defaultGizmoIconStyle: EnumValue<StockIconStyle, number>
directoryBarTagButton: string
errorFlashColor: Immutable<Color>

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

focusOutlineColor: Color
foldout: string
foldoutCompact: string
foldoutCompactDismiss: string
foldoutDismiss: string
hoverBorderColor: Immutable<Color>
iconStyle: EnumValue<StockIconStyle, number>

The standard Stock Icon style to be used in the UI.

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<Color>
pingColor: Immutable<Color>
primaryDarkGray: Color
primaryMidGray: Color
radiusBig: number
radiusMedium: number
radiusSmall: number
sceneOverlayLabel: string
segmentedButton: {
    dark: string;
}

Styles for UIElements used in the context of a UISegmentedButton.

selectionAreaColor: Color

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

selectionAreaOutlineColor: Color

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

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

Built in shapes.

Type declaration

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

    Brand icons for Abstract products.

    • InstaLOD: string
    • InstaMAT: string
    • Polyverse: string
    • RSX: string
tabBar: string
tabBarLarge: string
toolbarButtonSize: number

A constant that determines the size of a toolbar button.

toolbarIconSize: number

A constant that determines

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