IDEMPIERE-4561 Font Icons not used in several points (#1169)

* IDEMPIERE-4561 Font Icons not used in several points #2

* IDEMPIERE-4561 Font Icons not used in several points #2
This commit is contained in:
Anozi Mada 2022-02-08 10:02:23 +07:00 committed by GitHub
parent fc5b2eebf2
commit 6a16667792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 110 additions and 46 deletions

View File

@ -157,6 +157,9 @@ implements IFormController, EventListener<Event>, WTableModelListener, ValueChan
bZoomDoc.setId(bZoomDoc.getId() + "Doc"); // to avoid 'org.zkoss.zk.ui.UiException: Not unique in the ID space of <Grid null>: Zoom' bZoomDoc.setId(bZoomDoc.getId() + "Doc"); // to avoid 'org.zkoss.zk.ui.UiException: Not unique in the ID space of <Grid null>: Zoom'
bZoomDoc.setLabel(Msg.translate(Env.getCtx(), "ZoomDocument")); bZoomDoc.setLabel(Msg.translate(Env.getCtx(), "ZoomDocument"));
bSelect.setMode("toggle"); bSelect.setMode("toggle");
if (ThemeManager.isUseFontIconForImage())
bSelect.setIconSclass("z-icon-SelectAll");
else
bSelect.setImage(ThemeManager.getThemeResource("images/SelectAll24.png")); bSelect.setImage(ThemeManager.getThemeResource("images/SelectAll24.png"));
bSelect.setTooltiptext(Msg.getCleanMsg(Env.getCtx(), "SelectAll")); bSelect.setTooltiptext(Msg.getCleanMsg(Env.getCtx(), "SelectAll"));
bSelect.addEventListener(Events.ON_CLICK, this); bSelect.addEventListener(Events.ON_CLICK, this);

View File

@ -126,10 +126,17 @@ public class WTreeMaintenance extends TreeMaintenance implements IFormController
*/ */
private void jbInit () throws Exception private void jbInit () throws Exception
{ {
if (ThemeManager.isUseFontIconForImage()) {
bAddAll.setIconSclass("z-icon-FastBack");
bAdd.setIconSclass("z-icon-StepBack");
bDelete.setIconSclass("z-icon-StepForward");
bDeleteAll.setIconSclass("z-icon-FastForward");
} else {
bAddAll.setImage(ThemeManager.getThemeResource("images/FastBack24.png")); bAddAll.setImage(ThemeManager.getThemeResource("images/FastBack24.png"));
bAdd.setImage(ThemeManager.getThemeResource("images/StepBack24.png")); bAdd.setImage(ThemeManager.getThemeResource("images/StepBack24.png"));
bDelete.setImage(ThemeManager.getThemeResource("images/StepForward24.png")); bDelete.setImage(ThemeManager.getThemeResource("images/StepForward24.png"));
bDeleteAll.setImage(ThemeManager.getThemeResource("images/FastForward24.png")); bDeleteAll.setImage(ThemeManager.getThemeResource("images/FastForward24.png"));
}
ZKUpdateUtil.setWidth(form,"100%"); ZKUpdateUtil.setWidth(form,"100%");
ZKUpdateUtil.setHeight(form, "100%"); ZKUpdateUtil.setHeight(form, "100%");

View File

@ -470,6 +470,9 @@ public class DashboardController implements EventListener<Event> {
//link to open performance detail //link to open performance detail
Div div = new Div(); Div div = new Div();
Toolbarbutton link = new Toolbarbutton(); Toolbarbutton link = new Toolbarbutton();
if (ThemeManager.isUseFontIconForImage())
link.setIconSclass("z-icon-Zoom");
else
link.setImage(ThemeManager.getThemeResource("images/Zoom16.png")); link.setImage(ThemeManager.getThemeResource("images/Zoom16.png"));
link.setAttribute("PA_Goal_ID", PA_Goal_ID); link.setAttribute("PA_Goal_ID", PA_Goal_ID);
link.addEventListener(Events.ON_CLICK, new EventListener<Event>() { link.addEventListener(Events.ON_CLICK, new EventListener<Event>() {

View File

@ -396,6 +396,9 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
}; };
toolbar.appendChild(showHeader); toolbar.appendChild(showHeader);
if (ThemeManager.isUseFontIconForImage())
showHeader.setIconSclass("z-icon-ThreeLineMenu");
else
showHeader.setImage(ThemeManager.getThemeResource(IMAGES_THREELINE_MENU_PNG)); showHeader.setImage(ThemeManager.getThemeResource(IMAGES_THREELINE_MENU_PNG));
showHeader.addEventListener(Events.ON_CLICK, this); showHeader.addEventListener(Events.ON_CLICK, this);
showHeader.setSclass("window-container-toolbar-btn"); showHeader.setSclass("window-container-toolbar-btn");
@ -403,6 +406,9 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
max = new ToolBarButton(); max = new ToolBarButton();
toolbar.appendChild(max); toolbar.appendChild(max);
if (ThemeManager.isUseFontIconForImage())
max.setIconSclass("z-icon-Collapsing");
else
max.setImage(ThemeManager.getThemeResource(IMAGES_UPARROW_PNG)); max.setImage(ThemeManager.getThemeResource(IMAGES_UPARROW_PNG));
max.addEventListener(Events.ON_CLICK, this); max.addEventListener(Events.ON_CLICK, this);
max.setSclass("window-container-toolbar-btn"); max.setSclass("window-container-toolbar-btn");
@ -428,6 +434,9 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
if (mobile) { if (mobile) {
westBtn = new ToolBarButton(); westBtn = new ToolBarButton();
if (ThemeManager.isUseFontIconForImage())
westBtn.setIconSclass("z-icon-ThreeLineMenu");
else
westBtn.setImage(ThemeManager.getThemeResource(IMAGES_THREELINE_MENU_PNG)); westBtn.setImage(ThemeManager.getThemeResource(IMAGES_THREELINE_MENU_PNG));
westBtn.addEventListener(Events.ON_CLICK, this); westBtn.addEventListener(Events.ON_CLICK, this);
westBtn.setSclass("window-container-toolbar-btn"); westBtn.setSclass("window-container-toolbar-btn");
@ -721,6 +730,9 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
protected void restoreHeader() { protected void restoreHeader() {
layout.getNorth().setVisible(true); layout.getNorth().setVisible(true);
if (ThemeManager.isUseFontIconForImage())
max.setIconSclass("z-icon-Collapsing");
else
max.setImage(ThemeManager.getThemeResource(IMAGES_UPARROW_PNG)); max.setImage(ThemeManager.getThemeResource(IMAGES_UPARROW_PNG));
showHeader.setVisible(false); showHeader.setVisible(false);
pnlHead.detach(); pnlHead.detach();
@ -731,6 +743,9 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
protected void collapseHeader() { protected void collapseHeader() {
layout.getNorth().setVisible(false); layout.getNorth().setVisible(false);
if (ThemeManager.isUseFontIconForImage())
max.setIconSclass("z-icon-Expanding");
else
max.setImage(ThemeManager.getThemeResource(IMAGES_DOWNARROW_PNG)); max.setImage(ThemeManager.getThemeResource(IMAGES_DOWNARROW_PNG));
showHeader.setVisible(true); showHeader.setVisible(true);
pnlHead.detach(); pnlHead.detach();

View File

@ -83,6 +83,9 @@ public class MenuTreeSearchPanel extends TreeSearchPanel {
protected void createOpenButton() { protected void createOpenButton() {
openBtn = new Toolbarbutton(); openBtn = new Toolbarbutton();
if (ThemeManager.isUseFontIconForImage())
openBtn.setIconSclass("z-icon-Open");
else
openBtn.setImage(ThemeManager.getThemeResource("images/Open16.png")); openBtn.setImage(ThemeManager.getThemeResource("images/Open16.png"));
openBtn.setSclass("menu-search-toggle-on"); openBtn.setSclass("menu-search-toggle-on");
openBtn.setDisabled(true); openBtn.setDisabled(true);
@ -102,6 +105,9 @@ public class MenuTreeSearchPanel extends TreeSearchPanel {
protected void createNewButton() { protected void createNewButton() {
newBtn = new Toolbarbutton(); newBtn = new Toolbarbutton();
if (ThemeManager.isUseFontIconForImage())
newBtn.setIconSclass("z-icon-New");
else
newBtn.setImage(ThemeManager.getThemeResource("images/New16.png")); newBtn.setImage(ThemeManager.getThemeResource("images/New16.png"));
newBtn.setSclass("menu-search-toggle-off"); newBtn.setSclass("menu-search-toggle-off");
newBtn.addEventListener(Events.ON_CLICK, new EventListener<Event>() { newBtn.addEventListener(Events.ON_CLICK, new EventListener<Event>() {

View File

@ -16,6 +16,9 @@
.z-icon-Calculator:before { .z-icon-Calculator:before {
content: "\f1ec"; content: "\f1ec";
} }
.z-icon-Calendar:before {
content: "\f073";
}
.z-icon-Cancel:before { .z-icon-Cancel:before {
content: "\f00d"; content: "\f00d";
} }
@ -26,9 +29,15 @@
.z-icon-Chat:before { .z-icon-Chat:before {
content: "\f0e6"; content: "\f0e6";
} }
.z-icon-Collapsing:before {
content: "\f102";
}
.z-icon-Copy:before { .z-icon-Copy:before {
content: "\f0c5"; content: "\f0c5";
} }
.z-icon-CSVImport:before {
content: "\f0f6";
}
.z-icon-Customize:before { .z-icon-Customize:before {
content: "\f0db"; content: "\f0db";
} }
@ -57,9 +66,18 @@
.z-icon-Expand:before { .z-icon-Expand:before {
content: "\f0d7"; content: "\f0d7";
} }
.z-icon-Expanding:before {
content: "\f103";
}
.z-icon-Export:before { .z-icon-Export:before {
content: "\f0ed"; content: "\f0ed";
} }
.z-icon-FastBack:before {
content: "\f049";
}
.z-icon-FastForward:before {
content: "\f050";
}
.z-icon-FieldSuggestion:before { .z-icon-FieldSuggestion:before {
content: "\f0e5"; content: "\f0e5";
} }
@ -78,6 +96,9 @@
.z-icon-Form:before { .z-icon-Form:before {
content: "\f00b"; content: "\f00b";
} }
.z-icon-GetMail:before {
content: "\f0e0";
}
.z-icon-Help:before { .z-icon-Help:before {
content: "\f059"; content: "\f059";
} }
@ -117,6 +138,9 @@
.z-icon-InfoInvoice:before { .z-icon-InfoInvoice:before {
content: "\f14b"; content: "\f14b";
} }
.z-icon-InfoLocator:before {
content: "\f1b2";
}
.z-icon-InfoOrder:before { .z-icon-InfoOrder:before {
content: "\f0c9"; content: "\f0c9";
} }
@ -132,6 +156,9 @@
.z-icon-InfoSchedule:before { .z-icon-InfoSchedule:before {
content: "\f017"; content: "\f017";
} }
.z-icon-InfoShipment:before {
content: "\f0d1";
}
.z-icon-LastRecord:before { .z-icon-LastRecord:before {
content: "\f051"; content: "\f051";
} }
@ -214,6 +241,9 @@
.z-icon-Process:before { .z-icon-Process:before {
content: "\f013"; content: "\f013";
} }
.z-icon-ProcessMenu:before {
content: "\f085";
}
.z-icon-Product:before { .z-icon-Product:before {
content: "\f07a"; content: "\f07a";
} }
@ -223,6 +253,9 @@
color: green; color: green;
font-family: FontAwesome; font-family: FontAwesome;
} }
.z-icon-QuickForm:before {
content: "\f0ae";
}
.z-icon-Refresh:before { .z-icon-Refresh:before {
content: "\f021"; content: "\f021";
} }
@ -244,21 +277,51 @@
.z-icon-Search:before { .z-icon-Search:before {
content: "\f002"; content: "\f002";
} }
.z-icon-SelectAll:before {
content: "\f248";
}
.z-icon-SendMail:before { .z-icon-SendMail:before {
content: "\f003"; content: "\f003";
} }
.z-icon-SequenceChange:before {
content: "\f14d";
}
.z-icon-Share:before {
content: "\f0ac";
}
.z-icon-ShowMore:before {
content: "\f142";
}
.z-icon-Single:before { .z-icon-Single:before {
content: "\f044"; content: "\f044";
} }
.z-icon-StepBack:before {
content: "\f04a";
}
.z-icon-StepForward:before {
content: "\f04e";
}
.z-icon-Task:before { .z-icon-Task:before {
content: "\f0ae"; content: "\f0ae";
} }
.z-icon-ThreeLineMenu:before {
content: "\f0c9";
}
.z-icon-Translate:before {
content: "\f1ab";
}
.z-icon-Trash:before { .z-icon-Trash:before {
content: "\f014"; content: "\f014";
} }
.z-icon-TreeFavNodeAdd:before {
content: "\f07b";
}
.z-icon-UnprocessedDoc:before { .z-icon-UnprocessedDoc:before {
content: "\f044"; content: "\f044";
} }
.z-icon-UnSort:before {
content: "\f074";
}
.z-icon-VPreference:before { .z-icon-VPreference:before {
content: "\f039"; content: "\f039";
} }
@ -277,36 +340,3 @@
.z-icon-ZoomAcross:before { .z-icon-ZoomAcross:before {
content: "\f00e"; content: "\f00e";
} }
.z-icon-CSVImport:before {
content: "\f0f6";
}
.z-icon-ShowMore:before {
content: "\f142";
}
.z-icon-Share:before {
content: "\f0ac";
}
.z-icon-QuickForm:before {
content: "\f0ae";
}
.z-icon-UnSort:before {
content: "\f074";
}
.z-icon-GetMail:before {
content: "\f0e0";
}
.z-icon-Calendar:before {
content: "\f073";
}
.z-icon-TreeFavNodeAdd:before {
content: "\f07b";
}
.z-icon-Expanding:before {
content: "\f103";
}
.z-icon-SequenceChange:before {
content: "\f14d";
}
.z-icon-Translate:before {
content: "\f1ab";
}