dae/anki — pull request #89 by corpulentcoffee (2014-08-10 01:38:24+00:00)
Title: Is including higher-resolution icons in the base Anki package a possibility for users with pixelation issues?

Hello!

I have a user who commented that the `icons/speaker.png` icon I use on dialog windows in AwesomeTTS looks very pixelated on OS X, particularly with a retina display. As a test, I tried grabbing the vector versions of the icons that Anki took from the Oxygen icon set and re-rendering them at 256x256.

Even on my Linux desktop with a normal display, the difference in the Xfce task switcher is pretty dramatic:

![Screenshot with the old icon](https://cloud.githubusercontent.com/assets/3958448/3867841/564aa9b4-2014-11e4-9aa2-1d9f234899ea.png)
![Screenshot with the re-rendered icon](https://cloud.githubusercontent.com/assets/3958448/3867842/564bb354-2014-11e4-8946-248eb182fe09.png)

My question: if an add-on author wants to use such icons on top-level windows, should they bundle a high-resolution version of the icon themselves, or is this something that would be better managed in the base Anki package?

I honestly do not know how many other add-on authors leverage the base package's icons, but if it's more than a few major add-ons, then maybe it makes sense for us to be mostly pulling from the same baseline pool of icons. From my testing, it looks like Qt will scale images down appropriately for wherever they are being used, so I *think* that the images can just be swapped out, but maybe putting them in with different filenames would be safer. Additionally, once I ran these images through `optipng`, their file sizes weren't *too* large compared to the lower-resolution images they replaced.

If there is any interest in working on the icons in the base package, let me know what I can do to help. Otherwise, I think I should just be able to bundle the icon in the add-on.

Thanks!