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:
parent
4151c82308
commit
a0453b5865
|
@ -33,6 +33,9 @@ Release date: TBD
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
- Fixed an issue where the maximized state of the app window was lost in some cases.
|
- 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
|
## Release v1.3.0
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 372 KiB |
|
@ -349,9 +349,7 @@ app.on('ready', function() {
|
||||||
// follow Electron's defaults
|
// follow Electron's defaults
|
||||||
window_options = {};
|
window_options = {};
|
||||||
}
|
}
|
||||||
if (process.platform === 'win32' || process.platform === 'linux') {
|
if (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.
|
|
||||||
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
|
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
|
||||||
}
|
}
|
||||||
window_options.title = app.getName();
|
window_options.title = app.getName();
|
||||||
|
|
Loading…
Reference in a new issue