namespace Prism.Glass
{
///
/// Which parts of a color picker redraw to follow the color being edited. A part that doesn't follow draws as its
/// material is, so a host can show fixed art there.
///
public class ColorPickerBehavior
{
///
/// The behavior where every part follows the color.
///
public static readonly ColorPickerBehavior Default = new ColorPickerBehavior();
///
/// Gets whether the hue and saturation disc is tinted to show the color's value.
///
public bool DiscShowsValue { get; init; } = true;
///
/// Gets whether the value strip is tinted to the color's hue and saturation.
///
public bool ValueStripShowsHueAndSaturation { get; init; } = true;
///
/// Gets whether the alpha strip is tinted to the color without its alpha.
///
public bool AlphaStripShowsColor { get; init; } = true;
///
/// Gets whether the color follows the hex text as it is typed, rather than when it is committed. Text that
/// isn't a color yet changes nothing.
///
public bool HexUpdatesWhileTyping { get; init; }
///
/// Gets whether the color follows a number field as it is scrubbed, rather than when the scrub ends.
///
public bool FieldsUpdateWhileScrubbing { get; init; } = true;
}
}