From 22d139ecf88db80658daea1401597a4b9e1b399f Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 3 Jun 2019 13:38:03 +0100 Subject: [PATCH] Added titlebar icon --- public/titleicon.svg | 9 +++++++++ src/main.app.js | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 public/titleicon.svg diff --git a/public/titleicon.svg b/public/titleicon.svg new file mode 100644 index 00000000..f88a3088 --- /dev/null +++ b/public/titleicon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/main.app.js b/src/main.app.js index aff30501..b1b606db 100644 --- a/src/main.app.js +++ b/src/main.app.js @@ -1,9 +1,11 @@ import { Titlebar, Color } from 'custom-electron-titlebar' + // Only show custom menubar for Windows or Linux if ((process.platform !== 'darwin')) { new Titlebar({ - backgroundColor: Color.fromHex('#c5247f') + backgroundColor: Color.fromHex('#c5247f'), + icon: './titleicon.svg' }); }