Package com.vaadin.copilot.theme
Class ApplicationDetectedThemeHolder
java.lang.Object
com.vaadin.copilot.theme.ApplicationDetectedThemeHolder
A singleton holder that manages and stores the currently detected application
theme.
This class provides a global access point to the application's theme, allowing other components to get or set the detected theme at runtime.
Example usage:
ApplicationDetectedThemeHolder holder = ApplicationDetectedThemeHolder.getInstance(); holder.setTheme(ApplicationTheme.LUMO); ApplicationTheme current = holder.getTheme();
- See Also:
-
Method Summary
-
Method Details
-
getInstance
-
setTheme
-
getTheme
-