@@ -1146,6 +1146,20 @@ def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str
11461146 def as_dict (self ):
11471147 return super ().as_dict ()
11481148
1149+
1150+ @comfytype (io_type = "COLOR" )
1151+ class Color (ComfyTypeIO ):
1152+ Type = str
1153+
1154+ class Input (WidgetInput ):
1155+ def __init__ (self , id : str , display_name : str = None , optional = False , tooltip : str = None ,
1156+ socketless : bool = True , advanced : bool = None , default : str = "#ffffff" ):
1157+ super ().__init__ (id , display_name , optional , tooltip , None , default , socketless , None , None , None , None , advanced )
1158+ self .default : str
1159+
1160+ def as_dict (self ):
1161+ return super ().as_dict ()
1162+
11491163DYNAMIC_INPUT_LOOKUP : dict [str , Callable [[dict [str , Any ], dict [str , Any ], tuple [str , dict [str , Any ]], str , list [str ] | None ], None ]] = {}
11501164def register_dynamic_input_func (io_type : str , func : Callable [[dict [str , Any ], dict [str , Any ], tuple [str , dict [str , Any ]], str , list [str ] | None ], None ]):
11511165 DYNAMIC_INPUT_LOOKUP [io_type ] = func
@@ -2038,6 +2052,7 @@ def as_dict(self) -> dict:
20382052 "AnyType" ,
20392053 "MultiType" ,
20402054 "Tracks" ,
2055+ "Color" ,
20412056 # Dynamic Types
20422057 "MatchType" ,
20432058 "DynamicCombo" ,
0 commit comments