IDEMPIERE-1226 Page Optimization: Specify image dimensions.

This commit is contained in:
Heng Sin Low 2013-08-01 01:02:00 +08:00
parent 5a661371e7
commit e355e73eff
7 changed files with 64 additions and 3 deletions

View File

@ -95,7 +95,7 @@ public class DPFavourites extends DashboardPanel implements EventListener<Event>
// Elaine 2008/07/24 // Elaine 2008/07/24
Image img = new Image(ThemeManager.getThemeResource("images/Delete24.png")); Image img = new Image(ThemeManager.getThemeResource("images/Delete24.png"));
favToolbar.appendChild(img); favToolbar.appendChild(img);
img.setStyle("text-align: right"); img.setStyle("text-align: right; width:24px; height:24px;");
img.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Delete"))); img.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Delete")));
img.setDroppable(DELETE_FAV_DROPPABLE); img.setDroppable(DELETE_FAV_DROPPABLE);
img.addEventListener(Events.ON_DROP, this); img.addEventListener(Events.ON_DROP, this);

View File

@ -101,14 +101,14 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
Image imgr = new Image(ThemeManager.getThemeResource("images/Refresh24.png")); Image imgr = new Image(ThemeManager.getThemeResource("images/Refresh24.png"));
recentItemsToolbar.appendChild(imgr); recentItemsToolbar.appendChild(imgr);
imgr.setStyle("text-align: right; cursor: pointer;"); imgr.setStyle("text-align: right; cursor: pointer; width:24px; height:24px;");
imgr.setTooltiptext(Util.cleanAmp(Msg.getMsg(ctx, "Refresh"))); imgr.setTooltiptext(Util.cleanAmp(Msg.getMsg(ctx, "Refresh")));
imgr.addEventListener(Events.ON_CLICK, this); imgr.addEventListener(Events.ON_CLICK, this);
// //
Image img = new Image(ThemeManager.getThemeResource("images/Delete24.png")); Image img = new Image(ThemeManager.getThemeResource("images/Delete24.png"));
recentItemsToolbar.appendChild(img); recentItemsToolbar.appendChild(img);
img.setStyle("text-align: right;"); img.setStyle("text-align: right; width:24px; height:24px;");
img.setDroppable(DELETE_RECENTITEMS_DROPPABLE); img.setDroppable(DELETE_RECENTITEMS_DROPPABLE);
img.setTooltiptext(Util.cleanAmp(Msg.getMsg(ctx, "Delete"))); img.setTooltiptext(Util.cleanAmp(Msg.getMsg(ctx, "Delete")));
img.addEventListener(Events.ON_DROP, this); img.addEventListener(Events.ON_DROP, this);

View File

@ -264,6 +264,7 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
toolbar.appendChild(max); toolbar.appendChild(max);
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.setStyle("cursor: pointer; border: 1px solid transparent; padding: 2px;"); max.setStyle("cursor: pointer; border: 1px solid transparent; padding: 2px;");
return layout; return layout;

View File

@ -211,6 +211,7 @@ public abstract class AbstractMenuPanel extends Panel implements EventListener<E
public Toolbarbutton createNewButton() public Toolbarbutton createNewButton()
{ {
Toolbarbutton newBtn = new Toolbarbutton(null, ThemeManager.getThemeResource("images/New10.png")); Toolbarbutton newBtn = new Toolbarbutton(null, ThemeManager.getThemeResource("images/New10.png"));
newBtn.setSclass("menu-href-newbtn");
newBtn.setStyle("padding-left:3px; margin-bottom:5px"); newBtn.setStyle("padding-left:3px; margin-bottom:5px");
return newBtn; return newBtn;
} }

View File

