Set the theme as follows before you load your UI:
Theme.setTheme(new TerraTheme("org/apache/pivot/wtk/skin/terra/
TerraTheme_test.json"));
That constructor is actually new - I'll check it in shortly. In the
meantime, you can use the URL-based constructor.
On Aug 21, 2009, at 6:01 AM, Sandro Martini wrote:
Hi to all,
someone has tried how to override Terra default colors, using a json
file ?
The related class is org.apache.pivot.wtk.skin.terra.TerraTheme, and
it loads a default file.
There is also another test file "TerraTheme_test.json", but there is
nothing that uses it ...
For example, I'd like to run the Kitchen Sink Tutorial with a
customized json file, to see if my colors are shown right ...
suggestions ?
But the real question is, if I'd use Dark Colors in my palette,
someone has tried to see if all is right ?
Because in this case maybe instead of darkening a color the theme
should brighten it.
This could be an interesting feature for the 1.3 release.
Thanks,
Sandro