Class ThemeManager
- Namespace
- Terminal.Gui.Configuration
- Assembly
- Terminal.Gui.dll
Manages Themes.
public static class ThemeManager
- Inheritance
-
ThemeManager
- Inherited Members
Remarks
A Theme is a collection of settings that are named. The default theme is named "Default".
The Theme property is used to determine the currently active theme.
The Themes property is a dictionary of themes.
Properties
- Themes
Gets the Themes dictionary. GetThemes() is preferred. The backing store is
Settings ["Themes"]
. However, if Terminal.Gui.Configuration.ConfigurationManager.IsInitialized() isfalse
, this property will return the hard-coded themes.
Methods
- GetCurrentTheme()
Convenience method to get the current theme. The current theme is the item in the Themes dictionary, with the key of Theme.
- GetCurrentThemeName()
Convenience method to get the current theme name. The current theme name is the value of Theme.
- GetThemeNames()
Convenience method to get a list of theme names.
- GetThemes()
Convenience method to get the themes dictionary. The themes dictionary is a dictionary of ThemeScope objects, with the key being the name of the theme.
- Validate()
Validates all themes in the Themes dictionary.
Events
- ThemeChanged
Raised when the selected theme has changed.