Thanks for your reply. I have done pretty much exactly as you suggested
here. I replaced the existing meta theme by copying it to a new file name,
and editing the name and the color theme that it references. I then created
a new theme that extended one of the existing color themes. My problem is
trying to figure out how and where to introduce the new file that has my new
color theme. I added it to the custom.js file that the make produces, but I
get this error when I run it:

Invalid key "extend" in class "com.cvmkt.themes.QuickstoreColor"! The value
is undefined/null!

I've just copied and pasted one of the color theme examples from the
documentation on theme support, so I think the theme file is correct. The
only change I've made from the example is the name of the theme itself.

Obviously this file has to be introduced at the right time. It references
other classes that need to have been loaded first, so I can't just add a
<script ...> element in the html page. The only logical place I can see to
include it is in the big list of <script ..> elements that get written out
via the custom.js file which gets produced from the make step. Sorry for
being so dense. 

Thanks,

Bob

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Back
Sent: Wednesday, June 13, 2007 12:10 PM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] more questions on theme support

Hi Bob,

hired-gun wrote:
> I am trying to extend an existing color scheme. I couldn't figure out
where
> to add the script file. I tried editing my 'make' generated custom.js file
> with the line:
>
> <script type="text/javascript"
> src="./class/com/cvmkt/themes/QuickstoreColor.js"></script>\
>
> right before the line that loads my Appliaction.js script. Then I add this
> line to my Application.js file:
>
>
qx.theme.manager.Appearance.getInstance().setAppearanceTheme(com.cvmkt.them
>es.QuickstoreColor);
>
> But I get an error trying to parse the color theme:
>
> Invalid key "extend" in class "com.cvmkt.themes.QuickstoreColor"! The
value
> is undefined/null!
The best way to change the existing themes is to extend an existing meta
theme 
and change the themes you wish in your meta theme file.

If you only want to change the color theme this would be sufficient:

--snip--
qx.Theme.define("YOUR_NAMESPACE.theme.YOUR_META_THEME",
{
  title : "YOUR META THEME",
  extend : qx.theme.ClassicRoyale, // this is only used for example

  meta :
  {
    color : YOUR_NAMESPACE.theme.YOUR_META_THEME.YOUR_COLORTHEME
  }
});
--snip--

Just take a look at the folder layout of the Ext theme. 

qx.theme.Ext -> Meta theme
qx.theme.ext.Color -> Color theme
qx.theme.ext.Appearance -> Appearance theme 
...

To use the created meta theme you can use the "APPEARANCE_THEME" makefile 
variable. Just insert this variable into your makefile (located at the root 
of your application).

e.g. 
APPLICATION_THEME=qx.theme.Ext

would use the Ext meta theme as default theme (after executing a "make").

Hope that helps,
  Alex

-------------------------------------------------------------------------
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