Преглед на файлове

better color theme repr labels

Alexander Rose преди 5 години
родител
ревизия
d2c3d15fe7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/structure-viewer/ui/structure.tsx

+ 1 - 1
src/structure-viewer/ui/structure.tsx

@@ -125,7 +125,7 @@ export class StructureControls<P, S extends StructureControlsState> extends Coll
                 const p = themeCtx.colorThemeRegistry.get(n)
                 const d = { structure: assembly && assembly.data }
                 const ct = p.factory(d, PD.getDefaultValues(p.getParams(d)))
-                colorThemes[type] = PD.Select(n, colorTypes, { description: ct.description, legend: ct.legend })
+                colorThemes[type] = PD.Select(n, colorTypes, { description: ct.description, legend: ct.legend, label: r.obj ? r.obj.label : type })
             }
         }