API Reference
Class
ConsoleMarkupCompatibility
Adapts Spectre markup colors to palettes that remain readable in legacy consoles.
Inheritance
- Object
- ConsoleMarkupCompatibility
Methods
AdaptMarkup(System.String markup, TestimoX.Theming.ConsoleVisualProfile profile, System.Boolean useBasicPalette) #Rewrites markup colors that legacy or explicitly basic console profiles cannot render reliably.
Parameters
- markup System.String
- Spectre markup to adapt.
- profile TestimoX.Theming.ConsoleVisualProfile
- Visual profile selected for the active console.
- useBasicPalette System.Boolean
- Whether the user explicitly selected the basic color mode.
Returns
Markup adapted for the selected console profile.
AdaptStyle(System.String style, TestimoX.Theming.ConsoleVisualProfile profile, System.Boolean useBasicPalette) #Rewrites a standalone Spectre style used by renderables such as rules.
Parameters
- style System.String
- Spectre style expression to adapt.
- profile TestimoX.Theming.ConsoleVisualProfile
- Visual profile selected for the active console.
- useBasicPalette System.Boolean
- Whether the user explicitly selected the basic color mode.
Returns
A style expression adapted for the selected console profile.