Table of Contents

Class MecThemeManager

Namespace
Terminal.Gui.Configuration
Assembly
Terminal.Gui.dll

MEC-backed implementation of IThemeManager. During the transition period (PR #5411), this delegates writes to the legacy static ThemeManager because the runtime theme/scheme dictionary is still owned by Settings. The Phase A2 work in #5416 will let this type own the theme/scheme data directly.

public class MecThemeManager : IThemeManager
Inheritance
MecThemeManager
Implements
Inherited Members

Constructors

MecThemeManager(TuiConfigurationBuilder)

Initializes a new instance of MecThemeManager.

Properties

CurrentThemeName

Gets the name of the currently active theme.

ThemeNames

Gets the names of all available themes.

Methods

SwitchTheme(string)

Switches the active theme. This updates all ThemeScope Settings POCOs and triggers redraw on affected views.

Events

ThemeChanged

Raised after the active theme has changed. The Value is the name of the newly-active theme.