Skip to content

lusingander/colorpicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/