[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

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)
}
}
],