Table of Contents

Method SetTheme

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

SetTheme(ThemeName)

Switches the active theme used for colorization. Clears the grammar cache since theme changes may affect tokenization colors.

[Obsolete("Syntax colors are resolved from ThemeManager.Theme via VisualRole.Code* roles.")]
public void SetTheme(ThemeName theme)

Parameters

theme ThemeName

The new VS Code theme to use.