I ran into an issue trying to use a custom theme with alt icons (i.e. black). I have a few custom icons in my application, and I was hoping that the button widget would magically switch to my alt colored icons as long as I specified the proper ui-icon-alt CSS rules along with the CSS rules for my custom icons. That is not the case though. It looks like they started trying to implement that, but it must still be in progress. So, I did a diff of the two versions of my custom theme.
The only difference between the two custom theme files is as follows. This is the global ui-icon rule for the custom theme in which I left the default icon set (i.e. white):
- .ui-icon,
- .ui-icon-searchfield:after {
- background-color: #666666 /*{global-icon-color}*/;
- background-color: rgba(0,0,0,.4) /*{global-icon-disc}*/;
- background-image: url(images/icons-18-white.png) /*{global-icon-set}*/;
- background-repeat: no-repeat;
- -webkit-border-radius: 9px;
- border-radius: 9px;
- }
And, here is the global ui-icon rule for the custom theme in which I specified to use the alt icon set (i.e. black):
- .ui-icon,
- .ui-icon-searchfield:after {
- background-color: #ffffff /*{global-icon-color}*/;
- background-color: rgba(255,255,255,0.25) /*{global-icon-disc}*/;
- background-image: url(images/icons-18-black.png) /*{global-icon-set}*/;
- background-repeat: no-repeat;
- -webkit-border-radius: 9px;
- border-radius: 9px;
- }
As you can see, the jquery theme builder is simply replacing the image sprite used as the background-image for the global class .ui-icon.
So, for me to use "alt" icons for my custom icons, I still had to define the appropriate CSS rules to support standard resolution and hd displays, but I also had to manually add the class "ui-icon-alt" to all of the buttons that are using custom icons. That's not what I was expecting, but I guess it's still easy enough.
So, back to the original question of this post, I think to use alt colored icons on a specific button, you would just have to add class="ui-icon-alt" to the element. So, using the original example form the OP, it might look something like this:
- <li data-icon="arrow-d" class="ui-icon-alt">