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
Properties
Background
public Color Background { get; init; }
Property Value
Border
public Color Border { get; init; }
Property Value
Text
public Color Text { get; init; }
Property Value
TextOnBackground
public Color TextOnBackground { get; init; }