mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-11 00:47:14 +08:00
Change background_color to bg_color
This commit is contained in:
parent
4956efcf07
commit
6ec4e57a2c
@ -29,7 +29,7 @@ class TextOverlay(IO.ComfyNode):
|
|||||||
options=[
|
options=[
|
||||||
IO.DynamicCombo.Option("disabled", []),
|
IO.DynamicCombo.Option("disabled", []),
|
||||||
IO.DynamicCombo.Option("enabled", [
|
IO.DynamicCombo.Option("enabled", [
|
||||||
IO.Color.Input("background_color", default="#00000080", tooltip="Color of the banner drawn behind the text. The color's opacity controls the banner transparency."),
|
IO.Color.Input("bg_color", default="#00000080", tooltip="Color of the banner drawn behind the text. The color's opacity controls the banner transparency."),
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -49,7 +49,7 @@ class TextOverlay(IO.ComfyNode):
|
|||||||
|
|
||||||
# The background banner opacity is set by the color's alpha channel, 50% by default
|
# The background banner opacity is set by the color's alpha channel, 50% by default
|
||||||
if background["background"] == "enabled":
|
if background["background"] == "enabled":
|
||||||
background_rgba = cls.parse_color_to_rgba(background["background_color"])
|
background_rgba = cls.parse_color_to_rgba(background["bg_color"])
|
||||||
else:
|
else:
|
||||||
background_rgba = (0, 0, 0, 0)
|
background_rgba = (0, 0, 0, 0)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user