Class ThemeManager | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Contains a dictionary of the Themes for a Terminal.Gui application.
public class ThemeManager : IDictionary<string, ThemeScope>, ICollection<KeyValuePair<string, ThemeScope>>, IEnumerable<KeyValuePair<string, ThemeScope>>, IEnumerable
Inheritance
ThemeManager
Implements
Inherited Members
Examples
"Themes": [
{
"Default": {
"ColorSchemes": [
{
"TopLevel": {
"Normal": {
"Foreground": "BrightGreen",
"Background": "Black"
},
"Focus": {
"Foreground": "White",
"Background": "Cyan"
},
"HotNormal": {
"Foreground": "Yellow",
"Background": "Black"
},
"HotFocus": {
"Foreground": "Blue",
"Background": "Cyan"
},
"Disabled": {
"Foreground": "DarkGray",
"Background": "Black"
}
}
}
Properties
Gets the number of elements contained in the ICollection.
Class is a singleton...
Gets a value indicating whether the ICollection is read-only.
Gets or sets the element with the specified key.
Gets an ICollection containing the keys of the IDictionary<TKey, TValue>.
Gets or sets the currently selected theme. The value is persisted to the "Theme" property.
Holds the ThemeScope definitions.
Gets an ICollection containing the values in the IDictionary<TKey, TValue>.
Methods
Add(KeyValuePair<string, ThemeScope>)
Adds an item to the ICollection.
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
Removes all items from the ICollection.
Contains(KeyValuePair<string, ThemeScope>)
Determines whether the ICollection contains a specific value.
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
CopyTo(KeyValuePair<string, ThemeScope>[], int)
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Returns an enumerator that iterates through the collection.
Remove(KeyValuePair<string, ThemeScope>)
Removes the first occurrence of a specific object from the ICollection.
Removes the element with the specified key from the IDictionary<TKey, TValue>.
TryGetValue(string, out ThemeScope)
Gets the value associated with the specified key.
Events
Event fired he selected theme has changed. application.