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

@ -259,6 +259,8 @@ const app = new Vue({
platform: "web"
}
},
tmpHeight : '',
tmpWidth : '',
tmpVar: [],
notification: false,
chrome: {
@ -3275,6 +3277,17 @@ const app = new Vue({
app.appMode = 'player';
}
},
miniPlayer(flag) {
if (flag) {
this.tmpWidth = screen.width;
this.tmpHeight = screen.height;
ipcRenderer.send('windowresize', 350, 350, false)
app.appMode = 'mini';
} else {
ipcRenderer.send('windowresize', this.tmpWidth, this.tmpHeight, false)
app.appMode = 'player';
}
},
formatTimezoneOffset: (e = new Date) => {
let leadingZeros = (e, s = 2) => {
let n = "" + e;