Closed puchenhui closed 1 year ago
Try frameless window
const mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
contextIsolation: false, // needed for Electron >= 12.x
webviewTag: true
},
titleBarStyle: 'hidden'
});
see https://www.electronjs.org/de/docs/latest/api/frameless-window
Thank you, it has been solved.
I have two questions. I hope you can help me answer them:
I want to remove the default title bar of the system and replace it with electron-tabs on the left, and window operations (refresh, minimize, zoom in/out, close) on the right, and can support dragging by clicking the top window.
Click Refresh to refresh the currently selected tab.
I look forward to your reply, thank you.