Class ApplicationDetectedThemeHolder

java.lang.Object
com.vaadin.copilot.theme.ApplicationDetectedThemeHolder

public class ApplicationDetectedThemeHolder extends Object
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: