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).
public sealed record InfoBarDividerWidget : IInfoBarChild, IEquatable<InfoBarDividerWidget>Inheritance
Object → InfoBarDividerWidget
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:
Character(String): The divider character(s) to display. Defaults to "|".Foreground(Nullable<Hex1bColor>): Optional foreground color override.Background(Nullable<Hex1bColor>): Optional background color override.
public InfoBarDividerWidget(string Character = "|", Hex1bColor? Foreground = null, Hex1bColor? Background = null)Properties
Background
Optional background color override.
Returns: Nullable<Hex1bColor>
public Hex1bColor? Background { get; init; }Character
The divider character(s) to display. Defaults to "|".
Returns: String
public string Character { get; init; }Foreground
Optional foreground color override.
Returns: Nullable<Hex1bColor>
public Hex1bColor? Foreground { get; init; }ThemeMutator
Optional theme customization for this divider.
Returns: Func<Hex1bTheme, Hex1bTheme>
public Func<Hex1bTheme, Hex1bTheme>? ThemeMutator { get; init; }Methods
Theme(Func<Hex1bTheme, Hex1bTheme>)
Applies custom theme settings to this divider.
Parameters:
mutator(Func<Hex1bTheme, Hex1bTheme>): A function that customizes the theme for this divider.
Returns: InfoBarDividerWidget
A new divider with the theme customization.
public InfoBarDividerWidget Theme(Func<Hex1bTheme, Hex1bTheme> mutator)