From 61dac01de6b66fc9b3a3ca81d31ddbc2664f24bd Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 21 Nov 2017 01:12:09 -0500 Subject: [PATCH] fix menu bar icon for macOS --- app/main.js | 10 +++++++++- ui/dist/img/fav/macTemplate@2x.png | Bin 0 -> 1992 bytes 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 ui/dist/img/fav/macTemplate@2x.png diff --git a/app/main.js b/app/main.js index 0774c081a..af84b1ba2 100644 --- a/app/main.js +++ b/app/main.js @@ -226,7 +226,15 @@ function createWindow () { function createTray () { // Minimize to tray logic follows: // Set the tray icon - const iconPath = path.join(app.getAppPath(), "/dist/img/fav/32x32.png"); + let iconPath; + if (process.platform === 'darwin') { + // Using @2x for mac retina screens so the icon isn't blurry + // file name needs to include "Template" at the end for dark menu bar + iconPath = path.join(app.getAppPath(), "/dist/img/fav/macTemplate@2x.png"); + } else { + iconPath = path.join(app.getAppPath(), "/dist/img/fav/32x32.png"); + } + tray = new Tray(iconPath); tray.setToolTip("LBRY App"); tray.setTitle("LBRY"); diff --git a/ui/dist/img/fav/macTemplate@2x.png b/ui/dist/img/fav/macTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..99cc33006a9253ec24b54a2335a70679884e6baa GIT binary patch literal 1992 zcmV;(2RHbMP)Px+f=NU{R9FekSPO8J)fGPH{{NP&4GqceYDH?bRqm0SWFd@-PBMVXCb?Q zq*NISia?8Fs0dV2n9i6GY8|CjP$Zj&;|s|?NNKcctF5imGPYX#n7*cF^Cx0(NV5Ci z+wTW%y5R06AzAUC*|~S`NEpKL~9#&MB zjKp5dCfL~v0vAa^-&RaPCiOS8P1eVg&(Y4;QrXszG&XJko>0Z5MB)cvbcJGdU#~|z zNI!}Wj>H(weZDY_Wy~B_lHLLE9mSIdp8EUlu7Q#EX3n2BfT`8hXAKsoR)N^w>gH<8?6 zHOHSB4YPb}Cc}SRG_(XDZoz2`DdGoZD%ITA-g!9RzA*vt*36wsG_+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