logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IUiThemeDefinition

    Interface for defining a UI theme.

    Namespace: Serenity.Ui.Domain.Interfaces
    Assembly: Serenity.Ui.Domain.dll
    Syntax
    public interface IUiThemeDefinition : IFoundationSettings

    Properties

    AdaptMenuWidth

    Whether to adapt menu width to text content (title and options).

    Declaration
    bool AdaptMenuWidth { get; set; }
    Property Value
    Type Description
    bool

    AdaptMenuWidthPadding

    Padding to apply when adapting menu width to text content.

    Declaration
    float AdaptMenuWidthPadding { get; set; }
    Property Value
    Type Description
    float

    Components

    The components of the UI theme.

    Declaration
    IUiThemeComponents Components { get; set; }
    Property Value
    Type Description
    IUiThemeComponents

    The components of the UI theme.

    DeselectAnimationTrigger

    Optional animator trigger name to play when a component is deselected.

    Declaration
    string DeselectAnimationTrigger { get; set; }
    Property Value
    Type Description
    string

    The deselect animation trigger name, or null/empty if no animation should play.

    FontSizeMultiplier

    Multiplier applied to font size presets for theme-specific visual fine-tuning.

    Declaration
    float FontSizeMultiplier { get; set; }
    Property Value
    Type Description
    float

    The font size multiplier (default: 1.0).

    MenuBackground

    The gameobject of the menu background.

    Declaration
    GameObject MenuBackground { get; set; }
    Property Value
    Type Description
    GameObject

    Name

    The name of the UI theme.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string

    The name of the UI theme.

    SelectAnimationTrigger

    Optional animator trigger name to play when a component is selected.

    Declaration
    string SelectAnimationTrigger { get; set; }
    Property Value
    Type Description
    string

    The select animation trigger name, or null/empty if no animation should play.

    ShowMenuBackground

    Whether to show a background for the menu.

    Declaration
    bool ShowMenuBackground { get; set; }
    Property Value
    Type Description
    bool

    Sounds

    The sound definitions of the UI theme.

    Declaration
    IUiThemeSoundsDefinition Sounds { get; set; }
    Property Value
    Type Description
    IUiThemeSoundsDefinition

    The sound definitions of the UI theme.

    In this article
    © 2026 Serenity. All Rights Reserved