public final class ThemeUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static ThemeDefinition |
findThemeForNavigationTarget(UI ui,
Class<?> navigationTarget,
String path)
Find annotated theme for navigationTarget on given path or lumo if
available.
|
static Optional<ThemeDefinition> |
getLumoThemeDefinition()
Gets the
Lumo theme definition (default theme) if it's available
in the classpath. |
public static Optional<ThemeDefinition> getLumoThemeDefinition()
Lumo theme definition (default theme) if it's available
in the classpath.Lumo theme definition or an empty optional if
it's not in the classpathpublic static ThemeDefinition findThemeForNavigationTarget(UI ui, Class<?> navigationTarget, String path)
ui - the UI where navigationTarget is expected being
registerednavigationTarget - navigation target to find theme forpath - path used for navigationCopyright © 2025. All rights reserved.