pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: Dynamic changable styles
Date Wed, 09 Jun 2010 21:36:33 GMT
OK. I assume that you will also have an associated set of font/color schemes to go with those
background images? If so, the easiest thing would probably be to define a custom scheme file
for each background image. The default scheme looks like this:


The format of this file is described in the Javadoc for the Terra package:


You could potentially provide a custom theme for each background image that defines an appropriate
font and color palette. You can specify which scheme file to use via the "org.apache.pivot.wtk.skin.terra.location"
system property. This property should point to a JSON file on the classpath that contains
the custom scheme; e.g.:


If you are running in an applet, you would use the "system_properties" applet param, which
works the same as the "startup_properties" param but sets system props rather than application
startup properties.


On Jun 9, 2010, at 5:25 PM, JohnRodey wrote:

> Ya, there will be a set of predefined background images.
> -- 
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Dynamic-changable-styles-tp883505p883631.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message