Merge pull request #767 from seanyesmunt/menu-icon

Fix menubar icon for macOS
This commit is contained in:
Liam Cardenas 2017-11-21 13:23:12 -05:00 committed by GitHub
commit e6665218a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -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");

BIN
ui/dist/img/fav/macTemplate@2x.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB