This commit is contained in:
Araxeus
2021-05-10 01:56:41 +03:00
parent 36317c953a
commit 0eca30367f
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
const customTitlebar = require("custom-electron-titlebar");
module.exports = () => {
const bar = new customTitlebar.Titlebar({
new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#050505"),
minimizable: false,
maximizable: false,

View File

@ -7,13 +7,13 @@ const customTitlebarPath = path.join(__dirname, "prompt-custom-titlebar.js");
const promptOptions = is.macOS() ? {
customStylesheet: "dark",
icon: iconPath
} : {
} : {
customStylesheet: "dark",
icon: iconPath,
// The following are used for custom titlebar
frame: false,
customScript: customTitlebarPath,
enableRemoteModule: true
}
};
module.exports = () => promptOptions;
module.exports = () => promptOptions;