Open
Conversation
Added documentation for the color picker module, including usage examples and options.
Added a period at the end of the module description and included an image.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new colorpicker module intended to provide a reusable, at-a-glance color selection UI for apps (targeted at Bangle.js 2 per PR description).
Changes:
- Introduces
modules/colorpicker.jsimplementing a grid-based color picker with optional full-screen preview. - Adds
modules/colorpicker.mddocumenting usage and available options.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| modules/colorpicker.js | New module that draws a color grid, handles touch/button input, and returns selected color via callback. |
| modules/colorpicker.md | Documentation for integrating the module and configuring available options. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Refactor color picker logic to handle empty color options and improve haptic feedback.
Added previewTimeout variable to manage color preview timeout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creates colorpicker module as an easy way for apps to present users with a color selection menu.
I've been wanting a menu that could do this for a while, as the alternative before was to make a scroll menu with all the colors and have the users scroll through all of them, instead of being able to see them at a glance. Currently this only works on bangle.js 2, I'm not exactly sure how to convert it to bangle.js 1 as well. This can be used in places like clock_bg, where users need to select multiple colors, or even in the theme menu and other system-level places if the need arises.
This is my first module, so let me know if I need to do anything else or did something wrong :)
Single color mode:

Multi-select mode:

You can look at an example implementation in the Clock Background app on my app loader, and just upload the module to your watch as
colorpickervia web ide.For bangle.js 1 compatibility, would the best course of action be to make the up/down buttons change the highlighted color, then a select is used to select it?