From 1baf040b8958bbb759b06c79422d5d39c0012d91 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 3 Jun 2019 10:24:15 +0100 Subject: [PATCH] Show custom titlebar on Win and Linux --- src/main.app.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main.app.js b/src/main.app.js index a7b44007..aff30501 100644 --- a/src/main.app.js +++ b/src/main.app.js @@ -1,7 +1,10 @@ -//import { Titlebar, Color } from 'custom-electron-titlebar' +import { Titlebar, Color } from 'custom-electron-titlebar' -//new Titlebar({ -// backgroundColor: Color.fromHex('#ffffff') -//}); +// Only show custom menubar for Windows or Linux +if ((process.platform !== 'darwin')) { + new Titlebar({ + backgroundColor: Color.fromHex('#c5247f') + }); +} console.log("Loaded main.app.js for electron-renderer functionality") \ No newline at end of file