IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable. Added theme preference for browser title.

This commit is contained in:
Heng Sin Low 2013-06-19 10:58:05 +08:00
parent 70e8cadba7
commit ea7788e2ab
2 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,8 @@ public final class ThemeManager {
* @return title text for the browser window
*/
public static String getBrowserTitle() {
return MSysConfig.getValue(MSysConfig.ZK_BROWSER_TITLE, AdempiereWebUI.APP_NAME);
String s = Env.getContext(Env.getCtx(), "#ZK_BROWSER_TITLE");
return Util.isEmpty(s) ? MSysConfig.getValue(MSysConfig.ZK_BROWSER_TITLE, AdempiereWebUI.APP_NAME) : s;
}
/**

View File

@ -10,6 +10,7 @@
import org.compiere.util.Env;
Env.setContext(Env.getCtx(), "#ZK_Toolbar_Button_Size", "24");
Env.setContext(Env.getCtx(), "#ZK_BROWSER_TITLE", "iDempiere");
]]>
</zscript>
</zk>