Skip to main content

ThemePalette class

Namespace: Arlecchino.Rendering.Colors · Assembly: Arlecchino.Core

The colors behind the roles in Theme. Every role has a default, so a palette that overrides two of them is a valid palette — and what it does not override is the framework's own colors, described on ThemePalette.Arlecchino.

public sealed class ThemePalette

Constructors

MemberSummary
ThemePalette()

Properties

MemberSummary
AccentText that stands out without being alarming. Bone.
ActiveSomething switched on or available. Crimson.
ActiveSelectionThe cursor row of the focused pane. Ink on ash, so it is never read as a failure.
ArlecchinoThe framework's own colors, on whatever background the terminal has. It is what a palette starts from, and ThemePalette.Basic is the way back to the sixteen plain colors.
BasicThe terminal's own sixteen colors, with nothing exact behind them. It was the default before 2.0.
CaretThe symbol the caret stands on, which is written the other way round rather than beside. Bone on crimson, so the caret is found at a glance without the text shifting to make room for it.
DefaultOrdinary text. The terminal's own foreground and background.
ErrorFailures and validation messages. Bone on crimson.
HeaderScreen titles. Bold crimson.
InfoBorders and structural lines. Ash.
InputThe editable part of a text field. Ink on bone.
SecondarySecondary text such as hints and footers. Ash.
SelectionThe cursor row of an unfocused pane. Bone on the hairline gray.
TableHeaderColumn headers. Bold bone.
WarningSomething worth noticing. Ink on amber.

Constructors in detail

ThemePalette()

public ThemePalette();

Properties in detail

Accent

public TermColor Accent { get; init; }

Text that stands out without being alarming. Bone.

Type TermColor

Active

public TermColor Active { get; init; }

Something switched on or available. Crimson.

Type TermColor

ActiveSelection

public TermColor ActiveSelection { get; init; }

The cursor row of the focused pane. Ink on ash, so it is never read as a failure.

Type TermColor

Arlecchino

public static ThemePalette Arlecchino { get; }

The framework's own colors, on whatever background the terminal has. It is what a palette starts from, and ThemePalette.Basic is the way back to the sixteen plain colors.

Type ThemePalette

Basic

public static ThemePalette Basic { get; }

The terminal's own sixteen colors, with nothing exact behind them. It was the default before 2.0.

Type ThemePalette

Caret

public TermColor Caret { get; init; }

The symbol the caret stands on, which is written the other way round rather than beside. Bone on crimson, so the caret is found at a glance without the text shifting to make room for it.

Type TermColor

Default

public TermColor Default { get; init; }

Ordinary text. The terminal's own foreground and background.

Type TermColor

Error

public TermColor Error { get; init; }

Failures and validation messages. Bone on crimson.

Type TermColor

public TermColor Header { get; init; }

Screen titles. Bold crimson.

Type TermColor

Info

public TermColor Info { get; init; }

Borders and structural lines. Ash.

Type TermColor

Input

public TermColor Input { get; init; }

The editable part of a text field. Ink on bone.

Type TermColor

Secondary

public TermColor Secondary { get; init; }

Secondary text such as hints and footers. Ash.

Type TermColor

Selection

public TermColor Selection { get; init; }

The cursor row of an unfocused pane. Bone on the hairline gray.

Type TermColor

TableHeader

public TermColor TableHeader { get; init; }

Column headers. Bold bone.

Type TermColor

Warning

public TermColor Warning { get; init; }

Something worth noticing. Ink on amber.

Type TermColor