+ @if (!DisableColorField)
+ {
+
+ @if (_activeColorPickerView == ColorPickerView.Spectrum)
+ {
+
+
+
+
+
+
+
+
+
+ }
+ @if (_activeColorPickerView is ColorPickerView.Grid or ColorPickerView.GridCompact)
+ {
+
+ @foreach (var item in _gridList)
+ {
+
+ }
+
+ }
+
+ }
+ @if (_activeColorPickerView != ColorPickerView.GridCompact)
+ {
+ @if (!DisableSliders || !DisableInputs || !DisablePreview)
+ {
+
+ @if (!DisableSliders || !DisablePreview)
+ {
+
+ @if (!DisablePreview)
+ {
+
+ }
+ @if (!DisableSliders && !_collectionOpen)
+ {
+
+ @if (_activeColorPickerView != ColorPickerView.Grid)
+ {
+
+ }
+ @if (!DisableAlpha)
+ {
+
+ }
+
+ }
+ @if (_collectionOpen)
+ {
+
+ @foreach (var item in Palette.Take(5))
+ {
+
+ }
+
+ }
+
+ }
+ @if (!DisableInputs)
+ {
+
+
+ @switch (ColorPickerMode)
+ {
+ case ColorPickerMode.RGB:
+
+
+
+ break;
+ case ColorPickerMode.HSL:
+
+
+
+ break;
+ case ColorPickerMode.HEX:
+
+ break;
+ default:
+ break;
+ }
+
+ @if (!DisableAlpha && ColorPickerMode != ColorPickerMode.HEX)
+ {
+
+ }
+
+ @if (!DisableModeSwitch)
+ {
+
+
+
+ }
+
+ }
+
+ }
+ @if (_activeColorPickerView == ColorPickerView.Palette)
+ {
+
+
+ @foreach (var item in Palette)
+ {
+
+ }
+
+
+ }
+ }
+
+