Fix pixelated application icons for Windows

Added 20x20, 24x24 and 40x40 icons to icon.ico

Top left of the window: #98
Taskbar icon: #192
This commit is contained in:
Yuya Ochiai 2016-08-16 21:55:56 +09:00
parent 4151c82308
commit a0453b5865
3 changed files with 4 additions and 3 deletions

View file

@ -33,6 +33,9 @@ Release date: TBD
### Bug Fixes
- Fixed an issue where the maximized state of the app window was lost in some cases.
#### Windows
- Fixed pixelated application icons in top left of the window.
## Release v1.3.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 372 KiB

View file

@ -349,9 +349,7 @@ app.on('ready', function() {
// follow Electron's defaults
window_options = {};
}
if (process.platform === 'win32' || process.platform === 'linux') {
// On HiDPI(125%) Windows environment, the taskbar icon is pixelated. So this line is necessary. See #192.
// As the side effect, #98 reoccurs.
if (process.platform === 'linux') {
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
}
window_options.title = app.getName();