IDEMPIERE-4084 Minor bug - menuitem icon not centered vertically

This commit is contained in:
Diego Ruiz 2020-02-20 15:31:37 +01:00 committed by Carlos Ruiz
parent af5cfcb0e8
commit 600ab3556b
2 changed files with 7 additions and 4 deletions

View File

@ -374,7 +374,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
item.setImageContent(button.getImageContent());
else if (ThemeManager.isUseFontIconForImage()) {
item.setIconSclass(button.getIconSclass());
LayoutUtils.addSclass("font-icon-toolbar-button", item);
LayoutUtils.addSclass("font-icon-menuitem", item);
}
item.setId(MNITMPREFIX+button.getName());
item.setValue(button.getName());
@ -683,7 +683,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
LayoutUtils.addSclass("font-icon-toolbar-button", this.btnLock);
if (menuItems.get(btnLock) != null) {
menuItems.get(btnLock).setIconSclass(iconSclass);
LayoutUtils.addSclass("font-icon-toolbar-button", menuItems.get(btnLock));
LayoutUtils.addSclass("font-icon-menuitem", menuItems.get(btnLock));
}
}
else
@ -1100,10 +1100,10 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
getButton(buttonName).setPressed(pressed);
if (menuItems.get(getButton(buttonName)) != null) {
if (pressed)
menuItems.get(getButton(buttonName)).setSclass("z-toolbarbutton-checked");
menuItems.get(getButton(buttonName)).setSclass("z-toolbarbutton-checked font-icon-menuitem");
else {
menuItems.get(getButton(buttonName)).setClass("");
menuItems.get(getButton(buttonName)).setClass("z-menu-item");
menuItems.get(getButton(buttonName)).setClass("font-icon-menuitem z-menu-item");
}
}
}

View File

@ -92,3 +92,6 @@
.font-icon-toolbar-button .z-toolbarbutton-content {
color: inherit;
}
.font-icon-menuitem i {
vertical-align: middle;
}