I’m having some problems with my theme, and the subject describes only one implication.
The very first line of my application’s init() is a setTheme(“footheme”) call, and indeed, my customlayout templates work fine from ITMILL/themes/footheme/layout/.
However, when I create a Button and set its icon with
This should work. I just event verified it with a simple test. Can you provide a bit more information about your setup?
As the them css is not either loaded I believe you have a typo in your theme naming or something. With Firebug you can try to sneak into generated DOM to see the uri that is used for icon. It might give you a clue what is the problem.
The problem with ThemeResource was that I’m using a custom html gateway (just like in the Reserver example), and I needed to specify my theme location in there, like this: