Commit 461ae611 authored by dev0tion's avatar dev0tion

Use tray icon, only set window icon on Windows

parent 064055bd
...@@ -46,7 +46,9 @@ function createWindow() { ...@@ -46,7 +46,9 @@ function createWindow() {
title: "Breeze Wallet" title: "Breeze Wallet"
}); });
if (os.platform() === "win32"){
mainWindow.setIcon(applicationIcon); mainWindow.setIcon(applicationIcon);
}
// and load the index.html of the app. // and load the index.html of the app.
mainWindow.loadURL(url.format({ mainWindow.loadURL(url.format({
...@@ -191,9 +193,9 @@ function createTray() { ...@@ -191,9 +193,9 @@ function createTray() {
let trayIcon; let trayIcon;
if (serve) { if (serve) {
trayIcon = nativeImage.createFromPath('./src/assets/images/breeze-logo.png'); trayIcon = nativeImage.createFromPath('./src/assets/images/breeze-logo-tray.png');
} else { } else {
trayIcon = nativeImage.createFromPath(path.join(__dirname + '/assets/images/breeze-logo.png')); trayIcon = nativeImage.createFromPath(path.join(__dirname + '/assets/images/breeze-logo-tray.png'));
} }
let systemTray = new Tray(trayIcon); let systemTray = new Tray(trayIcon);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment