-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add color picker to select tree color #4907
Conversation
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.
Nice! I left only a few suggestions.
I think we can improve the UI for this a bit, because the functionality is kind of scattered right now and I feel like the color picking is too prominent. Some options, like "Measure skeleton length" and "Shuffle tree color" are in the dropdown menu up top and this color picker is next to the tree name and always visible. We could put all of these three things into a settings dropdown next to the tree name in the same way it's done for the groups. These setting would also only appear when hovering to keep the UI more clear. Maybe @philippotto has some opinion or suggestions for this as well? :)
frontend/javascripts/oxalis/model/actions/skeletontracing_actions.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/model/reducers/skeletontracing_reducer.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-menu/tree_hierarchy_view.js
Outdated
Show resolved
Hide resolved
Yes, I completely agree with you 👍 It would also be cool if one could right click on a tree and then the settings submenu would open, too (same as clicking on the cog icon). I think antd supports |
I also think this a very good idea 👍 |
Co-authored-by: Daniel <[email protected]>
- containing set color, shuffle color and messure length
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.
Thanks for improving the UX by adding the tree setting dropdowns 👍
Please see my comment regarding the default color that is selected when the color pickers are opened (that I added before this review).
Also, the color picker no longer works for me as it instantly closes after clicking the menu entry (is only a problem in Chrome - Firefox works).
frontend/javascripts/oxalis/view/right-menu/tree_hierarchy_view.js
Outdated
Show resolved
Hide resolved
This took me quite some time to figure it out. The solution: Somehow controlling the dropdown menu's visibility made it work. I think the actual problem was that the color selection is a child of the dropdown menu and as the color picker opens, the dropdown menu loses focus and collapses which also closes the color picker. |
@daniel-wer I think I fixed all your mentions and the code looks fine. Could you please check the newest changes again? |
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.
Very nice, works like a charm for me! 👍
URL of deployed dev instance (used for testing):
Steps to test:
The color of the tree should now be the newly selected color.
Issues:
[ ] Updated (unreleased) migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes[ ] Needs datastore update after deployment