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
| Member | Summary |
|---|---|
Accent | Text that should stand out from ordinary text. |
Active | Something switched on, such as an enabled action. |
ActiveSelection | The row under the cursor in the focused pane. |
Caret | The symbol the caret stands on, written the other way round rather than beside. |
Default | Ordinary text on the terminal's own background. |
Error | Validation messages and failures. |
Header | Screen titles. |
Info | Box borders and other structural lines. |
Input | The editable part of a text field. |
Palette | 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. |
Secondary | Secondary text: hints, footers, disabled rows. |
Selection | The row under the cursor while its pane is not focused. |
TableHeader | Column headers of a table. |
Warning | Something 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
Header
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
| Type | Thrown when |
|---|---|
InvalidOperationException | Assigned 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