ThemeScope.cs 984 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Text.Json.Serialization;
  2. #nullable enable
  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 <see cref="Application"/>
  6. /// as a group.
  7. /// </summary>
  8. /// <remarks>
  9. /// <para>
  10. /// </para>
  11. /// </remarks>
  12. /// <example><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></example>
  42. [JsonConverter (typeof (ScopeJsonConverter<ThemeScope>))]
  43. public class ThemeScope : Scope<ThemeScope> {
  44. }