From 5da0855a52813c7a6a607b976697c389d51aa70a Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Sun, 3 Aug 2025 14:38:40 +0200 Subject: [PATCH] Added tooltip to mask visibility switch --- js/CanvasView.js | 3 ++- src/CanvasView.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/CanvasView.js b/js/CanvasView.js index f695ca5..f298131 100644 --- a/js/CanvasView.js +++ b/js/CanvasView.js @@ -453,7 +453,8 @@ async function createCanvasWidget(node, widget, app) { $el("div.painter-button-group", { id: "mask-controls" }, [ $el("label.clipboard-switch.mask-switch", { id: `toggle-mask-switch-${node.id}`, - style: { minWidth: "56px", maxWidth: "56px", width: "56px", paddingLeft: "0", paddingRight: "0" } + style: { minWidth: "56px", maxWidth: "56px", width: "56px", paddingLeft: "0", paddingRight: "0" }, + title: "Toggle mask overlay visibility on canvas (mask still affects output when disabled)" }, [ $el("input", { type: "checkbox", diff --git a/src/CanvasView.ts b/src/CanvasView.ts index a5df625..42f3532 100644 --- a/src/CanvasView.ts +++ b/src/CanvasView.ts @@ -534,7 +534,8 @@ async function createCanvasWidget(node: ComfyNode, widget: any, app: ComfyApp): $el("div.painter-button-group", {id: "mask-controls"}, [ $el("label.clipboard-switch.mask-switch", { id: `toggle-mask-switch-${node.id}`, - style: { minWidth: "56px", maxWidth: "56px", width: "56px", paddingLeft: "0", paddingRight: "0" } + style: { minWidth: "56px", maxWidth: "56px", width: "56px", paddingLeft: "0", paddingRight: "0" }, + title: "Toggle mask overlay visibility on canvas (mask still affects output when disabled)" }, [ $el("input", { type: "checkbox",