Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lusingander/colorpicker

Color picker component for Fyne 🎨
https://github.com/lusingander/colorpicker

color-picker colorpicker fyne go

Last synced: about 2 months ago
JSON representation

Color picker component for Fyne 🎨

Awesome Lists containing this project

README

        

![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/lusingander/colorpicker)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/lusingander/colorpicker?tab=doc)](https://pkg.go.dev/github.com/lusingander/colorpicker?tab=doc)
[![Go Report Card](https://goreportcard.com/badge/github.com/lusingander/colorpicker)](https://goreportcard.com/report/github.com/lusingander/colorpicker)
![GitHub](https://img.shields.io/github/license/lusingander/colorpicker)

# colorpicker

Color picker component for [Fyne](https://fyne.io/)

## Usage

```go
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](https://pkg.go.dev/github.com/lusingander/colorpicker?tab=doc)

## Example

### colorpicker

You can see all the styles implemented.

[colorpicker/cmd/colorpicker/](./cmd/colorpicker/)

----

### colorpicker-popup

Example of embedding in Fyne's custom dialog.

[colorpicker/cmd/colorpicker-popup/](./cmd/colorpicker-popup/)