From 3206973e5a19f0cb3bcf93cc641b7ff70e2f055c Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 15 Sep 2025 07:54:45 +1000 Subject: [PATCH] Fix light_theme changes default node background This is an issue where the background of nodes which have no background set were being lightened by this switch, when they should be skipped. Went unnoticed because the only theme using this was the built-in light theme, which used white for node backgrounds anyway. --- src/scripts/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 6c1114a26..b64e834ae 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -658,7 +658,9 @@ export class ComfyApp { } } - node.bgcolor = adjustColor(bgColor, adjustments) + if (old_bgcolor) { + node.bgcolor = adjustColor(old_bgcolor, adjustments) + } // @ts-expect-error fixme ts strict error const res = origDrawNode.apply(this, arguments)