Skip to content

SpinnerTheme

Namespace: Hex1b.Theming

Assembly: Hex1b.dll

Theme elements for Spinner widgets.

csharp
public static class SpinnerTheme

Inheritance

ObjectSpinnerTheme

Fields

BackgroundColor

The background color for the spinner character.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> BackgroundColor

ForegroundColor

The foreground color for the spinner character.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> ForegroundColor

Style

The default spinner style used when no explicit style is specified.

Returns: Hex1bThemeElement<SpinnerStyle>

csharp
public static readonly Hex1bThemeElement<SpinnerStyle> Style

Remarks

SpinnerTheme provides customization for spinner appearance:

: The default spinner animation style: The spinner character color: The spinner background color

Examples

Customize spinner appearance via theme:

csharp
var theme = new Hex1bThemeBuilder()
    .Set(SpinnerTheme.Style, SpinnerStyle.Arrow)
    .Set(SpinnerTheme.ForegroundColor, Hex1bColor.Green)
    .Build();

Released under the MIT License.