@ -144,6 +144,7 @@ public class TreeSearchPanel extends Panel implements EventListener<Event>, Tree
cmbSearch = new AutoComplete(); cmbSearch = new AutoComplete();
cmbSearch.setAutodrop(true); cmbSearch.setAutodrop(true);
cmbSearch.setId("treeSearchCombo"); cmbSearch.setId("treeSearchCombo");
cmbSearch.setSclass("tree-search-combo");
cmbSearch.addEventListener(Events.ON_OK, this); cmbSearch.addEventListener(Events.ON_OK, this);
cmbSearch.addEventListener(Events.ON_SELECT, new EventListener<SelectEvent<Comboitem,Object>>() { cmbSearch.addEventListener(Events.ON_SELECT, new EventListener<SelectEvent<Comboitem,Object>>() {

View File

@ -137,12 +137,34 @@ html,body {
.menu-href img { .menu-href img {
padding: 2px; padding: 2px;
padding-right: 4px; padding-right: 4px;
width: 16px;
height: 16px;
}
.menu-href-newbtn img {
width: 10px;
height: 10px;
}
.window-container-toolbar-btn .z-toolbarbutton-cnt img {
width: 22px;
height: 22px;
}
.tree-search-combo .z-comboitem-img img {
width: 16px;
height: 16px;
} }
.fav-new-btn { .fav-new-btn {
margin-left: 4px; margin-left: 4px;
} }
.fav-new-btn img {
height: 16px;
width: 16px;
}
.disableFilter img { .disableFilter img {
opacity: 0.2; opacity: 0.2;
filter: progid : DXImageTransform . Microsoft . Alpha(opacity = 20); filter: progid : DXImageTransform . Microsoft . Alpha(opacity = 20);
@ -173,6 +195,11 @@ html,body {
height: 22px; height: 22px;
} }
.breadcrumb-toolbar-button img {
width: 22px;
height: 22px;
}
.breadcrumb-record-info { .breadcrumb-record-info {
font-size: 12px; font-size: 12px;
} }
@ -622,6 +649,10 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
width: 100%; width: 100%;
} }
.favourites-box .z-toolbar-start {
float: right;
}
.recentitems-box { .recentitems-box {
width: 90%; width: 90%;
margin: auto; margin: auto;
@ -632,6 +663,10 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
display: block; display: block;
padding: 2px 0px; padding: 2px 0px;
} }
.recentitems-box .z-toolbar-start {
float: right;
}
.views-box { .views-box {
width: 90%; width: 90%;
@ -648,6 +683,11 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
padding: 2px 0px; padding: 2px 0px;
} }
.views-box .link img {
height: 16px;
width: 16px;
}
.activities-box { .activities-box {
width: 90%; width: 90%;
margin: auto; margin: auto;
@ -771,6 +811,11 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
display: inline-block; display: inline-block;
} }
.adwindow-detailpane-toolbar .z-toolbarbutton img {
width: 16px;
height: 16px;
}
.adwindow-detailpane-toolbar .z-toolbar-body .docstatus-normal, .adwindow-detailpane-toolbar .z-toolbar-body .docstatus-normal,
.adwindow-detailpane-toolbar .z-toolbar-body .docstatus-error { .adwindow-detailpane-toolbar .z-toolbar-body .docstatus-error {
padding-left: 4px; padding-left: 4px;
@ -1543,6 +1588,10 @@ font-size: 0;
padding: 1px 4px 1px 4px; padding: 1px 4px 1px 4px;
} }
.menu-search-toggle-on img, .menu-search-toggle-off img {
height: 16px;
width: 16px;
}
<%-- workaround for http://jira.idempiere.com/browse/IDEMPIERE-692 --%> <%-- workaround for http://jira.idempiere.com/browse/IDEMPIERE-692 --%>
.z-combobox-pp { .z-combobox-pp {
max-height: 200px; max-height: 200px;
@ -1595,6 +1644,11 @@ table.z-vbox > tbody > tr > td > table {
width: 120px !important; width: 120px !important;
} }
.performance-indicator img {
height: 120px;
width: 120px;
}
.window-view-pi .performance-indicator { .window-view-pi .performance-indicator {
width: 180px !important; width: 180px !important;
} }

View File

@ -96,6 +96,10 @@
margin: -3px; margin: -3px;
padding-top: 5px; padding-top: 5px;
} }
.calendar-toolbar .z-toolbarbutton img {
height: 16px;
width: 16px;
}
.gecko2 .calendar-toolbar { .gecko2 .calendar-toolbar {
margin: -3px; margin: -3px;
} }