informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Better color selector UI #46

Closed RFSH closed 6 months ago

RFSH commented 4 years ago

With #45 changes, we're now showing a proper starting color in the toolbar. But users can easily change that and that would break the "color blindness friendly palette" that we're trying to enforce.

To improve the color selector, we should instead list all the available colors in our palette and ask users to choose a color from the list. We should still allow them to choose a color but this way we're at least going to give users more color options from our palette.

Our current color selector is just the browser built-in color input. It seems like some browsers actually support what we want out of the box) (without the need for a customized selector.) But since it's not properly supported in all the browsers, we most probably should pursue the route of creating a customized selector.

RFSH commented 3 years ago

A while ago I introduced a color picker to chaise that is capable of defining a color pallet and we could use it in here as well. This is the package that I used and you can find an example of it here in chaise.