Table of Contents

Class WindowColorSet

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Immutable record representing a color set for a window.

public record WindowColorSet : IEquatable<WindowColorSet>
Inheritance
WindowColorSet
Implements
Inherited Members

Properties

BackgroundColor

Gets the background color for the window.

public Color BackgroundColor { get; init; }

Property Value

Color

BorderForegroundColor

Gets the border foreground color for the window.

public Color BorderForegroundColor { get; init; }

Property Value

Color

ForegroundColor

Gets the foreground (text) color for the window.

public Color ForegroundColor { get; init; }

Property Value

Color

IsActive

Gets a value indicating whether the window is active.

public bool IsActive { get; init; }

Property Value

bool

TitleForegroundColor

Gets the title foreground color for the window.

public Color TitleForegroundColor { get; init; }

Property Value

Color

Methods

FromTheme(ITheme, bool, bool)

Creates a WindowColorSet from a theme based on window state.

public static WindowColorSet FromTheme(ITheme theme, bool isActive, bool isModal)

Parameters

theme ITheme

The theme to derive colors from.

isActive bool

Whether the window is currently active.

isModal bool

Whether the window is a modal dialog.

Returns

WindowColorSet

A new WindowColorSet with the appropriate colors.