allow custom bypass color (#993)

* allow custom bypass color

* shove the not-litegraph-color-def into litegraph

* prettier just does this to be funny i swear
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-10-02 07:49:59 -07:00
committed by GitHub
parent 31b1aeeb69
commit a7a0035b0e
3 changed files with 15 additions and 1 deletions

View File

@@ -135,6 +135,7 @@ export class ComfyApp {
bodyBottom: HTMLElement
canvasContainer: HTMLElement
menu: ComfyAppMenu
bypassBgColor: string
// @deprecated
// Use useExecutionStore().executingNodeId instead
@@ -155,6 +156,7 @@ export class ComfyApp {
parent: document.body
})
this.menu = new ComfyAppMenu(this)
this.bypassBgColor = '#FF00FF'
/**
* List of extensions that are registered with the app
@@ -1566,7 +1568,7 @@ export class ComfyApp {
// @ts-expect-error
if (node.mode === 4) {
// never
bgColor = '#FF00FF'
bgColor = app.bypassBgColor
this.editor_alpha = 0.2
} else {
bgColor = old_bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR