ColorPicker.Style.cs 736 B

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