EZPPLauncher/preload.js

14 lines
423 B
JavaScript
Raw Normal View History

2024-01-09 12:10:37 +00:00
const { Titlebar, TitlebarColor } = require("custom-electron-titlebar");
window.addEventListener("DOMContentLoaded", () => {
const titlebar = new Titlebar({
backgroundColor: TitlebarColor.fromHex("#202020"),
itemBackgroundColor: TitlebarColor.fromHex("#202020"),
menu: null,
enableMnemonics: false,
maximizable: false,
});
//titlebar.updateTitle(`${appInfo.appName} ${appInfo.appVersion}`);
});