ThemeScope.cs 1003 B

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