<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Yes, the unread icon in base64 is only used if you have turned off the Unread Count. After that, things get hacky. Because the HTML5 &lt;canvas /&gt; tag cannot accept base64 image data or a remote URL, the unread icon with dynamic text on top of it must be generated in code. In order to do this, the &lt;code&gt;this.pixelMaps.icons.unread&lt;/code&gt; object is assigned to a 2-dimensional 16x16 array of hex values (though, they could be rgb). Yes, this is ridiculous, and yes it is terribly cumbersome, but it's currently the only solution I've found to get around the security limitations of &lt;canvas /&gt; on remote domains.

So, to solve your problem, you can modify the hex values in the &lt;code&gt;this.pixelMaps.icons.unread&lt;/code&gt; array to match those in your icon. I've yet to write a quick script to do it, but I may do it in the near future to help people implement their custom icons. I'll bump it up on my todo list. Thanks for asking!

Peter</body>
  <body-html>&lt;p&gt;Yes, the unread icon in base64 is only used if you have turned off the Unread Count. After that, things get hacky. Because the HTML5 &amp;lt;canvas&gt; tag cannot accept base64 image data or a remote URL, the unread icon with dynamic text on top of it must be generated in code. In order to do this, the &lt;code&gt;this.pixelMaps.icons.unread&lt;/code&gt; object is assigned to a 2-dimensional 16x16 array of hex values (though, they could be rgb). Yes, this is ridiculous, and yes it is terribly cumbersome, but it's currently the only solution I've found to get around the security limitations of &amp;lt;canvas&gt; on remote domains.&lt;/p&gt;

&lt;p&gt;So, to solve your problem, you can modify the hex values in the &lt;code&gt;this.pixelMaps.icons.unread&lt;/code&gt; array to match those in your icon. I've yet to write a quick script to do it, but I may do it in the near future to help people implement their custom icons. I'll bump it up on my todo list. Thanks for asking!&lt;/p&gt;

&lt;p&gt;Peter&amp;lt;/canvas&gt;&amp;lt;/canvas&gt;&lt;/p&gt;</body-html>
  <created-at type="datetime">2009-07-12T06:46:36Z</created-at>
  <forumable-id type="integer">24430</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">145299</id>
  <topic-id type="integer">30625</topic-id>
  <updated-at type="datetime">2009-07-12T06:46:36Z</updated-at>
  <user-agent>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5</user-agent>
  <user-id type="integer">27555</user-id>
</post>
