Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 🎨
- Host: GitHub
- URL: https://github.com/lusingander/colorpicker
- Owner: lusingander
- License: mit
- Created: 2020-03-28T09:15:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T00:32:03.000Z (5 months ago)
- Last Synced: 2024-07-23T03:38:41.851Z (5 months ago)
- Topics: color-picker, colorpicker, fyne, go
- Language: Go
- Homepage:
- Size: 5.49 MB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)