You may want to check out the eclipse e4 source code. They implement CSS-like 
styling to handle styling in similar fashion.

You don't even need to change the pivot library code to implement CSS styling 
transparently and dynamically.

With all the thoughts going on around styling (people have implemented CSS-like 
styling and WPF-like styling/triggers), what is the pivot core team's thoughts 
on 2.0 and what the objectives are? 

We've seen that we can implement advanced styling approaches (and more) without 
changing core pivot at all, but what does this add up to? It seems that alot of 
this work is really about easier theming and L&F customization.



Jul 9, 2010 12:18:51 PM, [email protected] wrote:

===========================================

I've written a first pass at Pivot component styling with CSS syntax.  In 
your WTKX you use attributes on your components like

CSS.id="topBox"
CSS.class="green italic"
CSS.style="font-size: 17pt; font-weight: bold"

It also supports styling based on element names.  For instance,

TextInput {
   font-size: 16pt
   color: red
}

applies to



I haven't implemented cascading yet.  Right now I'm focused on getting a 
release out the door for my client's project.  Running way behind schedule 
on that.  Just wanted to let everyone know it works, it looks like CSS, 
and I'll publish it within the next couple weeks (again, my first priority 
is getting my client's project out the door).

Cheers,

Michael

On Tue, 6 Jul 2010, Sandro Martini wrote:

>
> Hi Michael,
> very good, and don't worry on timing issues , when you'll have something to
> show, we can take a look. Remember to add it in jira as a zip.
>
> In any case, the "problem" I see in this is that supporting only a subset of
> the CSS syntax (CSS is a very large specification, and in some parts
> complex) is a risk:
> how many users will expect something like "some properties are defined in
> the CSS but Pivot doesn't handle them" ? ... but I agree with you that also
> few options are better then none, so good luck with the prototype :-) . And
> for unsupported properties maybe we could log some warnings etc ...
>
> Bye,
> Sandro
>
> -- 
> View this message in context: 
> http://apache-pivot-developers.417237.n3.nabble.com/Named-styles-tp939045p946302.html
> Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.
>

Reply via email to