using System.Text.Json.Serialization;
#nullable enable
namespace Terminal.Gui;
///
/// The root object for a Theme. A Theme is a set of settings that are applied to the running
/// as a group.
///
///
///
///
///
///
/// "Default": {
/// "ColorSchemes": [
/// {
/// "TopLevel": {
/// "Normal": {
/// "Foreground": "BrightGreen",
/// "Background": "Black"
/// },
/// "Focus": {
/// "Foreground": "White",
/// "Background": "Cyan"
///
/// },
/// "HotNormal": {
/// "Foreground": "Brown",
/// "Background": "Black"
///
/// },
/// "HotFocus": {
/// "Foreground": "Blue",
/// "Background": "Cyan"
/// },
/// "Disabled": {
/// "Foreground": "DarkGray",
/// "Background": "Black"
///
/// }
/// }
///
[JsonConverter (typeof (ScopeJsonConverter))]
public class ThemeScope : Scope {
///
internal override bool Apply ()
{
var ret = base.Apply ();
Application.Driver?.InitializeColorSchemes ();
return ret;
}
}