Swatch accepts hex input

This commit is contained in:
2024-08-16 15:17:44 -04:00
parent 3d28c8fea1
commit 43ec7a0311
2 changed files with 28 additions and 14 deletions

View File

@@ -65,6 +65,7 @@ func (this *HSVAColorPicker) SetValue (value color.Color) {
this.value = internal.HSVAModel.Convert(value).(internal.HSVA)
this.hueSlider.SetValue(this.value.H)
this.alphaSlider.SetValue(float64(this.value.A) / 0xFFFF)
this.pickerMap.Invalidate()
}
// OnValueChange specifies a function to be called when the user changes the