Package net.mcreator.ui.laf.themes
Class ThemeManager
java.lang.Object
net.mcreator.ui.laf.themes.ThemeManager
This class detects and then tries to load all Themes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method loads allThemes and sets the current theme to the one selected by the user.static ThemeThis method checks in all loaded themes to get the theme matching the ID.static LinkedHashSet<Theme> static voidThis method loads theThemeof all plugins loaded into the currentPluginLoaderinstance.
-
Field Details
-
CURRENT_THEME
-
-
Constructor Details
-
ThemeManager
public ThemeManager()
-
-
Method Details
-
applySelectedTheme
public static void applySelectedTheme()This method loads allThemes and sets the current theme to the one selected by the user. -
loadThemes
public static void loadThemes()This method loads the
Themeof all plugins loaded into the currentPluginLoaderinstance. -
getThemes
-
getTheme
This method checks in all loaded themes to get the theme matching the ID.
- Parameters:
id- The theme's id we want to get- Returns:
- Returns the
Theme, if found in the cache, otherwise null
-