branding
- added ZK_LOGO_LARGE and ZK_LOGO_SMALL ( deprecated WEBUI_LOGOURL ) - added ZK_BROWSER_TITLE
This commit is contained in:
parent
a619628e8d
commit
b362b9a8f1
|
@ -57,7 +57,9 @@ public class HeaderPanel extends Panel implements EventListener
|
|||
|
||||
UserPanel userPanel = new UserPanel();
|
||||
|
||||
String logoURL = MSysConfig.getValue("WEBUI_LOGOURL", "/images/AD10030.png");
|
||||
String logoURL = MSysConfig.getValue("ZK_LOGO_SMALL", null);
|
||||
if (logoURL == null || logoURL.trim().length() == 0)
|
||||
logoURL = MSysConfig.getValue("WEBUI_LOGOURL", "/images/AD10030.png");
|
||||
image.setSrc(logoURL);
|
||||
image.addEventListener(Events.ON_CLICK, this);
|
||||
image.setStyle("cursor: pointer;");
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.adempiere.webui.component.Window;
|
|||
import org.adempiere.webui.session.SessionManager;
|
||||
import org.adempiere.webui.util.UserPreference;
|
||||
import org.adempiere.webui.window.LoginWindow;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
@ -97,7 +98,7 @@ public class LoginPanel extends Window implements EventListener
|
|||
Row logo = new Row();
|
||||
logo.setSpans("2");
|
||||
Image image = new Image();
|
||||
image.setSrc("images/logo.png");
|
||||
image.setSrc(MSysConfig.getValue("ZK_LOGO_LARGE", "images/logo.png"));
|
||||
logo.appendChild(image);
|
||||
Row rowUser = new Row();
|
||||
rowUser.setId("rowUser");
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.adempiere.webui.util.UserPreference;
|
|||
import org.adempiere.webui.window.LoginWindow;
|
||||
import org.compiere.db.CConnection;
|
||||
import org.compiere.model.MRole;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Language;
|
||||
|
@ -103,7 +104,7 @@ public class RolePanel extends Window implements EventListener
|
|||
Row logo = new Row();
|
||||
logo.setSpans("2");
|
||||
Image image = new Image();
|
||||
image.setSrc("images/logo.png");
|
||||
image.setSrc(MSysConfig.getValue("ZK_LOGO_LARGE", "images/logo.png"));
|
||||
logo.appendChild(image);
|
||||
|
||||
Row rowRole = new Row();
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.adempiere.webui.component.Tabs;
|
|||
import org.adempiere.webui.component.ToolBarButton;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.compiere.model.MUser;
|
||||
import org.compiere.util.CLogErrorBuffer;
|
||||
import org.compiere.util.CLogMgt;
|
||||
|
@ -76,7 +77,7 @@ public class AboutWindow extends Window implements EventListener {
|
|||
this.setWidth("500px");
|
||||
this.setHeight("450px");
|
||||
this.setPosition("center");
|
||||
this.setTitle("ADempiere Zk Web Client");
|
||||
this.setTitle(MSysConfig.getValue("ZK_BROWSER_TITLE", "Adempiere"));
|
||||
this.setClosable(true);
|
||||
this.setSizable(true);
|
||||
|
||||
|
@ -301,7 +302,10 @@ public class AboutWindow extends Window implements EventListener {
|
|||
vbox.setAlign("center");
|
||||
vbox.setPack("center");
|
||||
vbox.setParent(tabPanel);
|
||||
Image image = new Image("images/AD10030.png");
|
||||
String logoURL = MSysConfig.getValue("ZK_LOGO_SMALL", null);
|
||||
if (logoURL == null || logoURL.trim().length() == 0)
|
||||
logoURL = MSysConfig.getValue("WEBUI_LOGOURL", "/images/AD10030.png");
|
||||
Image image = new Image(logoURL);
|
||||
image.setParent(vbox);
|
||||
|
||||
Text text = new Text(Adempiere.getSubtitle());
|
||||
|
|
Loading…
Reference in New Issue