API reference
Class UiTheme
Namespace: MicroEngine.UI
Assembly: MicroEngine.UI.dll
Guide: UI widgets
Visual theme for the shared widgets so each game can keep its own identity.
public sealed record UiTheme : IEquatable<UiTheme>Inheritance
Implements
Constructors
UiTheme(PanelStyle, Color, Color, Color, Color)
Visual theme for the shared widgets so each game can keep its own identity.
public UiTheme(PanelStyle Panel, Color Text, Color TextShadow, Color Accent, Color Muted)Parameters
Panel PanelStyle
Colours of panels and boxes.
Text Color
Normal text.
TextShadow Color
The 1px shadow under text.
Accent Color
Highlights: the selected option, name tags, headings.
Muted Color
Secondary or disabled text.
Fields
Default
The built-in dark blue theme with a warm yellow accent.
public static readonly UiTheme DefaultField Value
Properties
Accent
Highlights: the selected option, name tags, headings.
public Color Accent { get; init; }Property Value
Muted
Secondary or disabled text.
public Color Muted { get; init; }Property Value
Panel
Colours of panels and boxes.
public PanelStyle Panel { get; init; }Property Value
Text
Normal text.
public Color Text { get; init; }Property Value
TextShadow
The 1px shadow under text.
public Color TextShadow { get; init; }Property Value
Methods
<Clone>$()
public UiTheme <Clone>$()Returns
Deconstruct(out PanelStyle, out Color, out Color, out Color, out Color)
public void Deconstruct(out PanelStyle Panel, out Color Text, out Color TextShadow, out Color Accent, out Color Muted)Parameters
Panel PanelStyle
Text Color
TextShadow Color
Accent Color
Muted Color
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(UiTheme?)
public bool Equals(UiTheme? other)Parameters
other UiTheme?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(UiTheme?, UiTheme?)
public static bool operator ==(UiTheme? left, UiTheme? right)Parameters
left UiTheme?
right UiTheme?
Returns
operator !=(UiTheme?, UiTheme?)
public static bool operator !=(UiTheme? left, UiTheme? right)Parameters
left UiTheme?
right UiTheme?