Struct TextModeColorSet
Authoring container holding every color a TextMode theme defines: the sixteen ANSI colors that indexed text is drawn with, and the semantic colors that name what a color is for. Passed to CreateEntries(in TextModeColorSet) to produce the palette entries for one theme.
Inherited Members
Namespace: Scylla.TextMode
Assembly: ScyllaTextMode.dll
Syntax
public struct TextModeColorSet
Remarks
This type exists so the entry names and semantic roles of a theme palette are declared in exactly one place. Theme authors fill in the colors and never spell an entry name, which matters because a misspelled entry drops the whole palette out of Resolve(string).
It is an authoring type, not a runtime one. At runtime the colors are read back out of a
ColorPalette into a TextModeColorScheme, which is what views and
terminals actually consume.
Fields
Accent
Highlight color for headings, keys and anything meant to draw the eye.
Declaration
public Color Accent
Field Value
| Type | Description |
|---|---|
| Color |
Background
Default cell background, and the color a cleared grid is filled with.
Declaration
public Color Background
Field Value
| Type | Description |
|---|---|
| Color |
Black
ANSI color 0. Also the usual terminal background.
Declaration
public Color Black
Field Value
| Type | Description |
|---|---|
| Color |
Blue
ANSI color 4.
Declaration
public Color Blue
Field Value
| Type | Description |
|---|---|
| Color |
Border
Frames, rules and separators drawn with box characters.
Declaration
public Color Border
Field Value
| Type | Description |
|---|---|
| Color |
BrightBlack
ANSI color 8. Conventionally a mid gray rather than a second black.
Declaration
public Color BrightBlack
Field Value
| Type | Description |
|---|---|
| Color |
BrightBlue
ANSI color 12.
Declaration
public Color BrightBlue
Field Value
| Type | Description |
|---|---|
| Color |
BrightCyan
ANSI color 14.
Declaration
public Color BrightCyan
Field Value
| Type | Description |
|---|---|
| Color |
BrightForeground
Emphasized text, one step brighter than Foreground.
Declaration
public Color BrightForeground
Field Value
| Type | Description |
|---|---|
| Color |
BrightGreen
ANSI color 10.
Declaration
public Color BrightGreen
Field Value
| Type | Description |
|---|---|
| Color |
BrightMagenta
ANSI color 13.
Declaration
public Color BrightMagenta
Field Value
| Type | Description |
|---|---|
| Color |
BrightRed
ANSI color 9.
Declaration
public Color BrightRed
Field Value
| Type | Description |
|---|---|
| Color |
BrightWhite
ANSI color 15.
Declaration
public Color BrightWhite
Field Value
| Type | Description |
|---|---|
| Color |
BrightYellow
ANSI color 11.
Declaration
public Color BrightYellow
Field Value
| Type | Description |
|---|---|
| Color |
Cursor
The text cursor.
Declaration
public Color Cursor
Field Value
| Type | Description |
|---|---|
| Color |
Cyan
ANSI color 6.
Declaration
public Color Cyan
Field Value
| Type | Description |
|---|---|
| Color |
DimForeground
Secondary text such as hints, disabled entries and inactive labels.
Declaration
public Color DimForeground
Field Value
| Type | Description |
|---|---|
| Color |
ErrorForeground
Failures and error messages.
Declaration
public Color ErrorForeground
Field Value
| Type | Description |
|---|---|
| Color |
Foreground
Default text color, used for any cell written without an explicit color.
Declaration
public Color Foreground
Field Value
| Type | Description |
|---|---|
| Color |
Green
ANSI color 2.
Declaration
public Color Green
Field Value
| Type | Description |
|---|---|
| Color |
InfoForeground
Neutral notices.
Declaration
public Color InfoForeground
Field Value
| Type | Description |
|---|---|
| Color |
Magenta
ANSI color 5.
Declaration
public Color Magenta
Field Value
| Type | Description |
|---|---|
| Color |
Red
ANSI color 1.
Declaration
public Color Red
Field Value
| Type | Description |
|---|---|
| Color |
SelectionBackground
Fill color behind a selected region.
Declaration
public Color SelectionBackground
Field Value
| Type | Description |
|---|---|
| Color |
SelectionForeground
Text color inside a selected region.
Declaration
public Color SelectionForeground
Field Value
| Type | Description |
|---|---|
| Color |
SuccessForeground
Confirmations and completed actions.
Declaration
public Color SuccessForeground
Field Value
| Type | Description |
|---|---|
| Color |
WarningForeground
Cautions and non-fatal problems.
Declaration
public Color WarningForeground
Field Value
| Type | Description |
|---|---|
| Color |
White
ANSI color 7. Also the usual terminal foreground.
Declaration
public Color White
Field Value
| Type | Description |
|---|---|
| Color |
Yellow
ANSI color 3.
Declaration
public Color Yellow
Field Value
| Type | Description |
|---|---|
| Color |