Skip to content
ConsoleMonster
Class

Tones

ConsoleMonster.Styling

Namespace
ConsoleMonster.Styling
Assembly
ConsoleMonster
Modifiers
static

Maps the shared Tone to theme tokens, and the domain facts (StatusKind, Severity) to the tone they are painted with. A named tone resolves to the theme token of that name (accent, series2, gap); an unknown name paints as neutral text.

Inheritance

  • object
  • Tones

Methods

public static ThemeToken? ToToken(Tone tone) #

The theme token a tone paints with, or null for Tone.None.

Parameters

tone ConsoleMonster.Tone required
The tone.

Returns

ThemeToken? The token.
ToTone 3 overloads
public static Tone ToTone(ThemeToken token) #

The tone of a theme token: a built-in tone where one matches, otherwise the token by name.

Parameters

token ConsoleMonster.Styling.ThemeToken required
The token.

Returns

Tone The tone.
public static Tone ToTone(StatusKind status) #

The tone a status is painted with.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

Tone The tone.
public static Tone ToTone(Severity severity) #

The tone an assessment outcome is painted with.

Parameters

severity ConsoleMonster.Styling.Severity required
The outcome.

Returns

Tone The tone.