TabAttack icon indicating copy to clipboard operation
TabAttack copied to clipboard

Render retina (2x) version of the icon

Open JannesMeyer opened this issue 10 years ago • 1 comments

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 avatar Feb 21 '15 23:02 JannesMeyer

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

JannesMeyer avatar Feb 23 '15 00:02 JannesMeyer