simple miniplayer
This commit is contained in:
parent
7ed8826071
commit
b4f65b56d5
7 changed files with 570 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue