From eabe43db79112d4e3674db343c5c184145e8396c Mon Sep 17 00:00:00 2001 From: Mel Massadian <7041726+melMass@users.noreply.github.com> Date: Sun, 7 Sep 2025 11:54:27 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20add=20missing=20widgetTyp?= =?UTF-8?q?es=20for=20COLOR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/batch.py | 8 ++++---- nodes/mask.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nodes/batch.py b/nodes/batch.py index c201c2c..93e4e8f 100644 --- a/nodes/batch.py +++ b/nodes/batch.py @@ -335,9 +335,9 @@ class MTB_BatchShape: "image_width": ("INT", {"default": 512}), "image_height": ("INT", {"default": 512}), "shape_size": ("INT", {"default": 100}), - "color": ("COLOR", {"default": "#ffffff"}), - "bg_color": ("COLOR", {"default": "#000000"}), - "shade_color": ("COLOR", {"default": "#000000"}), + "color": ("COLOR", {"default": "#ffffff","widgetType": "MTB_COLOR"}), + "bg_color": ("COLOR", {"default": "#000000","widgetType": "MTB_COLOR"}), + "shade_color": ("COLOR", {"default": "#000000","widgetType": "MTB_COLOR"}), "thickness": ("INT", {"default": 5}), "shadex": ("FLOAT", {"default": 0.0}), "shadey": ("FLOAT", {"default": 0.0}), @@ -842,7 +842,7 @@ class MTB_Batch2dTransform: ["edge", "constant", "reflect", "symmetric"], {"default": "edge"}, ), - "constant_color": ("COLOR", {"default": "#000000"}), + "constant_color": ("COLOR", {"default": "#000000","widgetType": "MTB_COLOR"}), }, "optional": { "x": ("FLOATS",), diff --git a/nodes/mask.py b/nodes/mask.py index 8e48286..5d3db01 100644 --- a/nodes/mask.py +++ b/nodes/mask.py @@ -34,7 +34,7 @@ class MTB_ImageRemoveBackgroundRembg: ), "bgcolor": ( "COLOR", - {"default": "#000000"}, + {"default": "#000000","widgetType": "MTB_COLOR"}, ), }, }