IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable. Fixed broken image link.

This commit is contained in:
Heng Sin Low 2013-03-15 11:38:07 +08:00
parent 0b179c8de1
commit 7ccfcac443
2 changed files with 7 additions and 4 deletions

View File

@ -462,17 +462,17 @@ public class WAcctViewer extends Window implements EventListener<Event>
forcePost.setVisible(false); forcePost.setVisible(false);
// Elaine 2009/07/29 // Elaine 2009/07/29
bZoom.setImage(ThemeManager.getThemeResource(ThemeManager.getThemeResource("images/Zoom16.png"))); bZoom.setImage(ThemeManager.getThemeResource("images/Zoom16.png"));
bZoom.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Zoom"))); bZoom.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Zoom")));
bZoom.setVisible(tabbedPane.getSelectedIndex() == 1); bZoom.setVisible(tabbedPane.getSelectedIndex() == 1);
bZoom.addEventListener(Events.ON_CLICK, this); bZoom.addEventListener(Events.ON_CLICK, this);
// //
bQuery.setImage(ThemeManager.getThemeResource(ThemeManager.getThemeResource("images/Refresh16.png"))); bQuery.setImage(ThemeManager.getThemeResource("images/Refresh16.png"));
bQuery.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Refresh"))); bQuery.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Refresh")));
bQuery.addEventListener(Events.ON_CLICK, this); bQuery.addEventListener(Events.ON_CLICK, this);
bExport.setImage(ThemeManager.getThemeResource(ThemeManager.getThemeResource("images/Export16.png"))); bExport.setImage(ThemeManager.getThemeResource("images/Export16.png"));
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export"))); bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
bExport.addEventListener(Events.ON_CLICK, this); bExport.addEventListener(Events.ON_CLICK, this);
bExport.setVisible(false); bExport.setVisible(false);

View File

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?component name="divarrow" macro-uri="divarrow.zul"?> <?component name="divarrow" macro-uri="divarrow.zul"?>
<zk> <zk>
<zscript><![CDATA[
var calendarIcon = org.adempiere.webui.theme.ThemeManager.getThemeResource("images/Calendar16.png");
]]></zscript>
<style src="calendar.css"/> <style src="calendar.css"/>
<calendars firstDayOfWeek="Monday" model="${cm}" mold="month" id="cal"> <calendars firstDayOfWeek="Monday" model="${cm}" mold="month" id="cal">
<toolbar sclass="calendar-toolbar"> <toolbar sclass="calendar-toolbar">
@ -13,7 +16,7 @@
<separator orient="vertical" spacing="2px"/> <separator orient="vertical" spacing="2px"/>
<label id="lblDate"/> <label id="lblDate"/>
<toolbarbutton id="btnRefresh" label="Refresh" class="refresh"/> <toolbarbutton id="btnRefresh" label="Refresh" class="refresh"/>
<toolbarbutton id="btnCal" image="/images/Calendar16.png"/> <toolbarbutton id="btnCal" image="${calendarIcon}"/>
</div> </div>
</hbox> </hbox>
</div> </div>