-
Notifications
You must be signed in to change notification settings - Fork 0
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
#75 Connect the colour picker to the context neuron data #56
Conversation
Salam-Dalloul
commented
Oct 2, 2024
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.
All looks good in general :) I would just advise for a small modification to have the component more decoupled
applications/visualizer/frontend/src/components/ViewerContainer/CustomListItem.tsx
Outdated
Show resolved
Hide resolved
…uron list items to put the correct default value
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.
Thank a lot for the changes 🙏 @Salam-Dalloul all looks super good!
id: neuron, | ||
label: neuron, | ||
checked: Object.values(visibility).every((e) => e === undefined || e.visibility === Visibility.Visible), | ||
color: visibility[ViewerType.ThreeD]?.color || visibility[ViewerType.EM]?.color || "#000000", |
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.
note: I think this is fine for now because we don't (yet) allow different colors in different viewers, but when/if we do, we need to get a consensus on what color should be used for the broader Neuron representation (the color that shows in the sidebar)
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.
@afonsobspinto yes, I thought about that also, but I think it's fine at the moment, we will probably need to reflect a little bit more if we can have different color by viewer as it will also impact the synchronizer probably, or the way we retrieve the information.