[Desktop] Add window style setting (#2212)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-01-09 17:33:57 -05:00
committed by GitHub
parent ffc7febeac
commit e9211fe377
9 changed files with 70 additions and 5 deletions

8
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "GPL-3.0-only",
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-electron-types": "^0.4.3",
"@comfyorg/comfyui-electron-types": "^0.4.6",
"@comfyorg/litegraph": "^0.8.60",
"@primevue/themes": "^4.0.5",
"@tiptap/core": "^2.10.4",
@@ -1935,9 +1935,9 @@
"dev": true
},
"node_modules/@comfyorg/comfyui-electron-types": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/@comfyorg/comfyui-electron-types/-/comfyui-electron-types-0.4.3.tgz",
"integrity": "sha512-hSM3mchpsYN0e7oZ7XLWjEvFDvE1rgzaB9YkCeqIiZYZgLL78T79ssM0n5ra17Zv7Mqwl6ErZblXvbQE/36RPw==",
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/@comfyorg/comfyui-electron-types/-/comfyui-electron-types-0.4.6.tgz",
"integrity": "sha512-LY6AI7kMucMHU7UOAV9gGUPBUHrXXo1vxoabxupCL7xF2e8c14yHnJ4ngQogQrbwnLLax1mZfXNj/O9SyNtc9Q==",
"license": "GPL-3.0-only"
},
"node_modules/@comfyorg/litegraph": {

View File

@@ -83,7 +83,7 @@
},
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-electron-types": "^0.4.3",
"@comfyorg/comfyui-electron-types": "^0.4.6",
"@comfyorg/litegraph": "^0.8.60",
"@primevue/themes": "^4.0.5",
"@tiptap/core": "^2.10.4",

View File

@@ -34,6 +34,23 @@ import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil'
type: 'boolean',
defaultValue: true,
onChange: onChangeRestartApp
},
{
id: 'Comfy-Desktop.WindowStyle',
category: ['Comfy-Desktop', 'General', 'Window Style'],
name: 'Window Style',
tooltip: 'Choose custom option to hide the system title bar',
type: 'combo',
defaultValue: 'default',
options: ['default', 'custom'],
onChange: (
newValue: 'default' | 'custom',
oldValue: 'default' | 'custom'
) => {
electronAPI.Config.setWindowStyle(newValue)
onChangeRestartApp(newValue, oldValue)
}
}
],

View File

@@ -5,6 +5,14 @@
"Comfy-Desktop_SendStatistics": {
"name": "Send anonymous crash reports"
},
"Comfy-Desktop_WindowStyle": {
"name": "Window Style",
"tooltip": "Choose custom option to hide the system title bar",
"options": {
"default": "default",
"custom": "custom"
}
},
"Comfy_ConfirmClear": {
"name": "Require confirmation when clearing workflow"
},

View File

@@ -5,6 +5,14 @@
"Comfy-Desktop_SendStatistics": {
"name": "Envoyer des rapports de plantage anonymes"
},
"Comfy-Desktop_WindowStyle": {
"name": "Style de fenêtre",
"options": {
"custom": "personnalisé",
"default": "défaut"
},
"tooltip": "Choisissez l'option personnalisée pour masquer la barre de titre du système"
},
"Comfy_ConfirmClear": {
"name": "Demander une confirmation lors de l'effacement du flux de travail"
},

View File

@@ -5,6 +5,14 @@
"Comfy-Desktop_SendStatistics": {
"name": "匿名のクラッシュレポートを送信する"
},
"Comfy-Desktop_WindowStyle": {
"name": "ウィンドウスタイル",
"options": {
"custom": "カスタム",
"default": "デフォルト"
},
"tooltip": "システムタイトルバーを非表示にするにはカスタムオプションを選択してください"
},
"Comfy_ConfirmClear": {
"name": "ワークフローをクリアする際に確認を要求する"
},

View File

@@ -5,6 +5,14 @@
"Comfy-Desktop_SendStatistics": {
"name": "익명으로 충돌 보고서 전송"
},
"Comfy-Desktop_WindowStyle": {
"name": "창 스타일",
"options": {
"custom": "사용자 정의",
"default": "기본"
},
"tooltip": "시스템 제목 표시 줄을 숨기려면 사용자 정의 옵션을 선택하세요"
},
"Comfy_ConfirmClear": {
"name": "워크플로 비우기 시 확인 요구"
},

View File

@@ -5,6 +5,14 @@
"Comfy-Desktop_SendStatistics": {
"name": "Отправлять анонимные отчеты о сбоях"
},
"Comfy-Desktop_WindowStyle": {
"name": "Стиль окна",
"options": {
"custom": "пользовательский",
"default": "по умолчанию"
},
"tooltip": "Выберите пользовательский вариант, чтобы скрыть системную строку заголовка"
},
"Comfy_ConfirmClear": {
"name": "Требовать подтверждение при очистке рабочего процесса"
},

View File

@@ -5,6 +5,14 @@
"Comfy-Desktop_SendStatistics": {
"name": "发送匿名崩溃报告"
},
"Comfy-Desktop_WindowStyle": {
"name": "窗口样式",
"options": {
"custom": "自定义",
"default": "默认"
},
"tooltip": "选择自定义选项以隐藏系统标题栏"
},
"Comfy_ConfirmClear": {
"name": "清除工作流时需要确认"
},