-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROI Color Palette #415
ROI Color Palette #415
Conversation
|
Config clarity
I tried the suggested setting from the README:
Then with double quotes:
But this doesn't seem to be parsed correctly (just gives 2 black options + plus the default/current yellow): I wonder if it would be simpler to use Then setting would be like this (and the parsing happens when you start
|
That would be mostly correct actually. The yellow shouldn't be there, that must have broke when I changed variable names, I'm looking at it now. But with the config you set both the first items are black. The blue isn't displaying because it's the second item, you'd need to show_palette_only to see the blue. I'll fix the yellow and take another shot at the readme. (I tried to use json, but couldn't get it to work no matter what I did because of some type funkyness) |
README.rst
Outdated
@@ -73,6 +73,18 @@ If you wish to set a threshold for iviewer that is *lower* than for the server: | |||
NB: Z-projection is not supported for tiled images in OMERO | |||
(Images larger than 2048 * 2048 pixels per plane are tiled in iviewer). | |||
|
|||
OMERO uses Spectrum Color Picker for selecting ROI colors. | |||
Define rows with brackets, and use commas to seperate values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "seperate" -> "separate"
README.rst
Outdated
OMERO uses Spectrum Color Picker for selecting ROI colors. | ||
The roi_color_palette option allows you to specify a grid of colors for users to choose for ROIs. | ||
Define rows with brackets, and use commas to seperate values. | ||
You can only view the first item of each row without enabling show_palette_only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully this is a bit clearer suggestion: "By default, only the first color of each row is shown. A full grid is shown when the default color picker is hidden (see below)".
README.rst
Outdated
|
||
$ omero config set omero.web.iviewer.roi_color_palette "[rgb(0,255,0)],[darkred,red,pink],[#0000FF]" | ||
|
||
Hides the default color picker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Hides the default color picker." This seems strange when you're referring to the setting below (this isn't a title).
Maybe: "To hide the default color picker (and show a grid for the color palette), set show_palette_only to true".
I tried using After a bit of testing, it looks like it fails if you have more than 1 |
Apologies, missed the console.log and I'm bad with words. Good catch, I fixed the parsing regex. Thanks for your help |
Works fine on merge-ci. Like the intuitiveness of the feature. LGTM |
As discussed this morning, it will be good to test the code without the configuration described above to see if there is any side effects. |
@jburel I removed the config on merge-ci (for tomorrow), so if you want to test this PR with config, it would be best to do it today. |
Tested without the setting and the viewer works as expected |
I finally got around to fixing this up. I did a fair bit of testing this time, and as far as I can tell it works as intended.
EDIT (Will): testing: the following config is now on merge-ci and this PR should be included, so the ROI color-picker should correspond to those colors: