ShadowStyle.cs 692 B

12345678910111213141516171819202122232425
  1. using System.Text.Json.Serialization;
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Defines the style of shadow to be drawn on the right and bottom sides of the <see cref="View"/>.
  5. /// </summary>
  6. [JsonConverter (typeof (JsonStringEnumConverter<ShadowStyle>))]
  7. public enum ShadowStyle
  8. {
  9. /// <summary>
  10. /// No shadow.
  11. /// </summary>
  12. None,
  13. /// <summary>
  14. /// A shadow that is drawn using block elements. Ideal for smaller views such as buttons.
  15. /// </summary>
  16. Opaque,
  17. /// <summary>
  18. /// A shadow that is drawn using the underlying text with a darker background. Ideal for larger views such as windows.
  19. /// </summary>
  20. Transparent
  21. }