Skip to content

InfoBarDividerWidget

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A visual divider between info bar sections. Displays a character or string to divide sections (distinct from a , which is a flexible gap that pushes sections apart).

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

Inheritance

ObjectInfoBarDividerWidget

Implements

Constructors

InfoBarDividerWidget(string, Hex1bColor?, Hex1bColor?)

A visual divider between info bar sections. Displays a character or string to divide sections (distinct from a , which is a flexible gap that pushes sections apart).

Parameters:

csharp
public InfoBarDividerWidget(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 divider 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 divider.

Returns: Func<Hex1bTheme, Hex1bTheme>

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

Methods

Theme(Func<Hex1bTheme, Hex1bTheme>)

Applies custom theme settings to this divider.

Parameters:

Returns: InfoBarDividerWidget

A new divider with the theme customization.

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

Released under the MIT License.