Package generic.theme
Class GThemeDefaults.Colors.Palette
java.lang.Object
generic.theme.GThemeDefaults.Colors.Palette
- Enclosing class:
GThemeDefaults.Colors
Generic palette colors, using color names, that may be changed along with the theme.
These are not all defined palette colors, but some of the more commonly used colors.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final Color
Transparent colorstatic final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
static final GColor
-
Constructor Summary
-
Method Summary
-
Field Details
-
NO_COLOR
Transparent color -
BLACK
-
BLUE
-
CYAN
-
DARK_GRAY
-
GOLD
-
GRAY
-
GREEN
-
LAVENDER
-
LIGHT_GRAY
-
LIME
-
MAGENTA
-
MAROON
-
ORANGE
-
PINK
-
PURPLE
-
RED
-
SILVER
-
TEAL
-
WHITE
-
YELLOW
-
-
Constructor Details
-
Palette
public Palette()
-
-
Method Details
-
getColor
Returns a newGColor
for the given palette name.For a list of supported palette IDs, see
gui.palette.theme.properties
.It is preferred to use the static colors defined in
GThemeDefaults.Colors.Palette
when possible, as it prevents excess object creation. This method should be used when the desired palette color is not in that list. Further, this method should only be called once per use, such as when initializing a constant value.- Parameters:
name
- the palette entry name- Returns:
- the GColor
-