Skip to content

Commit 153e218

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Fix secondary structure coloring
1 parent 78e23dd commit 153e218

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/ProteinViewer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,9 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
17901790
});
17911791
} else {
17921792
// Standard Coloring for other modes (sstruc, element, etc.) -> Robust Native NGL Robust Native NGL
1793+
// Use colorScheme instead of color to avoid ambiguity with color names
17931794
component.addRepresentation(repType, {
1794-
color: currentColoring
1795+
colorScheme: currentColoring
17951796
});
17961797
}
17971798

0 commit comments

Comments
 (0)