IDEMPIERE-3535 / thanks to Murilo - fixed a flaw on the rendering of Lock button

This commit is contained in:
Carlos Ruiz 2018-01-05 15:14:50 +01:00
parent c922644b6f
commit d7353f8e2a
1 changed files with 7 additions and 1 deletions

View File

@ -576,7 +576,13 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
{
this.btnLock.setPressed(locked);
String imgURL = "images/"+ (this.btnLock.isPressed() ? "LockX" : "Lock") + "24.png";
String size = Env.getContext(Env.getCtx(), "#ZK_Toolbar_Button_Size");
String suffix = "24.png";
if (!Util.isEmpty(size))
{
suffix = size + ".png";
}
String imgURL = "images/"+ (this.btnLock.isPressed() ? "LockX" : "Lock") + suffix;
imgURL = ThemeManager.getThemeResource(imgURL);
this.btnLock.setImage(imgURL);
}