miniplayer settings toggle to appear on top of windows.
working on linux, probs working elsewhere reading documentation.
This commit is contained in:
parent
4d6eb2cd64
commit
d42976f8db
4 changed files with 18 additions and 1 deletions
|
@ -60,7 +60,8 @@ export class ConfigStore {
|
|||
"animated_artwork_qualityLevel": 1,
|
||||
"bg_artwork_rotation": false,
|
||||
"hw_acceleration": "default", // default, webgpu, disabled
|
||||
"showuserinfo": true
|
||||
"showuserinfo": true,
|
||||
"miniplayer_ontop": true
|
||||
},
|
||||
"lyrics": {
|
||||
"enable_mxm": false,
|
||||
|
|
|
@ -430,6 +430,10 @@ export class Win {
|
|||
this.win.setMinimumSize(width,height);
|
||||
})
|
||||
|
||||
electron.ipcMain.on("windowontop", (event, ontop) => {
|
||||
this.win.setAlwaysOnTop(ontop);
|
||||
});
|
||||
|
||||
// Set scale
|
||||
electron.ipcMain.on("windowresize", (event, width, height, lock = false) => {
|
||||
this.win.setContentSize(width, height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue