Table of Contents

Class ThemeChanges

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

Static facade that raises when the active theme — or any setting that affects views reading from *Settings.Defaults — has changed. Provided for consumers that cannot take a IThemeManager dependency (typically View subclasses constructed before an IApplication is available).

public static class ThemeChanges
Inheritance
ThemeChanges
Inherited Members

Remarks

This class is the MEC-friendly replacement for the obsolete ConfigurationManager.Applied event subscriptions in View subclasses. It raises after any settings re-application (theme switch, runtime config reload, ConfigurationManager.Reset(), etc.) so that handlers re-read their static defaults.

The bridge to the legacy events is established the first time this class is referenced; the subscription persists for the lifetime of the process and never needs explicit teardown.

Events

ThemeChanged

Raised after the active theme — or any setting affecting *Settings.Defaults — has changed. The Value is the name of the currently-active theme.