How to specify a Chrome extension icon (popup icon) for Retina Mac's

I found that my icon (and many other icons) are very ugly on Retina Macs.

Is there any way to specify a well-designed retina image as a pop-up icon?

Thanks!

+7
google-chrome-extension retina-display
source share
1 answer

Just create an icon with two sizes (76x76 pixels) and specify the path to it in manifest.json :

 "browser_action": { "default_icon": { "19": "icon19x19.png", "38": "icon76x76.png" } } 

If you want to dynamically change the icon using setIcon , you must call it with the following parameters:

 chrome.browserAction.setIcon({ path: { "19": "icon19x19.png", "38": "icon76x76.png" } }); 
+15
source share

All Articles