From c252d0b4e3b65d530dccab92545f1e6467f60ba2 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 4 Apr 2026 13:33:41 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20hardcode=20INT/FLOAT=20dot=20colors=20?= =?UTF-8?q?=E2=80=94=20not=20defined=20in=20LGraphCanvas.link=5Ftype=5Fcol?= =?UTF-8?q?ors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/project_key.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/project_key.js b/web/project_key.js index 11a370e..2ce42b3 100644 --- a/web/project_key.js +++ b/web/project_key.js @@ -210,12 +210,14 @@ app.registerExtension({ const name = keyWidget?.value || this.outputs[0].name; this.outputs[0].label = `${val} ${name}`; const slotType = this.outputs[0].type; + const TYPE_COLORS = { "INT": "#3d7eb5", "FLOAT": "#68a468", "BOOLEAN": null }; let color; if (slotType === "BOOLEAN") { color = (val === "true") ? "#4caf50" : "#888888"; } else { - color = LGraphCanvas?.link_type_colors?.[slotType] - || app.canvas?.default_connection_color_byType?.[slotType]; + color = TYPE_COLORS[slotType] + ?? LGraphCanvas?.link_type_colors?.[slotType] + ?? app.canvas?.default_connection_color_byType?.[slotType]; } if (color) { this.outputs[0].color_on = color;