From baa3b0616e7a1f60d8efe73735a4d3dc5cd4f750 Mon Sep 17 00:00:00 2001 From: kk8bit Date: Sun, 20 Sep 2026 18:32:33 +0800 Subject: [PATCH] Call the custom icon what it is: a browser tab icon The feature was presented as customising "the ComfyUI Logo", so people expected the logo at the top left of the interface to change. It only ever replaced link[rel=icon], the browser tab icon. That logo is an inline SVG rendered by the frontend and is not something this setting touches. Rename the setting, its category and the README section accordingly, and say in the tooltips that the interface logo is unaffected. No behaviour change. Also drops a duplicate KayTool_EnableCustomWebLogo key that the previous commit left in every locale file. --- CHANGELOG.md | 4 ++-- README.md | 12 +++++++----- locales/en/main.json | 2 +- locales/en/settings.json | 8 ++++---- locales/fr/main.json | 2 +- locales/fr/settings.json | 8 ++++---- locales/ja/main.json | 2 +- locales/ja/settings.json | 8 ++++---- locales/ko/main.json | 2 +- locales/ko/settings.json | 8 ++++---- locales/ru/main.json | 2 +- locales/ru/settings.json | 8 ++++---- locales/zh/main.json | 2 +- locales/zh/settings.json | 8 ++++---- pyproject.toml | 2 +- web/customweblogo.js | 12 ++++++------ 16 files changed, 46 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb7ab59..d1354da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog ## [未发布 Unreleased] -- 自定义网页徽标新增开关,关闭后恢复 ComfyUI 默认图标 -- Added a toggle for the custom web logo; turning it off restores ComfyUI's own favicon +- 自定义图标新增开关,关闭后恢复 ComfyUI 默认图标;并把该功能的措辞统一为「浏览器标签页图标」——它一直只改标签页图标,不会替换界面左上角的 ComfyUI 标志 +- Added a toggle for the custom icon, which restores ComfyUI's own icon when off, and renamed the feature to "browser tab icon": it only ever changed the tab icon, never the ComfyUI logo in the interface - 修复 ab Images 节点在新版前端下交互功能全部失效的问题(显示图像、A/B 切换、右键菜单、最小尺寸限制) - Fixed ab Images losing all of its interactions on the current frontend (image display, A/B switching, context menu, minimum size) - 修复通过 ComfyUI Manager 安装时 GuLuLu 图片加载不出来的问题 diff --git a/README.md b/README.md index 9240088..d2ad147 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ This is a custom node utility package developed for ComfyUI. Initially created f ## 最新更新 / Last Update ### [未发布 Unreleased] -- 自定义网页徽标新增开关,关闭后恢复 ComfyUI 默认图标 -- Added a toggle for the custom web logo; turning it off restores ComfyUI's own favicon +- 自定义图标新增开关,关闭后恢复 ComfyUI 默认图标;并把该功能的措辞统一为「浏览器标签页图标」——它一直只改标签页图标,不会替换界面左上角的 ComfyUI 标志 +- Added a toggle for the custom icon, which restores ComfyUI's own icon when off, and renamed the feature to "browser tab icon": it only ever changed the tab icon, never the ComfyUI logo in the interface - 修复 ab Images 节点在新版前端下交互功能全部失效的问题(显示图像、A/B 切换、右键菜单、最小尺寸限制) - Fixed ab Images losing all of its interactions on the current frontend (image display, A/B switching, context menu, minimum size) - 修复通过 ComfyUI Manager 安装时 GuLuLu 图片加载不出来的问题 @@ -115,10 +115,12 @@ https://github.com/user-attachments/assets/b8d1d3f0-04d1-46c5-968a-e433778b73e6 -## 自定义ComfyUI Logo功能 Custom ComfyUI Logo +## 自定义浏览器标签页图标 Custom Browser Tab Icon -- 在设置菜单中(KayTool)自定义 ComfyUI 的 Logo,支持 PNG、JPG、JPEG 格式。 - Customize the ComfyUI Logo in the settings menu (KayTool), supporting PNG, JPG, and JPEG formats. +- 在设置菜单中(KayTool)自定义浏览器标签页的图标(favicon),支持 PNG、JPG、JPEG 格式。 + Customize the browser tab icon (favicon) in the settings menu (KayTool), supporting PNG, JPG, and JPEG formats. +- 注意:只影响浏览器标签页的图标,不会改变界面左上角的 ComfyUI 标志。 + Note: this only affects the browser tab icon. It does not change the ComfyUI logo shown in the interface. diff --git a/locales/en/main.json b/locales/en/main.json index 4cac872..6264513 100644 --- a/locales/en/main.json +++ b/locales/en/main.json @@ -2,7 +2,7 @@ "settingsCategories": { "🛜 Set/Get": "🛜 Set/Get", "KayTool Menu": "KayTool Menu", - "Custom Web Logo (BETA)": "Custom Web Logo (BETA)" + "Browser Tab Icon": "Browser Tab Icon" }, "nodeCategories": { "Image": "Image", diff --git a/locales/en/settings.json b/locales/en/settings.json index dc668e4..8063a69 100644 --- a/locales/en/settings.json +++ b/locales/en/settings.json @@ -18,11 +18,11 @@ "name": "Set '🛜 Set/Get' Title color" }, "KayTool_EnableCustomWebLogo": { - "name": "Enable Custom Web Logo", - "tooltip": "Turn this off to keep ComfyUI's own favicon" + "name": "Use a custom browser tab icon", + "tooltip": "Only affects the browser tab icon (favicon). Turn this off to keep ComfyUI's own icon." }, "KayTool_CustomWebLogo": { - "name": "File must be < 1MB", - "tooltip": "This is a test feature, the file must be < 1MB, otherwise it may not be displayed" + "name": "Icon image (must be < 1MB)", + "tooltip": "Replaces the browser tab icon only, not the ComfyUI logo in the interface. File must be < 1MB." } } \ No newline at end of file diff --git a/locales/fr/main.json b/locales/fr/main.json index bea9b70..b4feff6 100644 --- a/locales/fr/main.json +++ b/locales/fr/main.json @@ -2,7 +2,7 @@ "settingsCategories": { "🛜 Set/Get": "🛜 Set/Get Réglages", "KayTool Menu": "Menu contextuel", - "Custom Web Logo (BETA)": "Logo web personnalisé (BÊTA)" + "Browser Tab Icon": "Icône d'onglet du navigateur" }, "nodeCategories": { "Image": "Image", diff --git a/locales/fr/settings.json b/locales/fr/settings.json index 91123d3..562e500 100644 --- a/locales/fr/settings.json +++ b/locales/fr/settings.json @@ -18,11 +18,11 @@ "name": "Ajuster la couleur du titre '🛜 Set/Get'" }, "KayTool_EnableCustomWebLogo": { - "name": "Activer le logo web personnalisé", - "tooltip": "Désactivez pour conserver le favicon d'origine de ComfyUI" + "name": "Utiliser une icône d'onglet personnalisée", + "tooltip": "N'affecte que l'icône de l'onglet du navigateur, pas le logo ComfyUI dans l'interface." }, "KayTool_CustomWebLogo": { - "name": "Le fichier doit être < 1 Mo", - "tooltip": "Ceci est une fonctionnalité test, le fichier doit être < 1 Mo, sinon il pourrait ne pas s'afficher" + "name": "Image de l'icône (moins de 1 Mo)", + "tooltip": "Remplace uniquement l'icône de l'onglet, pas le logo ComfyUI de l'interface. Moins de 1 Mo." } } \ No newline at end of file diff --git a/locales/ja/main.json b/locales/ja/main.json index 6356d63..a7b372c 100644 --- a/locales/ja/main.json +++ b/locales/ja/main.json @@ -2,7 +2,7 @@ "settingsCategories": { "🛜 Set/Get": "🛜 Set/Get 設定", "KayTool Menu": "右クリックメニュー", - "Custom Web Logo (BETA)": "カスタムウェブロゴ" + "Browser Tab Icon": "ブラウザタブのアイコン" }, "nodeCategories": { "Image": "画像", diff --git a/locales/ja/settings.json b/locales/ja/settings.json index bbbb622..180da82 100644 --- a/locales/ja/settings.json +++ b/locales/ja/settings.json @@ -18,11 +18,11 @@ "name": "「🛜 Set/Get」タイトル色を調整" }, "KayTool_EnableCustomWebLogo": { - "name": "カスタムウェブロゴを有効にする", - "tooltip": "オフにすると ComfyUI 標準のアイコンに戻ります" + "name": "カスタムのタブアイコンを使う", + "tooltip": "ブラウザタブのアイコンのみに適用されます。画面左上の ComfyUI ロゴは変わりません。" }, "KayTool_CustomWebLogo": { - "name": "ファイルは1MB未満である必要があります", - "tooltip": "これはテスト機能です。ファイルは1MB未満である必要があります。そうでない場合、表示されない可能性があります。" + "name": "アイコン画像(1MB 未満)", + "tooltip": "置き換わるのはブラウザタブのアイコンだけで、画面内の ComfyUI ロゴは変わりません。1MB 未満。" } } \ No newline at end of file diff --git a/locales/ko/main.json b/locales/ko/main.json index a8163ba..17e2a3d 100644 --- a/locales/ko/main.json +++ b/locales/ko/main.json @@ -2,7 +2,7 @@ "settingsCategories": { "🛜 Set/Get": "🛜 Set/Get 설정", "KayTool Menu": "KayTool Menu", - "Custom Web Logo (BETA)": "Custom Web Logo (BETA)" + "Browser Tab Icon": "브라우저 탭 아이콘" }, "nodeCategories": { "Image": "이미지", diff --git a/locales/ko/settings.json b/locales/ko/settings.json index f8c8d28..3bbc44d 100644 --- a/locales/ko/settings.json +++ b/locales/ko/settings.json @@ -18,11 +18,11 @@ "name": "'🛜 Set/Get' 제목 색상 설정" }, "KayTool_EnableCustomWebLogo": { - "name": "사용자 지정 웹 로고 활성화", - "tooltip": "끄면 ComfyUI 기본 아이콘으로 돌아갑니다" + "name": "사용자 지정 탭 아이콘 사용", + "tooltip": "브라우저 탭 아이콘에만 적용되며 화면 좌측 상단의 ComfyUI 로고는 바뀌지 않습니다." }, "KayTool_CustomWebLogo": { - "name": "파일 크기는 1MB 미만이어야 합니다.", - "tooltip": "이 기능은 테스트 기능이며, 파일 크기가 1MB 미만이어야 표시될 수 있습니다." + "name": "아이콘 이미지 (1MB 미만)", + "tooltip": "브라우저 탭 아이콘만 교체하며 인터페이스의 ComfyUI 로고는 바뀌지 않습니다. 1MB 미만." } } \ No newline at end of file diff --git a/locales/ru/main.json b/locales/ru/main.json index c76a2d4..e43eeb5 100644 --- a/locales/ru/main.json +++ b/locales/ru/main.json @@ -2,7 +2,7 @@ "settingsCategories": { "🛜 Set/Get": "🛜 Set/Get", "KayTool Menu": "KayTool Menu", - "Custom Web Logo (BETA)": "Custom Web Logo (BETA)" + "Browser Tab Icon": "Значок вкладки браузера" }, "nodeCategories": { "Image": "Изображение", diff --git a/locales/ru/settings.json b/locales/ru/settings.json index 9dc2f30..de0fc2c 100644 --- a/locales/ru/settings.json +++ b/locales/ru/settings.json @@ -18,11 +18,11 @@ "name": "Установить цвет заголовка '🛜 Set/Get'" }, "KayTool_EnableCustomWebLogo": { - "name": "Включить пользовательский логотип", - "tooltip": "Выключите, чтобы вернуть стандартный значок ComfyUI" + "name": "Использовать свой значок вкладки", + "tooltip": "Влияет только на значок вкладки браузера, а не на логотип ComfyUI в интерфейсе." }, "KayTool_CustomWebLogo": { - "name": "Файл должен быть < 1МБ", - "tooltip": "Это тестовая функция, файл должен быть < 1МБ, иначе он может не отобразиться" + "name": "Изображение значка (менее 1 МБ)", + "tooltip": "Заменяет только значок вкладки браузера, а не логотип ComfyUI в интерфейсе. Менее 1 МБ." } } \ No newline at end of file diff --git a/locales/zh/main.json b/locales/zh/main.json index 88d93b4..99362c9 100644 --- a/locales/zh/main.json +++ b/locales/zh/main.json @@ -2,7 +2,7 @@ "settingsCategories": { "🛜 Set/Get": "🛜 Set/Get", "KayTool Menu": "右键菜单", - "Custom Web Logo (BETA)": "自定义网页徽标", + "Browser Tab Icon": "浏览器标签页图标", "Workflow PNG": "Workflow PNG", "NodeAlignment": "节点对齐工具栏", "Resource Monitor": "资源监视器", diff --git a/locales/zh/settings.json b/locales/zh/settings.json index 98bc0c4..476a86f 100644 --- a/locales/zh/settings.json +++ b/locales/zh/settings.json @@ -31,12 +31,12 @@ "name": "标题颜色" }, "KayTool_EnableCustomWebLogo": { - "name": "启用自定义网页徽标", - "tooltip": "关闭后恢复 ComfyUI 默认图标" + "name": "使用自定义标签页图标", + "tooltip": "只影响浏览器标签页的图标,不会改变界面左上角的 ComfyUI 标志。关闭后恢复 ComfyUI 默认图标。" }, "KayTool_CustomWebLogo": { - "name": "文件必须 < 1MB", - "tooltip": "这是一个测试功能,文件最好 <1MB ,否则可能无法显示" + "name": "图标图片(须小于 1MB)", + "tooltip": "只替换浏览器标签页图标,不会替换界面里的 ComfyUI 标志。文件须小于 1MB。" }, "KayTool_GuLuLuSize": { "name": "你要一个多大的咕噜噜~啊?" diff --git a/pyproject.toml b/pyproject.toml index 78644c1..0793bd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kaytool" -description ="KayTool boosts ComfyUI workflow efficiency with powerful tools like: image processing (resize, color, blur, expand, merge, crop), background/mask tasks via BiRefNet/RemBG, wireless data transfer (Set&Get), AI translation (Tencent/Baidu), Professional high-precision resource monitoring, dynamic math operations, flexible text handling, precision sliders, metadata/color profile-supported image saving, batch processing via folder loading, canvas node map export as PNG with metadata, node alignment toolbar with custom styles, and custom ComfyUI logo integration." +description ="KayTool boosts ComfyUI workflow efficiency with powerful tools like: image processing (resize, color, blur, expand, merge, crop), background/mask tasks via BiRefNet/RemBG, wireless data transfer (Set&Get), AI translation (Tencent/Baidu), Professional high-precision resource monitoring, dynamic math operations, flexible text handling, precision sliders, metadata/color profile-supported image saving, batch processing via folder loading, canvas node map export as PNG with metadata, node alignment toolbar with custom styles, and a custom browser tab icon." version = "0.70.17" license = {file = "LICENSE"} dependencies = ["rembg", "timm", "opencv-python", "py-cpuinfo", "pynvml", "pilgram", "requests"] diff --git a/web/customweblogo.js b/web/customweblogo.js index cf2a056..b7de03e 100644 --- a/web/customweblogo.js +++ b/web/customweblogo.js @@ -28,21 +28,21 @@ app.registerExtension({ app.ui.settings.addSetting({ id: "KayTool.EnableCustomWebLogo", - name: "Enable Custom Web Logo", + name: "Use a custom browser tab icon", type: "boolean", defaultValue: true, - tooltip: "Turn this off to keep ComfyUI's own favicon", - category: ["KayTool", "Custom Web Logo (BETA)", "EnableCustomWebLogo"], + tooltip: "Only affects the browser tab icon (favicon). Turn this off to keep ComfyUI's own icon.", + category: ["KayTool", "Browser Tab Icon", "EnableCustomWebLogo"], onChange: () => applyLogo(), }); app.ui.settings.addSetting({ id: "KayTool.CustomWebLogo", - name: "File must be < 1MB", + name: "Icon image (must be < 1MB)", type: "image", - tooltip: "This is a test feature. File must be < 1MB to avoid potential errors", + tooltip: "Replaces the browser tab icon only, not the ComfyUI logo in the interface. File must be < 1MB.", defaultValue: null, - category: ["KayTool", "Custom Web Logo (BETA)", "CustomWebLogo"], + category: ["KayTool", "Browser Tab Icon", "CustomWebLogo"], onChange: () => applyLogo(), });