diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/main/java/com/vaadin/server/Constants.java | 2 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/server/LegacyApplication.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/server/Constants.java b/server/src/main/java/com/vaadin/server/Constants.java index daa9d55032..a5ed28cd50 100644 --- a/server/src/main/java/com/vaadin/server/Constants.java +++ b/server/src/main/java/com/vaadin/server/Constants.java @@ -152,7 +152,7 @@ public interface Constants { @Deprecated static final String ERROR_NO_UI_FOUND = "No UIProvider returned a UI for the request."; - static final String DEFAULT_THEME_NAME = "reindeer"; + static final String DEFAULT_THEME_NAME = "valo"; static final String INVALID_SECURITY_KEY_MSG = "Invalid security key."; diff --git a/server/src/main/java/com/vaadin/server/LegacyApplication.java b/server/src/main/java/com/vaadin/server/LegacyApplication.java index 210520cfaa..b417c0f9ee 100644 --- a/server/src/main/java/com/vaadin/server/LegacyApplication.java +++ b/server/src/main/java/com/vaadin/server/LegacyApplication.java @@ -40,7 +40,7 @@ import com.vaadin.ui.UI; @Deprecated public abstract class LegacyApplication implements ErrorHandler { private LegacyWindow mainWindow; - private String theme; + private String theme = "reindeer"; private Map<String, LegacyWindow> legacyUINames = new HashMap<>(); @@ -105,6 +105,9 @@ public abstract class LegacyApplication implements ErrorHandler { /** * Sets the application's theme. * <p> + * The default theme for {@link LegacyApplication} is reindeer, unlike for + * {@link UI} the default theme is valo. + * <p> * Note that this theme can be overridden for a specific UI with * {@link VaadinSession#getThemeForUI(UI)}. Setting theme to be * <code>null</code> selects the default theme. For the available theme |