Defines skin classes for the "Terra" theme.

Terra skins get their colors from the theme's color palette, which contains 24 indexed colors. Each Terra skin exposes setter methods for each of its color styles that take an integer value; such methods allow callers to style the component by referencing the theme's color palette. The default palette is shown below:


The default color palette

The font and color palette is defined in a JSON file that should contain a Map containing the following properties:

Property: Type: Description:
font String The default theme font; must be understandable by java.awt.Font.decode().
colors List<String> This list should contain 8 colors in a form understandable by java.awt.Color.decode(). This list represents the theme's "base color palette", from which the full color palette is derived. Each of these 8 colors will be expanded to comprise 3 colors in the final palette: a darker version, the color itself, and a lighter version. Thus, the final color palette will contain 24 colors. For instance, in the default color palette the "base palette" colors are the colors in the middle column.

By default, the theme definition in TerraTheme_default.json is used, but can be overridden via the org.apache.pivot.wtk.skin.terra.location property.