IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable. Added theme preference for browser title.
This commit is contained in:
parent
70e8cadba7
commit
ea7788e2ab
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue