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
| Member | Summary |
|---|---|
ThemePalette() |
Properties
| Member | Summary |
|---|---|
Accent | Text that stands out without being alarming. Bone. |
Active | Something switched on or available. Crimson. |
ActiveSelection | The cursor row of the focused pane. Ink on ash, so it is never read as a failure. |
Arlecchino | 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. |
Basic | The terminal's own sixteen colors, with nothing exact behind them. It was the default before 2.0. |
Caret | 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. |
Default | Ordinary text. The terminal's own foreground and background. |
Error | Failures and validation messages. Bone on crimson. |
Header | Screen titles. Bold crimson. |
Info | Borders and structural lines. Ash. |
Input | The editable part of a text field. Ink on bone. |
Secondary | Secondary text such as hints and footers. Ash. |
Selection | The cursor row of an unfocused pane. Bone on the hairline gray. |
TableHeader | Column headers. Bold bone. |
Warning | Something 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
Header
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