using UnityEngine.UIElements;
///
/// class that inherits from OklchColourPickerUI for the demo colour picker on the DefaultView
///
public class DemoOklchColourPicker : OklchColourPickerUI
{
///
/// initialise the ui elements and register change event callbacks functions
///
public new void OnEnable()
{
var ui = GetComponent().rootVisualElement;
LightnessSlider = ui.Q("DemoResponseLightnessSlider");
LightnessSlider.RegisterCallback>(OnLightnessChange);
ChromaSlider = ui.Q("DemoResponseChromaSlider");
ChromaSlider.RegisterCallback>(OnChromaChange);
HueSlider = ui.Q("DemoResponseHueSlider");
HueSlider.RegisterCallback>(OnHueChange);
ResponseColour = ui.Q("DemoResponseColour");
}
}