colorpicker icon indicating copy to clipboard operation
colorpicker copied to clipboard

Color picker component for Fyne 🎨

GitHub release (latest SemVer) PkgGoDev Go Report Card GitHub

colorpicker

Color picker component for Fyne

Usage

picker := colorpicker.New(200 /* height */, colorpicker.StyleHue /* Style */)
picker.SetOnChanged(func(c color.Color) {
    // called when the color is changed on the picker
    fmt.Println(c)
})

// you can use it just like any other Fyne widget
fyne.NewContainer(picker)

Documentation

See pkg.go.dev

Example

colorpicker

You can see all the styles implemented.

colorpicker/cmd/colorpicker/


colorpicker-popup

Example of embedding in Fyne's custom dialog.

colorpicker/cmd/colorpicker-popup/