Skip to content

ProgressTheme

Namespace: Hex1b.Theming

Assembly: Hex1b.dll

Theme elements for Progress widgets.

csharp
public static class ProgressTheme

Inheritance

ObjectProgressTheme

Fields

EmptyBackgroundColor

The background color for the empty (uncompleted) portion of the progress bar.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> EmptyBackgroundColor

EmptyCharacter

The character used to render the empty (uncompleted) portion of the progress bar.

Returns: Hex1bThemeElement<Char>

csharp
public static readonly Hex1bThemeElement<char> EmptyCharacter

EmptyForegroundColor

The foreground color for the empty (uncompleted) portion of the progress bar.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> EmptyForegroundColor

FilledBackgroundColor

The background color for the filled portion of a determinate progress bar.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FilledBackgroundColor

FilledCharacter

The character used to render the filled (completed) portion of a determinate progress bar.

Returns: Hex1bThemeElement<Char>

csharp
public static readonly Hex1bThemeElement<char> FilledCharacter

FilledForegroundColor

The foreground color for the filled portion of a determinate progress bar.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FilledForegroundColor

FilledLeftHalfCharacter

The character used for a left-half filled cell.

Returns: Hex1bThemeElement<Char>

csharp
public static readonly Hex1bThemeElement<char> FilledLeftHalfCharacter

FilledRightHalfCharacter

The character used for a right-half filled cell.

Returns: Hex1bThemeElement<Char>

csharp
public static readonly Hex1bThemeElement<char> FilledRightHalfCharacter

IndeterminateBackgroundColor

The background color for the animated segment in indeterminate mode.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> IndeterminateBackgroundColor

IndeterminateCharacter

The character used for the animated segment in indeterminate mode.

Returns: Hex1bThemeElement<Char>

csharp
public static readonly Hex1bThemeElement<char> IndeterminateCharacter

IndeterminateForegroundColor

The foreground color for the animated segment in indeterminate mode.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> IndeterminateForegroundColor

UseHalfCellPrecision

Whether to use half-cell precision for smoother progress display.

Returns: Hex1bThemeElement<Boolean>

csharp
public static readonly Hex1bThemeElement<bool> UseHalfCellPrecision

Remarks

ProgressTheme provides customization for both determinate and indeterminate progress bars:

Filled section (determinate mode): The completed portion of the progress barEmpty section: The uncompleted portion of the progress barIndeterminate section: The animated segment in indeterminate mode

Examples

Customize progress bar appearance:

csharp
var theme = new Hex1bThemeBuilder()
    .Set(ProgressTheme.FilledCharacter, '▓')
    .Set(ProgressTheme.EmptyCharacter, '░')
    .Set(ProgressTheme.FilledForegroundColor, Hex1bColor.Green)
    .Build();

Released under the MIT License.