using Azimuth; using Glass; namespace Prism.Glass { /// /// The look of each part of a color picker. A part left null draws nothing and takes no room. The art of the disc /// and strips is tinted to follow the color, so draw it white and at full value. /// public struct ColorPickerMaterial { /// /// Drawn behind the parts, with its border kept clear of them. Use an invisible material for none. /// public Material Background; /// /// The hue and saturation disc at full value. The disc is as big as this material wants to be. /// public Material Disc; /// /// A ramp from black at the bottom to white at the top. The strip is as wide as this material wants to be and /// as tall as the disc. /// public Material ValueStrip; /// /// A ramp from transparent at the bottom to opaque white at the top. The strip is as wide as this material /// wants to be and as tall as the disc. /// public Material AlphaStrip; /// /// Behind the alpha strip, so its transparency shows against something. /// public Material AlphaBackdrop; /// /// Marks the color's place on the disc, centered there. It is as big as this material wants to be. /// public Material DiscMarker; /// /// Marks the color's place on a strip. It is as wide as the strip and as tall as this material wants to be. /// public Material StripMarker; /// /// The box the color's hex text is typed into, under the swatches, or null for none. It is as wide as the /// picker and one line tall. /// public TextBoxMaterial? HexBox; /// /// The look of the hue, saturation, value and alpha number fields, in a row under the hex box, or null for no /// fields. Each takes a quarter of the picker's width. /// public NumberFieldMaterial? Field; /// /// The style of the letter before each number field, or null for no letters, which also leaves them no room. /// public TextMaterialStyle FieldLabel; /// /// The gap between the parts. /// public Scalar Spacing; /// /// The height of the old and new color swatches under the disc. /// public Scalar SwatchHeight; } }