mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
@@ -636,12 +636,12 @@ export class ComfyApp {
|
|||||||
this.editor_alpha = 0.4
|
this.editor_alpha = 0.4
|
||||||
}
|
}
|
||||||
|
|
||||||
let bgColor: string | undefined
|
let bgColor: string
|
||||||
if (node.mode === LGraphEventMode.BYPASS) {
|
if (node.mode === LGraphEventMode.BYPASS) {
|
||||||
bgColor = app.bypassBgColor
|
bgColor = app.bypassBgColor
|
||||||
this.editor_alpha = 0.2
|
this.editor_alpha = 0.2
|
||||||
} else {
|
} else {
|
||||||
bgColor = old_bgcolor
|
bgColor = old_bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR
|
||||||
}
|
}
|
||||||
|
|
||||||
const adjustments: ColorAdjustOptions = {}
|
const adjustments: ColorAdjustOptions = {}
|
||||||
@@ -658,8 +658,8 @@ export class ComfyApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bgColor) {
|
if (old_bgcolor) {
|
||||||
node.bgcolor = adjustColor(bgColor, adjustments)
|
node.bgcolor = adjustColor(old_bgcolor, adjustments)
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-expect-error fixme ts strict error
|
// @ts-expect-error fixme ts strict error
|
||||||
|
|||||||
Reference in New Issue
Block a user