IDEMPIERE-562 Zk: Add system property override for active theme.

This commit is contained in:
Heng Sin Low 2013-01-18 13:57:35 +08:00
parent 3e47b5701e
commit e4a7fdfbd0
1 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ package org.adempiere.webui.theme;
import org.adempiere.webui.AdempiereWebUI;
import org.compiere.model.MSysConfig;
import org.compiere.util.Util;
/**
*
@ -48,7 +49,8 @@ public final class ThemeManager {
* @return name of active theme
*/
public static String getTheme() {
return MSysConfig.getValue(ITheme.ZK_THEME, ITheme.ZK_THEME_DEFAULT);
String theme = System.getProperty("ZK_THEME");
return Util.isEmpty(theme) ? MSysConfig.getValue(ITheme.ZK_THEME, ITheme.ZK_THEME_DEFAULT) : theme;
}
/**