electron-vue for the project
create a transparent form
Code:
iconWindow = new BrowserWindow({
// height: 100,
// width: 100,
frame: false,
resizable: false,
// x: -1000,
// y: 50,
transparent: true,
})
iconWindow.loadURL(miniWinURL)
iconWindow.webContents.closeDevTools();
actual effect:
you can see that the
form has no shadow, which means that the transparent setting has taken effect, and I haven"t set the background color for
body and html.
but why isn"t it transparent?