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
<TextInput/>
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.