Hi Florian!

The new theming syntax and feature set as recently introduced in the
trunk (and 0.7-alpha2) is in its very early stages. See the
documentation and warnings in qx.Theme for instance.

Nonetheless, to get you started, the new (much more appealing) way of
defining a theme should allow to inherit from an existing theme by using
the "extend:" key, just as the new class definition does. Please try if
that already works for you.

To set the default appearance theme, the Makefile variable
APPLICATION_THEME_APPEARANCE as documented in
framework/tool/make/application.mk should do the job.

Maybe you should not invest all too much time into the new theming
mechanism, since that hasn't quite settled yet. On the other hand, it
would be great to get feedback and feature requests from some early
adopters.  ;-)

Cheers,

Andreas


> i’ve got a problem with my custom appearance using qooxdoo 0.7-alpha2.
> 
>  
> 
> I’d like to extend „qx.theme.appearance.Classic“ and merge it with my
> own style-definitions. 
> 
>  
> 
> In 0.7-alpha1 the following code worked fine:
> 
>  
> 
>  
> 
> qx.Class.define("de.cas.qxProject.theme.MyAppearance",
> 
> {
> 
>   type : "singleton",
> 
>   extend : qx.theme.appearance.Classic,
> 
>   
> 
>   construct : function(vTitle){
> 
>       qx.theme.appearance.Classic.call(this, vTitle || "
> qxProject-Style");
> 
>       
> 
>       // registering the appearance theme to the appearance manager
> 
> 
> qx.manager.object.AppearanceManager.getInstance().registerAppearanceTheme(de.cas.qxProject.theme.MyAppearance);
> 
>   },
> 
>  
> 
>   members :
> 
>   {
> 
>     _appearances : qx.lang.Object.carefullyMergeWith(
> 
>     {
> 
>       [mystyle-definitions…]
> 
>     },qx.theme.appearance.Classic.prototype._appearances)
> 
>   },
> 
>   
> 
>   defer : function(clazz)
> 
>   {
> 
> 
> qx.manager.object.AppearanceManager.getInstance().registerAppearanceTheme(clazz);
> 
>   }
> 
>   
> 
> });
> 
>  
> 
>  
> 
> But now, in alpha2 it doesn’t. Without a documentation, I tried to
> copy the new 0.7-alpha2 Classic appearance with the following result:
> 
>  
> 
> qx.Theme.define("de.cas.qxProject.theme.MyAppearance ",
> 
> {
> 
>     title : "MyAppearance",
> 
>     appearances : {
> 
>  
> 
>       "mystyle" :
> 
>       {
> 
>        
> 
>       }
> 
>     } 
> 
> });
> 
>  
> 
> Now no error occurs, but I do still have the problem, that I can’t
> merge the new appearances with classic and I also do not know, how to
> load the theme. 
> 
>  
> 
> qx.manager.object.AppearanceManager.getInstance().setAppearanceTheme(de.cas.qxProject.theme.MyAppearance);
> 
>  
> 
> Does not work (but no errors occur)… i’m a bit lost…
> 
> Is anyone out there who knows how to handle 0.7-alpha2 appearances? J
> 
>  
> 
> Regards,
> 
>  
> 
> Florian Probst




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to