!416 (titleBar): 使用 Font Awesome 图标集替代字符形式窗口控制标识, 且状态由根组件维护

Merge pull request !416 from zinface/styles/window-title-bar
This commit is contained in:
2026-08-18 05:50:21 +00:00
committed by Gitee
5 changed files with 24 additions and 6 deletions
+8
View File
@@ -876,6 +876,14 @@ app.whenReady().then(() => {
});
});
ipcMain.handle('window:state', () => {
const win = BrowserWindow.getFocusedWindow()
if (!win) return 'normal'
if (win.isMaximized()) return 'maximized'
if (win.isMinimized()) return 'minimized'
return 'normal'
})
// New window example arg: new windows url
// ipcMain.handle('open-win', (_, arg) => {
// const childWindow = new BrowserWindow({