You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Greg Brown <gk...@mac.com> on 2009/09/24 21:21:48 UTC

Specifying Terra color schemes

Hi all,

You may have noticed that themes can no longer be dynamically applied. Earlier today, I discovered a bug in the dynamic theme application code that would have been a bit of a pain to fix. Since there isn't really a strong use case for this feature, it made more sense to remove it (less code to maintain).

However, you can still specify custom Terra color schemes. It is now done via a system property. For example:

-Dorg.apache.pivot.wtk.skin.terra.location=org/apache/pivot/wtk/skin/terra/TerraTheme_test.json

And of course, you can still specify a different theme using the org.apache.pivot.wtk.Theme system property.

Let me know if you have any questions.

Greg


Re: Specifying Terra color schemes

Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
as always you've done a good job, now it's more simpler (and cleaner)
than before, and usable from all applications ( :-) ).
In one of your articles, maybe you could speak also of this little
feature, but useful to designers or anyone whats customize their
colors without writing a custom skin ... and maybe also in some
tutorial page.

Only a quick note:
the previous approach required a program argument, while now it's a
Java VM argument ... ok, they are both on the same command line, but
for example in Eclipse they are two distinct fields of the Run
Configuration, under Arguments: Program arguments, and VM arguments
...

Bye