Just remove the ".js" should already help.

e.g. APPLICATION_THEME_COLOR = custom.QuickstoreColors

The compiler should also print out a warning because of the missing 
class name. To check this output first is always helpful :)

Sebastian



hired-gun schrieb:
> I've tried to reduce this to the simplest possible test. I created a new
> skeleton and added only this to the make file:
> 
> APPLICATION_THEME_COLOR = custom.QuickstoreColors.js
> 
> I have placed a file named QuickstoreColors.js in the ./class/custom
> directory with the following contents:
> 
> alert("processing QuickstoreColors");
> qx.Theme.define("custom.QuickstoreColors",
> {
>   title : "Quickstore Color Theme",
>   extend : qx.theme.classic.color.LunaGreen,
>  
>   colors : {
>     "footer" : [ 20, 20, 20 ]
>   }
> });
> 
> When I try and load the page I get this error:
> 
> [Exception... "'Error: The color theme to use is not available:
> custom.QuickstoreColors.js' when calling method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> 
> I can see the alert() message come up, so the file is being loaded. What am
> I doing wrong?
> 
> Thanks, Bob
> 
> 
> 
> Fabian Jakobs-2 wrote:
>> Hi Bob,
>>
>> are you using the "skeleton" as basis for your application? If this is 
>> the case just put the theme in a directory matching the namecpace of 
>> your theme under the /source/class directory. In your case this would be 
>> "source/class/com/cvmkt/themes/QuickstoreColor.js" like any other 
>> qooxdoo class.
>>
>> After doing this just call "make" or "make build" and everything should 
>> work.
>>
>> Best Fabian
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to