Just a small additional note:

Currently property values will be applied in this order:

- main application
   - create new instance
     - constructor
       - apply initial appearance
         - set propertyX
       - apply state appearance
         - set propertyY
   - configure instance
     - set propertyX
     - set propertyY
- application runtime
   - hover effect
     - apply state appearance
       - set propertyY

As you can see this is a bit complex. Generally both initial and state 
appearances get applied through the constructor, but the state 
appearance also get applied again with each state change.

Sebastian




Sebastian Werner schrieb:
> Ralf Sternberg schrieb:
>> Hi,
>>
>> I'm new to qooxdoo and have a problem regarding the concept of themes 
>> and appearances:
>>
>> When properties of a control like colors or borders are being set
>> manually (e.g. using "setColor()"), the "state" function of the 
>> appearance can reset those properties whenever a state change occurs.
>>
>> For example, when a theme defines a default background color and a hover 
>> color for buttons (as the standard theme does), any custom background 
>> color is overwritten by the default after a mouse over.
>>
>> Is there a way to let an appearance respect such customizations (i.e. to 
>> restore the custom background color after a mouse over) or do both 
>> practices (defining an appearance and setting properties manually) 
>> exclude one another?
> 
> Hi Ralf,
> 
> this is a already known bug. You can find some informations regarding 
> this in bug #16: http://bugzilla.qooxdoo.org/show_bug.cgi?id=16.
> 
> The problem is that we need to support multiple values for each 
> properties. Then we could add some fallback logic to do something like 
> user-value -> appearance-value -> default-value -> null
> 
> Hope this helps.
> 
> Sebastian
> 
> 
>> Thanks, Ralf
>>
>>
>> -------------------------------------------------------------------------
>> 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
> 
> 
> -------------------------------------------------------------------------
> 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


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