mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +00:00
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:
committed by
GitHub
parent
31b1aeeb69
commit
a7a0035b0e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user