-
Notifications
You must be signed in to change notification settings - Fork 31
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
Color picker - popup update #576
Conversation
Hi, thanks for the PR. However, I think it's still useful to show the color-picker when a user first opens the Color Picker dialog, otherwise it's not obvious what to click on to choose a new color, given the rather sparse dialog: Also, since the user has chosen a |
Hi Will, Thanks for the feedback
Ok, you're right. I updated the code to make appear the dialog if there is no previous picked colors. In case there are some, it is not automatically shown, as they might also want to use one of the pre-selected colors.
True again. I added some labels to make it more clear. Rémy. |
Thanks Rémy, I had another look at this, and I'm afraid I really think that the browser colour-picker should always be visible as it is before this PR (I find that it's more useful than annoying): Even if you have already got some previously-chosen colours, it's still quite likely that you'll want to use the colour-picker to choose new colours. And even when you click on one of your previously-chosen colours, it still makes sense to show the colour-picker with that colour, in case you decide that you actually want to tweak it a bit and go a bit ligher/darker etc. We still need the labels for This looks great: Sorry, thanks. |
Ah, I see. Sorry, I should have thought of that. I can see how that is pretty annoying. Yes, see if you can detect the browser and how well that works. I've not had to do browser detection in a long time, but that might be the best solution here. |
Ok, no worries. |
Looks good. I think a longer label is nicer, and if it's below the input then it's more out of the way for when we're automatically showing the picker (and you don't need the label).
|
Thanks for your feedback, @will-moore
Ok, it makes sense
In my very first commit, yes. But, then, I modified it to show the color picker if there is no recent colors. The reason is that it saves one click for the first time someone choose a new color. I think it's still nice to have it. |
Looks good and working fine now, thanks. |
This is now released in OMERO.figure 7.1.0 |
Hello,
The new color picker by default pops up every time we click on a recent color, which is a bit annoying.
I simplly call the popup opening when the user explicitely clicks on the picker.
Rémy.