From c9d8235a11b4e10ceda51eb983baad6445fc1dfc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20Mal=C3=BD?= <michal.maly@ibt.cas.cz>
Date: Mon, 21 Mar 2022 09:57:09 +0100
Subject: [PATCH] ReDNATCO fix colortheme arguments

---
 src/apps/rednatco/index.tsx | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/apps/rednatco/index.tsx b/src/apps/rednatco/index.tsx
index a86b75322..d8f6b2c0f 100644
--- a/src/apps/rednatco/index.tsx
+++ b/src/apps/rednatco/index.tsx
@@ -379,7 +379,15 @@ class ReDNATCOMspViewer {
 
         return {
             type: { name: 'confal-pyramids', params: { ...typeParams, alpha: transparent ? 0.5 : 1.0 } },
-            colorTheme: { name: 'confal-pyramids', params: colors }
+            colorTheme: {
+                name: 'confal-pyramids',
+                params: {
+                    colors: {
+                        name: 'custom',
+                        params: colors,
+                    },
+                },
+            },
         };
     }
 
@@ -479,7 +487,15 @@ class ReDNATCOMspViewer {
             StateTransforms.Representation.StructureRepresentation3D,
             old => ({
                 ...old,
-                colorTheme: { name: 'confal-pyramids', params: display.conformerColors ?? NtCColors.Conformers },
+                colorTheme: {
+                    name: 'confal-pyramids',
+                    params: {
+                        colors: {
+                            name: 'custom',
+                            params: display.conformerColors ?? NtCColors.Conformers,
+                        },
+                    },
+                },
             })
         );
 
-- 
GitLab