Set widgetType for COLOR widgets
This commit is contained in:
committed by
Mel Massadian
parent
426cdf5f9f
commit
1c99a1c63c
+2
-2
@@ -193,11 +193,11 @@ by default it fallsback to a default font.
|
||||
),
|
||||
"color": (
|
||||
"COLOR",
|
||||
{"default": "black"},
|
||||
{"default": "black", "widgetType": "MTB_COLOR"},
|
||||
),
|
||||
"background": (
|
||||
"COLOR",
|
||||
{"default": "white"},
|
||||
{"default": "white", "widgetType": "MTB_COLOR"},
|
||||
),
|
||||
"h_align": (("left", "center", "right"), {"default": "left"}),
|
||||
"v_align": (("top", "center", "bottom"), {"default": "top"}),
|
||||
|
||||
@@ -879,8 +879,11 @@ class MTB_MaskToImage:
|
||||
return {
|
||||
"required": {
|
||||
"mask": ("MASK",),
|
||||
"color": ("COLOR",),
|
||||
"background": ("COLOR", {"default": "#000000"}),
|
||||
"color": ("COLOR", {"widgetType": "MTB_COLOR"}),
|
||||
"background": (
|
||||
"COLOR",
|
||||
{"default": "#000000", "widgetType": "MTB_COLOR"},
|
||||
),
|
||||
},
|
||||
"optional": {
|
||||
"invert": ("BOOLEAN", {"default": False}),
|
||||
|
||||
+4
-1
@@ -43,7 +43,10 @@ class MTB_TransformImage:
|
||||
["edge", "constant", "reflect", "symmetric"],
|
||||
{"default": "edge"},
|
||||
),
|
||||
"constant_color": ("COLOR", {"default": "#000000"}),
|
||||
"constant_color": (
|
||||
"COLOR",
|
||||
{"default": "#000000", "widgetType": "MTB_COLOR"},
|
||||
),
|
||||
},
|
||||
"optional": {
|
||||
"filter_type": (
|
||||
|
||||
Reference in New Issue
Block a user