EZPPLauncher/preload.js
2024-01-09 13:10:37 +01:00

15 lines
428 B
JavaScript

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}`);
});