What specifically isn't working for you? Are you able to view the stylesheet 
demo with the styles applied?

http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/styles/stylesheet_demo.bxml
http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/styles/styles.json

The key is that you need to tell the application context about your stylesheet 
before you instantiate any components. You do this via 
ApplicationContext.applyStyles(), which takes the name of a stylesheet resource 
as an argument. If you are launching your application via the ScriptApplication 
launcher, you can pass the path to the stylesheet using the --stylesheet 
argument.

Hope this helps.

Greg

On Aug 20, 2010, at 9:12 PM, Duto wrote:

> 
> Could you please explaim me how does the new CSS-like type selectors of pivot
> 2.0 work.
> 
> I read the mailing list :
> 
> http://mail-archives.apache.org/mod_mbox/pivot-dev/201007.mbox/%[email protected]%3e
> 
> and see the example on style demo but I try to making work but with not
> success :s
> 
> Thanks for advance
> 
> Duto
> -- 
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/How-does-the-new-CSS-like-type-selectors-of-pivot-2-0-work-tp1256610p1256610.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to