ColorPicker.Style.cs 751 B

12345678910111213141516171819202122232425
  1. #nullable enable
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Contains style settings for <see cref="ColorPicker"/> e.g. which <see cref="ColorModel"/>
  5. /// to use.
  6. /// </summary>
  7. public class ColorPickerStyle
  8. {
  9. /// <summary>
  10. /// The color model for picking colors by RGB, HSV, etc.
  11. /// </summary>
  12. public ColorModel ColorModel { get; set; } = ColorModel.HSV;
  13. /// <summary>
  14. /// True to put the numerical value of bars on the right of the color bar
  15. /// </summary>
  16. public bool ShowTextFields { get; set; } = true;
  17. /// <summary>
  18. /// True to show an editable text field indicating the w3c/console color name of selected color.
  19. /// </summary>
  20. public bool ShowColorName { get; set; } = false;
  21. }