Class
Tones
ConsoleMonster.Styling
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
- The tone.
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
- The token.
public static Tone ToTone(StatusKind status) #The tone a status is painted with.
Parameters
- status ConsoleMonster.Styling.StatusKind
- The status.
public static Tone ToTone(Severity severity) #The tone an assessment outcome is painted with.
Parameters
- severity ConsoleMonster.Styling.Severity
- The outcome.