Fix pixelated taskbar icon on HiDPI Windows

This commit is contained in:
Yuya Ochiai
2016-03-23 23:04:03 +09:00
parent 89959c7c93
commit 7e71094133

View File

@@ -163,7 +163,8 @@ app.on('ready', function() {
// follow Electron's defaults
window_options = {};
}
if (process.platform === 'linux') {
if (process.platform === 'win32' || process.platform === 'linux') {
// On HiDPI Windows environment, the taskbar icon is pixelated. So this line is necessary.
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
}
window_options.fullScreenable = true;