Swatch accepts hex input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user