Hi, extract from http://pivot.apache.org/tutorials/platform-overview.html
Skins can be "styled" in a manner similar to CSS. Through the component, a skin may expose a set of style properties such as "color" and "font" that a user can change to achieve a custom application appearance without having to write a new skin. By default, all components use the skin classes defined by the Terra look and feel. The skins in this package provide considerable flexibility in setting style properties. Almost every aspect of a Terra skin's appearance can be varied via a style property. Terra also provides customizable "color schemes" that allow a designer to easily replace the color palette for an entire application. Take a look even here: http://pivot.apache.org/tutorials/component-and-container.html Our styles have a json structure, and can be put inside bxml files (the styles attribute) and/or the equivalent setter in Java code. Since 2.0 there is even support for named styles (or global defaults for styles), for example some info here: http://apache-pivot-users.399431.n3.nabble.com/Applying-a-style-to-all-elements-of-a-control-td2713309.html Probably we should write something more specific in Tutorials ... suggestions ? Bye, Sandro 2011/10/12 pan peter <[email protected]>: > is it possible to use css directly define the component style? now i can > define style per label or text field, can i define it globally through a css > file? > > > > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/can-we-use-css-style-sheet-in-pivot-tp3415299p3415299.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com. >
