mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
move prompt to provide
This commit is contained in:
19
providers/prompt/customTitlebar.js
Normal file
19
providers/prompt/customTitlebar.js
Normal file
@ -0,0 +1,19 @@
|
||||
const customTitlebar = require("custom-electron-titlebar");
|
||||
|
||||
module.exports = () => {
|
||||
const bar = new customTitlebar.Titlebar({
|
||||
backgroundColor: customTitlebar.Color.fromHex("#050505"),
|
||||
minimizable: false,
|
||||
maximizable: false,
|
||||
unfocusEffect: true,
|
||||
});
|
||||
try {
|
||||
bar.updateMenu(null);
|
||||
} catch (e) {
|
||||
//will always throw type error - null isn't menu, but it works
|
||||
}
|
||||
let container = document.querySelector('#container');
|
||||
container.style.width = '100%';
|
||||
container.style.position = 'fixed';
|
||||
container.style.border = 'unset';
|
||||
}
|
||||
Reference in New Issue
Block a user