TestimoX

API Reference

Class

ConsoleMarkupCompatibility

Namespace TestimoX.Theming

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 required
Spectre markup to adapt.
profile TestimoX.Theming.ConsoleVisualProfile required
Visual profile selected for the active console.
useBasicPalette System.Boolean required
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 required
Spectre style expression to adapt.
profile TestimoX.Theming.ConsoleVisualProfile required
Visual profile selected for the active console.
useBasicPalette System.Boolean required
Whether the user explicitly selected the basic color mode.

Returns

A style expression adapted for the selected console profile.