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

Reply via email to