| 
| Icons and Theming [message #57184] | Sun, 04 November 2007 06:05  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: andy.freenet.de 
 Hi again,
 
 IŽm just preparing the Theming for
 my CalendarWidget.
 I want to use the Icons from the Qooxdoo-Datechooser,
 for that I copied them into my project into a folder:
 "resources/icons/".
 Now I have my theme.xml File with the Property:
 <image name="jscalendar.prevMonth"
 description=""
 targetPath="jscalendar/prevMonth.png"
 default="resources/lastMonth.png"/>
 
 I thought, now the icon would be accessible from the
 appearance-fragment-file like this:
 "jscalendar.prevMonth" : {
 style : function( states ) {
 return {
 icon : "widget/jscalendar/prevMonth.png"
 }
 }
 }
 
 but instead I get
 java.lang.IllegalArgumentException: Resource 'resources/lastMonth.png' not
 found for theme 'Alternative Demo Theme'
 
 So IŽm sure there is a path problem, any hints for a poor lost soul who
 has nothing else to do on sunday morning?
 
 Andy
 |  |  |  | 
| 
| Re: Icons and Theming [message #57644 is a reply to message #57184] | Mon, 05 November 2007 07:28  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: rsternberg.innoopract.com 
 Hi Andy,
 
 Andy schrieb:
 > IŽm just preparing the Theming for my CalendarWidget.
 > I want to use the Icons from the Qooxdoo-Datechooser,
 > for that I copied them into my project into a folder:
 > "resources/icons/".
 > Now I have my theme.xml File with the Property:
 > <image name="jscalendar.prevMonth"
 >         description=""
 >         targetPath="jscalendar/prevMonth.png"
 >         default="resources/lastMonth.png"/>
 >
 > I thought, now the icon would be accessible from the
 > appearance-fragment-file like this:
 > "jscalendar.prevMonth" : {
 >    style : function( states ) {
 >      return {
 >           icon : "widget/jscalendar/prevMonth.png"
 >      }
 >    }
 >  }
 >
 > but instead I get
 > java.lang.IllegalArgumentException: Resource 'resources/lastMonth.png'
 > not found for theme 'Alternative Demo Theme'
 
 Shouldn't it be resources/icons/lastMonth.png ? The IAE means that the
 ThemeManager can not find the image that you specified in the default
 attribute.
 
 > So IŽm sure there is a path problem, any hints for a poor lost soul who
 > has nothing else to do on sunday morning?
 
 Oh sorry for responding so late, hope your Sunday was fine anyway!
 
 Regards,
 Ralf
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05734 seconds