mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
Format custom menu plugin
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
const customTitlebar = require('custom-electron-titlebar');
|
||||
const {remote, ipcRenderer} = require('electron');
|
||||
const customTitlebar = require("custom-electron-titlebar");
|
||||
const { remote, ipcRenderer } = require("electron");
|
||||
|
||||
module.exports = () => {
|
||||
const myBar = new customTitlebar.Titlebar({
|
||||
backgroundColor: customTitlebar.Color.fromHex('#050505'),
|
||||
itemBackgroundColor: customTitlebar.Color.fromHex('#121212')
|
||||
backgroundColor: customTitlebar.Color.fromHex("#050505"),
|
||||
itemBackgroundColor: customTitlebar.Color.fromHex("#121212"),
|
||||
});
|
||||
myBar.updateTitle(' ');
|
||||
document.title = 'Youtube Music';
|
||||
myBar.updateTitle(" ");
|
||||
document.title = "Youtube Music";
|
||||
|
||||
ipcRenderer.on('updateMenu', function (event, menu) {
|
||||
ipcRenderer.on("updateMenu", function (event, menu) {
|
||||
if (menu) {
|
||||
myBar.updateMenu(remote.Menu.getApplicationMenu());
|
||||
} else {
|
||||
@ -20,4 +20,4 @@ module.exports = () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user