revert to js
This commit is contained in:
14
preload.js
Normal file
14
preload.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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}`);
|
||||
});
|
Reference in New Issue
Block a user