crystaltoolkit
crystaltoolkit copied to clipboard
Structure viewer legend doesn't update when changing the color scheme.
Visited https://next-gen.materialsproject.org/toolkit and selected "Accessible" from the "Change color scheme" dropdown.
The colors in the legend no longer match the ball and stick colors in the viewer.
This clientside callback looks like it might be the place to fix. Not sure if it should trigger some other callback or update the legend itself. Probably former.
https://github.com/materialsproject/crystaltoolkit/blob/fb7118de330b6cec2e109ed71ae17e1ddb490e6f/crystal_toolkit/components/structure.py#L300-L321