Jim,

I guess you found the theme files in the standard skeleton applications 
(the ones you create with create-application.py), and took your theme 
inspiration from there. Did you also add the theme class to the 
"include" key of your config.json?, and re-ran 'generate.py source'?!

T.

Jim Hunter wrote:
> I guess I am not 'getting' the appearance class. Here is the class I 
> added for my custom appearances, let me know what I am doing wrong:
>
> qx.Theme.define("swep.Appearance",
> {
>   extend : qx.theme.modern.Appearance,
>   title : "swep",
>
>   appearances :
>   {
>       "sfNavDocArrowBar" : {},
>     "sfNavDocArrowBar/PriorOper" :
>     {
>         alias:"PriorOper",
>         include:"button-frame",
>         style:function(states)
>         {
>             return {padding:[2,8],center:true};
>         }
>     }
>   }
> });
>
> the class that I am instantiating is swep.sfNavDocArrowBar and one of 
> it's parts is a qx.ui.form.Button called PriorOper. To me, the 
> appearance class I created looks correct, but when I roll the mouse 
> over my button I get the following warning in FireBug:
>
> 1936817ms qx.theme.manager.Appearance[v]: Missing appearance: 
> widget/NavDocArrowBar/PriorOper
> 1936831ms qx.theme.manager.Appearance[v]: Missing appearance: 
> widget/NavDocArrowBar/PriorOper/icon
>
>
> the first thing I see is that it is not reporting the classname 
> (swep.sfNavDocArrowBar) but instead reporting the instantiated object 
> variable name (NavDocArrowBar) as having a missing appearance. Perhaps 
> that's how it reports it and this may not be an issue.
>
> I even tried to do control.setAppearance("button") when creating the 
> control but that made no difference, still got the exact same warning.
>
> Once I define an appearance, do I need to add it into the appearance 
> system? I didn't see anything in the appearance tutorial on it.
>
> Some more guidance with this would be helpful.
> Thanks,
> Jim
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to