napari-imagej icon indicating copy to clipboard operation
napari-imagej copied to clipboard

Support ColorRGB

Open gselzer opened this issue 3 years ago • 2 comments

SciJava features the ColorRGB class, which does not work in napari-imagej. This was made clear by #60, where I had to comment out the ColorRGB parameter.

I'm not sure that we can support this yet, as magicgui has no support for a color type, so entering a color would be hack-y and would have to rely on a Line edit.

Is there even really a demand to support ColorRGB? @ctrueden

gselzer avatar Jun 13 '22 19:06 gselzer

You could support it with three sliders 0-255, for R, G, and B respectively (and a fourth A for ColorRGBA). But a dedicated color picker widget would be best of course.

ctrueden avatar Jun 13 '22 21:06 ctrueden

You could support it with three sliders 0-255, for R, G, and B respectively (and a fourth A for ColorRGBA). But a dedicated color picker widget would be best of course.

Well, napari actually has a very nice color picker; I am lobbying for it (or at least parts of it) to be moved into magicgui. There are still questions, though...

gselzer avatar Jun 13 '22 21:06 gselzer