Skip to content

InfoBarSeparatorWidget

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A visual separator between info bar sections. Displays a character or string to divide sections.

csharp
public sealed record InfoBarSeparatorWidget : IInfoBarChild, IEquatable<InfoBarSeparatorWidget>

Inheritance

ObjectInfoBarSeparatorWidget

Implements

Constructors

InfoBarSeparatorWidget(string, Hex1bColor?, Hex1bColor?)

A visual separator between info bar sections. Displays a character or string to divide sections.

Parameters:

csharp
public InfoBarSeparatorWidget(string Character = "|", Hex1bColor? Foreground = null, Hex1bColor? Background = null)

Properties

Background

Optional background color override.

Returns: Nullable<Hex1bColor>

csharp
public Hex1bColor? Background { get; init; }

Character

The separator character(s) to display. Defaults to "|".

Returns: String

csharp
public string Character { get; init; }

Foreground

Optional foreground color override.

Returns: Nullable<Hex1bColor>

csharp
public Hex1bColor? Foreground { get; init; }

ThemeMutator

Optional theme customization for this separator.

Returns: Func<Hex1bTheme, Hex1bTheme>

csharp
public Func<Hex1bTheme, Hex1bTheme>? ThemeMutator { get; init; }

Methods

Theme(Func<Hex1bTheme, Hex1bTheme>)

Applies custom theme settings to this separator.

Parameters:

Returns: InfoBarSeparatorWidget

A new separator with the theme customization.

csharp
public InfoBarSeparatorWidget Theme(Func<Hex1bTheme, Hex1bTheme> mutator)

Released under the MIT License.