simple miniplayer

This commit is contained in:
vapormusic 2022-01-23 12:51:37 +07:00
parent 7ed8826071
commit b4f65b56d5
7 changed files with 570 additions and 1 deletions

View file

@ -406,6 +406,13 @@ export class Win {
this.win.webContents.setZoomFactor(parseFloat(scale));
});
// Set scale
electron.ipcMain.on("windowresize", (event, width, height, lock = false) => {
this.win.setMinimumSize(300,300);
this.win.setContentSize(width, height);
this.win.setResizable(!lock);
});
//Fullscreen
electron.ipcMain.on('setFullScreen', (event, flag) => {
this.win.setFullScreen(flag)