From 172d7a935c1829c5e0b95a6b8be6ae43d99c10c0 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 15 May 2009 08:07:44 +0000 Subject: Additional fix for #2954 - Change default theme to reindeer svn changeset:7824/svn branch:6.0 --- src/com/vaadin/ui/LoginForm.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/com/vaadin/ui/LoginForm.java') diff --git a/src/com/vaadin/ui/LoginForm.java b/src/com/vaadin/ui/LoginForm.java index 3a8103e1a6..6e2c06c24a 100644 --- a/src/com/vaadin/ui/LoginForm.java +++ b/src/com/vaadin/ui/LoginForm.java @@ -13,6 +13,7 @@ import com.vaadin.terminal.ApplicationResource; import com.vaadin.terminal.DownloadStream; import com.vaadin.terminal.ParameterHandler; import com.vaadin.terminal.URIHandler; +import com.vaadin.terminal.gwt.server.AbstractApplicationServlet; /** * LoginForm is a Toolkit component to handle common problem among Ajax @@ -125,12 +126,14 @@ public class LoginForm extends CustomComponent { */ protected byte[] getLoginHTML() { + String defaultThemeName = AbstractApplicationServlet.getDefaultTheme(); + String theme = getApplication().getMainWindow().getTheme(); String guessedThemeUri = getApplication().getURL() + "VAADIN/themes/" - + (theme == null ? "default" : theme) + "/styles.css"; + + (theme == null ? defaultThemeName : theme) + "/styles.css"; String guessedThemeUri2 = getApplication().getURL() - + "../VAADIN/themes/" + (theme == null ? "default" : theme) - + "/styles.css"; + + "../VAADIN/themes/" + + (theme == null ? defaultThemeName : theme) + "/styles.css"; String appUri = getApplication().getURL().toString(); -- cgit v1.2.3