crystaltoolkit icon indicating copy to clipboard operation
crystaltoolkit copied to clipboard

Structure viewer legend doesn't update when changing the color scheme.

Open janosh opened this issue 2 years ago • 1 comments

Visited https://next-gen.materialsproject.org/toolkit and selected "Accessible" from the "Change color scheme" dropdown.

Screenshot 2023-07-15 at 3 34 18 PM

The colors in the legend no longer match the ball and stick colors in the viewer.

Screenshot 2023-07-15 at 3 33 28 PM

janosh avatar Jul 15 '23 22:07 janosh

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

janosh avatar Jul 15 '23 22:07 janosh