From ce18d4dfc6a5998c7cb01bfe2a3ad798d643b57d Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Sun, 21 Dec 2025 06:55:44 +0900 Subject: [PATCH] [backport core/1.35] Add support for NO_TITLE in vue, disabling border (#7686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #7589 to `core/1.35` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7686-backport-core-1-35-Add-support-for-NO_TITLE-in-vue-disabling-border-2cf6d73d3650815a88c7ce39cff56b90) by [Unito](https://www.unito.io) Co-authored-by: AustinMroz --- src/composables/graph/useGraphNodeManager.ts | 27 ++++++++++--------- .../vueNodes/components/LGraphNode.vue | 16 ++++++++++- src/utils/colorUtil.ts | 9 +++++++ 3 files changed, 39 insertions(+), 13 deletions(-) diff --git a/src/composables/graph/useGraphNodeManager.ts b/src/composables/graph/useGraphNodeManager.ts index 80afa7f5b..ebe3cef2e 100644 --- a/src/composables/graph/useGraphNodeManager.ts +++ b/src/composables/graph/useGraphNodeManager.ts @@ -31,8 +31,9 @@ import type { LGraphTriggerAction, LGraphTriggerEvent, LGraphTriggerParam -} from '../../lib/litegraph/src/litegraph' -import { NodeSlotType } from '../../lib/litegraph/src/types/globalEnums' +} from '@/lib/litegraph/src/litegraph' +import type { TitleMode } from '@/lib/litegraph/src/types/globalEnums' +import { NodeSlotType } from '@/lib/litegraph/src/types/globalEnums' export interface WidgetSlotMetadata { index: number @@ -55,26 +56,27 @@ export interface SafeWidgetData { } export interface VueNodeData { + executing: boolean id: NodeId - title: string - type: string mode: number selected: boolean - executing: boolean + title: string + type: string apiNode?: boolean badges?: (LGraphBadge | (() => LGraphBadge))[] - subgraphId?: string | null - widgets?: SafeWidgetData[] - inputs?: INodeInputSlot[] - outputs?: INodeOutputSlot[] - hasErrors?: boolean + bgcolor?: string + color?: string flags?: { collapsed?: boolean pinned?: boolean } - color?: string - bgcolor?: string + hasErrors?: boolean + inputs?: INodeInputSlot[] + outputs?: INodeOutputSlot[] shape?: number + subgraphId?: string | null + titleMode?: TitleMode + widgets?: SafeWidgetData[] } export interface GraphNodeManager { @@ -262,6 +264,7 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager { title: typeof node.title === 'string' ? node.title : '', type: nodeType, mode: node.mode || 0, + titleMode: node.title_mode, selected: node.selected || false, executing: false, // Will be updated separately based on execution state subgraphId, diff --git a/src/renderer/extensions/vueNodes/components/LGraphNode.vue b/src/renderer/extensions/vueNodes/components/LGraphNode.vue index 804a1f654..a60a716b7 100644 --- a/src/renderer/extensions/vueNodes/components/LGraphNode.vue +++ b/src/renderer/extensions/vueNodes/components/LGraphNode.vue @@ -51,7 +51,10 @@ @dragleave="handleDragLeave" @drop.stop.prevent="handleDrop" > -
+