diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 6c1114a26..4587256b0 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -649,6 +649,8 @@ export class ComfyApp { const opacity = useSettingStore().get('Comfy.Node.Opacity') if (opacity) adjustments.opacity = opacity + node.bgcolor = adjustColor(bgColor, adjustments) + if (useColorPaletteStore().completedActivePalette.light_theme) { adjustments.lightness = 0.5 @@ -658,8 +660,6 @@ export class ComfyApp { } } - node.bgcolor = adjustColor(bgColor, adjustments) - // @ts-expect-error fixme ts strict error const res = origDrawNode.apply(this, arguments)