Skip to main content

Theme class

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

The palette in use, reachable from anywhere that draws. Views pick a role here rather than a color, so swapping Theme.Palette restyles the whole application, chrome included.

public static class Theme

Properties

MemberSummary
AccentText that should stand out from ordinary text.
ActiveSomething switched on, such as an enabled action.
ActiveSelectionThe row under the cursor in the focused pane.
CaretThe symbol the caret stands on, written the other way round rather than beside.
DefaultOrdinary text on the terminal's own background.
ErrorValidation messages and failures.
HeaderScreen titles.
InfoBox borders and other structural lines.
InputThe editable part of a text field.
PaletteThe colors behind the roles, process-wide, so two hosts in one process share one palette. It is swapped on the drawing thread and asks for a frame itself.
SecondarySecondary text: hints, footers, disabled rows.
SelectionThe row under the cursor while its pane is not focused.
TableHeaderColumn headers of a table.
WarningSomething the user should notice, such as the output line.

Properties in detail

Accent

public static TermColor Accent { get; }

Text that should stand out from ordinary text.

Type TermColor

Active

public static TermColor Active { get; }

Something switched on, such as an enabled action.

Type TermColor

ActiveSelection

public static TermColor ActiveSelection { get; }

The row under the cursor in the focused pane.

Type TermColor

Caret

public static TermColor Caret { get; }

The symbol the caret stands on, written the other way round rather than beside.

Type TermColor

Default

public static TermColor Default { get; }

Ordinary text on the terminal's own background.

Type TermColor

Error

public static TermColor Error { get; }

Validation messages and failures.

Type TermColor

public static TermColor Header { get; }

Screen titles.

Type TermColor

Info

public static TermColor Info { get; }

Box borders and other structural lines.

Type TermColor

Input

public static TermColor Input { get; }

The editable part of a text field.

Type TermColor

Palette

public static ThemePalette Palette { get; set; }

The colors behind the roles, process-wide, so two hosts in one process share one palette. It is swapped on the drawing thread and asks for a frame itself.

Type ThemePalette

Exceptions

TypeThrown when
InvalidOperationExceptionAssigned from off the drawing thread.

Secondary

public static TermColor Secondary { get; }

Secondary text: hints, footers, disabled rows.

Type TermColor

Selection

public static TermColor Selection { get; }

The row under the cursor while its pane is not focused.

Type TermColor

TableHeader

public static TermColor TableHeader { get; }

Column headers of a table.

Type TermColor

Warning

public static TermColor Warning { get; }

Something the user should notice, such as the output line.

Type TermColor