Class ThemeBundles
java.lang.Object
com.jackmeng.halcyoninae.cosmos.util.ThemeBundles
A helper class to deal with all the available themes in the bundles.
The default theme for the program is the dark green theme.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
static Theme
static WeakReference<Theme[]>
Get available themes.static Theme
Search for a theme by its canonical name.
-
Constructor Details
-
ThemeBundles
private ThemeBundles()
-
-
Method Details
-
getDefaultTheme
- Returns:
- The default theme for the program is the dark green theme.
-
getThemes
Get available themes.- Returns:
- An array representing the available themes.
-
searchFor
Search for a theme by its canonical name.- Parameters:
canonicalName
- The canonical name of the theme.- Returns:
- The theme with the given canonical name, or the default if not found.
-
getCanonicNames
- Returns:
- All of the available canonical names from the available themes.
-