Tray: Use 32x32 icon on Windows
See [#5072][0]. [0]: https://github.com/signalapp/Signal-Desktop/pull/5072
This commit is contained in:
parent
15227aa962
commit
901a54b149
11 changed files with 13 additions and 2 deletions
|
@ -11,8 +11,19 @@ let trayContextMenu = null;
|
|||
let tray = null;
|
||||
|
||||
function createTrayIcon(getMainWindow, messages) {
|
||||
// A smaller icon is needed on macOS
|
||||
const iconSize = process.platform === 'darwin' ? '16' : '256';
|
||||
let iconSize;
|
||||
switch (process.platform) {
|
||||
case 'darwin':
|
||||
iconSize = '16';
|
||||
break;
|
||||
case 'win32':
|
||||
iconSize = '32';
|
||||
break;
|
||||
default:
|
||||
iconSize = '256';
|
||||
break;
|
||||
}
|
||||
|
||||
const iconNoNewMessages = path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue