Class ThemeBundles

java.lang.Object
com.jackmeng.halcyoninae.cosmos.util.ThemeBundles

public final class ThemeBundles extends Object
A helper class to deal with all the available themes in the bundles.

The default theme for the program is the dark green theme.

Since:
3.3
Author:
Jack Meng
See Also:
  • Constructor Details

    • ThemeBundles

      private ThemeBundles()
  • Method Details

    • getDefaultTheme

      public static Theme getDefaultTheme()
      Returns:
      The default theme for the program is the dark green theme.
    • getThemes

      public static WeakReference<Theme[]> getThemes()
      Get available themes.
      Returns:
      An array representing the available themes.
    • searchFor

      public static Theme searchFor(String canonicalName)
      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

      public static String[] getCanonicNames()
      Returns:
      All of the available canonical names from the available themes.