Table of Contents

Struct ColorRoleSet

Namespace
SharpConsoleUI.Themes
Assembly
SharpConsoleUI.dll

A coordinated set of colours derived from a single ColorRole: the foreground when the role colour is used as text on the window surface (Text), the role fill (Background), the readable text on that fill (TextOnBackground), and the border (Border). All values are concrete and contrast-checked.

public readonly record struct ColorRoleSet : IEquatable<ColorRoleSet>
Implements
Inherited Members
Extension Methods

Constructors

ColorRoleSet(Color, Color, Color, Color)

A coordinated set of colours derived from a single ColorRole: the foreground when the role colour is used as text on the window surface (Text), the role fill (Background), the readable text on that fill (TextOnBackground), and the border (Border). All values are concrete and contrast-checked.

public ColorRoleSet(Color Text, Color Background, Color TextOnBackground, Color Border)

Parameters

Text Color
Background Color
TextOnBackground Color
Border Color

Properties

Background

public Color Background { get; init; }

Property Value

Color

Border

public Color Border { get; init; }

Property Value

Color

Text

public Color Text { get; init; }

Property Value

Color

TextOnBackground

public Color TextOnBackground { get; init; }

Property Value

Color