Fix pixelated taskbar icon on HiDPI Windows
This commit is contained in:
@@ -163,7 +163,8 @@ app.on('ready', function() {
|
|||||||
// follow Electron's defaults
|
// follow Electron's defaults
|
||||||
window_options = {};
|
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.icon = path.resolve(__dirname, 'resources/appicon.png');
|
||||||
}
|
}
|
||||||
window_options.fullScreenable = true;
|
window_options.fullScreenable = true;
|
||||||
|
Reference in New Issue
Block a user