Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Icons and Theming
Icons and Theming [message #57184] Sun, 04 November 2007 11:05 Go to next message
Eclipse UserFriend
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 12:28 Go to previous message
Eclipse UserFriend
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
Previous Topic:Scalability of RAP
Next Topic:Security
Goto Forum:
  


Current Time: Fri Apr 26 08:31:54 GMT 2024

Powered by FUDForum. Page generated in 0.04201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top