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
Object → InfoBarSeparatorWidget
Implements
Constructors
InfoBarSeparatorWidget(string, Hex1bColor?, Hex1bColor?)
A visual separator between info bar sections. Displays a character or string to divide sections.
Parameters:
Character(String): The separator character(s) to display. Defaults to "|".Foreground(Nullable<Hex1bColor>): Optional foreground color override.Background(Nullable<Hex1bColor>): Optional background color override.
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:
mutator(Func<Hex1bTheme, Hex1bTheme>): A function that customizes the theme for this separator.
Returns: InfoBarSeparatorWidget
A new separator with the theme customization.
csharp
public InfoBarSeparatorWidget Theme(Func<Hex1bTheme, Hex1bTheme> mutator)