JannesMeyer / TabAttack

Advanced Tab management
GNU Affero General Public License v3.0
190 stars 12 forks source link

Render retina (2x) version of the icon #12

Open JannesMeyer opened 9 years ago

JannesMeyer commented 9 years ago

I don't have a Retina MacBook or any other machine with high-dpi screen to test this. But if anyone wants to pick this up, pull requests are welcome.

Ideally this wouldn't incur rendering the retina version for users who will never see it and vice-versa. Unfortunately it looks like chrome.browserAction.setIcon only accepts both sizes (19 square and 38 square) at the same time for everybody.

JannesMeyer commented 9 years ago

I just found out about the existence of window.devicePixelRatio. So that would help with deciding which size to render the icon at.