Thanks Sebastian,

Regarding your comment on the bug, could you please explain the reason 
behind this? I understand the benefit of it working that way 
automatically, but not in preventing you from overriding it. The patch I 
uploaded uses the existing behaviour by default, but allows you to 
override the appearance if you want to.

It doesn't make sence to me to not allow this. You can manually override 
other properties including the decorator.

Thanks,
Matt


For the sake of the group this is the comment from the bug report:
------- Comment  #2 From Sebastian Werner  2009-04-29 12:27:11  [reply] 
-------

Child controls are always styled according to the first parent which is 
not a child control of any other widget. Overriding a appearance of a 
child control is not possible - by design.

But you can easily overwrite such a appearance entry by accessing the parent
e.g.

"button/label" : {
   style : function()
   {
     return { textColor: "black" };
   }
}

If you have further question regarding this topic feel free to post to our
mailing list.



Sebastian Werner wrote:
> Mhh, maybe a state would help to customize a single instance in this case?!?
> 
> Sebastian
> 
> 
> 2009/4/29 Sebastian Werner <[email protected] <mailto:[email protected]>>
> 
>     I would say it is a feature :)
> 
>     Cheers,
>     Sebastian
> 
> 
> 
> 
>     2009/4/29 Matthew Gregory <[email protected]
>     <mailto:matthew%[email protected]>>
> 
>         Had a eurika moment :)
> 
>         Reported as Bug#2324 with a proposed patch
> 
>         Matthew Gregory wrote:
>          > Hi All,
>          > I seem to be having a problem with setAppearance. I have a
>         standard
>          > TabView with a button (tab) that I need to change the
>         appearance of but
>          > it doesn't work.
>          >
>          > page.getChildControl("button").setAppearance("button");
>          >
>          > This seems to be true for all child controls. I looked at
>         syncAppearance
>          > in Widget.js and it seems that the selector is correctly set.
>          >
>          > Is this a bug or a "feature"?
>          >
>          > TIA,
>          > Matt
>          >
>          >
>          >
>         
> ------------------------------------------------------------------------------
>          > Register Now & Save for Velocity, the Web Performance &
>         Operations
>          > Conference from O'Reilly Media. Velocity features a full day of
>          > expert-led, hands-on workshops and two days of sessions from
>         industry
>          > leaders in dedicated Performance & Operations tracks. Use
>         code vel09scf
>          > and Save an extra 15% before 5/3.
>         http://p.sf.net/sfu/velocityconf
> 
> 
>         
> ------------------------------------------------------------------------------
>         Register Now & Save for Velocity, the Web Performance & Operations
>         Conference from O'Reilly Media. Velocity features a full day of
>         expert-led, hands-on workshops and two days of sessions from
>         industry
>         leaders in dedicated Performance & Operations tracks. Use code
>         vel09scf
>         and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
>         _______________________________________________
>         qooxdoo-devel mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations 
> Conference from O'Reilly Media. Velocity features a full day of 
> expert-led, hands-on workshops and two days of sessions from industry 
> leaders in dedicated Performance & Operations tracks. Use code vel09scf 
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to