Heng Sin Low 2009-05-18 05:01:19 +00:00
parent f28005bb5b
commit 4c56c55caf
4 changed files with 12 additions and 3 deletions

View File

@ -56,4 +56,7 @@ public interface ITheme {
public static final String LOGIN_LOGO_IMAGE = "/images/login-logo.png";
public static final String HEADER_LOGO_IMAGE = "/images/header-logo.png";
public static final String BROWSER_ICON_IMAGE= "/images/icon.png";
//stylesheet url
public static final String THEME_STYLESHEET = "/css/theme.css.dsp";
}

View File

@ -51,6 +51,13 @@ public final class ThemeManager {
return MSysConfig.getValue(ITheme.ZK_THEME, ITheme.ZK_THEME_DEFAULT);
}
/**
* @return url of theme stylesheet
*/
public static String getStyleSheet() {
return ITheme.THEME_PATH_PREFIX + getTheme() + ITheme.THEME_STYLESHEET;
}
/**
* @return title text for the browser window
*/

View File

@ -5,7 +5,7 @@ Copyright (C) 2007 Ashley G Ramdass.
<?page style="height:100%"?>
<?init zscript="theme.zs" ?>
<?link rel="icon" type="image/png" href="${browserIcon}"?>
<?link rel="stylesheet" type="text/css" href="/theme/${theme}/css/theme.css.dsp"?>
<?link rel="stylesheet" type="text/css" href="${themeStyleSheet}"?>
<zk>
<window use="org.adempiere.webui.AdempiereWebUI"/>
</zk>

View File

@ -1,4 +1,3 @@
import org.compiere.model.MSysConfig;
import org.adempiere.webui.theme.ThemeManager;
var theme = MSysConfig.getValue("ZK_THEME", "default");
var themeStyleSheet = ThemeManager.getStyleSheet();
var browserIcon = ThemeManager.getBrowserIcon();