IDEMPIERE-3535 / thanks to Murilo - fixed a flaw on the rendering of Lock button
This commit is contained in:
parent
c922644b6f
commit
d7353f8e2a
|
@ -576,7 +576,13 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
||||||
{
|
{
|
||||||
this.btnLock.setPressed(locked);
|
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);
|
imgURL = ThemeManager.getThemeResource(imgURL);
|
||||||
this.btnLock.setImage(imgURL);
|
this.btnLock.setImage(imgURL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue