We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1215a23 commit 9f2aecfCopy full SHA for 9f2aecf
src/services/litegraphService.ts
@@ -1,5 +1,6 @@
1
import {
2
type IContextMenuValue,
3
+ LGraphCanvas,
4
LGraphEventMode,
5
LGraphNode,
6
LiteGraph,
@@ -79,6 +80,13 @@ export const useLitegraphService = () => {
79
80
this.#addOutputs(ComfyNode.nodeData.outputs)
81
this.#setInitialSize()
82
this.serialize_widgets = true
83
+
84
+ // Mark API Nodes yellow by default to distinguish with other nodes.
85
+ if (ComfyNode.nodeData.api_node) {
86
+ this.color = LGraphCanvas.node_colors.yellow.color
87
+ this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor
88
+ }
89
90
void extensionService.invokeExtensionsAsync('nodeCreated', this)
91
}
92
0 commit comments