diff --git a/resources/windows/tray.svg b/resources/windows/tray.svg
new file mode 100644
index 00000000..9d2b7c77
--- /dev/null
+++ b/resources/windows/tray.svg
@@ -0,0 +1,309 @@
+
+
+
+
diff --git a/resources/windows/tray_mention.svg b/resources/windows/tray_mention.svg
new file mode 100644
index 00000000..b8355db3
--- /dev/null
+++ b/resources/windows/tray_mention.svg
@@ -0,0 +1,315 @@
+
+
+
+
diff --git a/resources/windows/tray_unread.svg b/resources/windows/tray_unread.svg
new file mode 100644
index 00000000..3a6f8366
--- /dev/null
+++ b/resources/windows/tray_unread.svg
@@ -0,0 +1,315 @@
+
+
+
+
diff --git a/src/main.js b/src/main.js
index d6ea5746..cd8aa67f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -57,9 +57,9 @@ const trayImages = function() {
switch (process.platform) {
case 'win32':
return {
- normal: nativeImage.createFromPath(path.resolve(__dirname, 'resources/tray.png')),
- unread: nativeImage.createFromPath(path.resolve(__dirname, 'resources/tray_unread.png')),
- mention: nativeImage.createFromPath(path.resolve(__dirname, 'resources/tray_mention.png'))
+ normal: nativeImage.createFromPath(path.resolve(__dirname, 'resources/windows/tray.ico')),
+ unread: nativeImage.createFromPath(path.resolve(__dirname, 'resources/windows/tray_unread.ico')),
+ mention: nativeImage.createFromPath(path.resolve(__dirname, 'resources/windows/tray_mention.ico'))
};
case 'darwin':
return {
@@ -224,8 +224,7 @@ app.on('ready', function() {
// follow Electron's defaults
window_options = {};
}
- if (process.platform === 'win32' || process.platform === 'linux') {
- // On HiDPI Windows environment, the taskbar icon is pixelated. So this line is necessary.
+ if (process.platform === 'linux') {
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
}
window_options.title = app.getName();
diff --git a/src/resources/tray.png b/src/resources/tray.png
deleted file mode 100644
index ce5a216e..00000000
Binary files a/src/resources/tray.png and /dev/null differ
diff --git a/src/resources/tray_mention.png b/src/resources/tray_mention.png
deleted file mode 100644
index 3a3ee1a9..00000000
Binary files a/src/resources/tray_mention.png and /dev/null differ
diff --git a/src/resources/tray_unread.png b/src/resources/tray_unread.png
deleted file mode 100644
index 4b2a7ea5..00000000
Binary files a/src/resources/tray_unread.png and /dev/null differ
diff --git a/src/resources/windows/tray.ico b/src/resources/windows/tray.ico
new file mode 100644
index 00000000..4277e0f3
Binary files /dev/null and b/src/resources/windows/tray.ico differ
diff --git a/src/resources/windows/tray_mention.ico b/src/resources/windows/tray_mention.ico
new file mode 100644
index 00000000..53e49de0
Binary files /dev/null and b/src/resources/windows/tray_mention.ico differ
diff --git a/src/resources/windows/tray_unread.ico b/src/resources/windows/tray_unread.ico
new file mode 100644
index 00000000..8a0d5a33
Binary files /dev/null and b/src/resources/windows/tray_unread.ico differ