ThemeScope.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #nullable enable
  2. using System.Text.Json.Serialization;
  3. namespace Terminal.Gui.Configuration;
  4. // TODO: Change to internal to prevent app usage
  5. /// <summary>
  6. /// The root object for a Theme. A Theme is a set of settings that are applied to the running
  7. /// <see cref="Application"/> as a group.
  8. /// </summary>
  9. /// <remarks>
  10. /// <para></para>
  11. /// </remarks>
  12. /// <example>
  13. /// <code>
  14. /// "Default": {
  15. /// "Schemes": [
  16. /// {
  17. /// "TopLevel": {
  18. /// "Normal": {
  19. /// "Foreground": "BrightGreen",
  20. /// "Background": "Black"
  21. /// },
  22. /// "Focus": {
  23. /// "Foreground": "White",
  24. /// "Background": "Cyan"
  25. ///
  26. /// },
  27. /// "HotNormal": {
  28. /// "Foreground": "Yellow",
  29. /// "Background": "Black"
  30. ///
  31. /// },
  32. /// "HotFocus": {
  33. /// "Foreground": "Blue",
  34. /// "Background": "Cyan"
  35. /// },
  36. /// "Disabled": {
  37. /// "Foreground": "DarkGray",
  38. /// "Background": "Black"
  39. ///
  40. /// }
  41. /// }
  42. /// </code>
  43. /// </example>
  44. [JsonConverter (typeof (ScopeJsonConverter<ThemeScope>))]
  45. public class ThemeScope : Scope<ThemeScope>
  46. {
  47. }