diff --git a/pyiron_workflow/nodes/composite.py b/pyiron_workflow/nodes/composite.py index 075681e3..b513e20a 100644 --- a/pyiron_workflow/nodes/composite.py +++ b/pyiron_workflow/nodes/composite.py @@ -423,6 +423,12 @@ def color(self) -> str: """For drawing the graph""" return SeabornColors.brown + @property + def gui_color(self) -> str: + """For nodes in the gui, pyiron-xyflow in reactflow.py""" + color_light_orange = "#eacf9f" + return color_light_orange + @property def graph_as_dict(self) -> dict: """ diff --git a/pyiron_workflow/nodes/function.py b/pyiron_workflow/nodes/function.py index a3653147..a58c3d0e 100644 --- a/pyiron_workflow/nodes/function.py +++ b/pyiron_workflow/nodes/function.py @@ -343,6 +343,12 @@ def color(self) -> str: """For drawing the graph""" return SeabornColors.green + @property + def gui_color(self) -> str: + """For nodes in the gui, pyiron-xyflow in reactflow.py""" + color_light_green = "#a2ea9f" + return color_light_green + @classmethod def _extra_info(cls) -> str: return getsource(cls.node_function) diff --git a/pyiron_workflow/nodes/transform.py b/pyiron_workflow/nodes/transform.py index 7c8701bd..179cade9 100644 --- a/pyiron_workflow/nodes/transform.py +++ b/pyiron_workflow/nodes/transform.py @@ -29,6 +29,12 @@ def color(self) -> str: """For drawing the graph""" return SeabornColors.blue + @property + def gui_color(self) -> str: + """For nodes in the gui, pyiron-xyflow in reactflow.py""" + color_light_purple = "#cb9fea" + return color_light_purple + class FromManyInputs(Transformer, ABC): _output_name: ClassVar[str] # Mandatory attribute for non-abstract subclasses