IDEMPIERE-3535 Implement font icon theme / integrate fix from Murilo (muriloht) for the lock button
This commit is contained in:
parent
caf3ca2367
commit
391b57de2a
|
@ -587,6 +587,14 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
||||||
{
|
{
|
||||||
this.btnLock.setPressed(locked);
|
this.btnLock.setPressed(locked);
|
||||||
|
|
||||||
|
if (ThemeManager.isUseFontIconForImage())
|
||||||
|
{
|
||||||
|
String iconSclass = "z-icon-" + (this.btnLock.isPressed() ? "lock" : "unlock") ;
|
||||||
|
this.btnLock.setIconSclass(iconSclass);
|
||||||
|
LayoutUtils.addSclass("font-icon-toolbar-button", this.btnLock);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
String size = Env.getContext(Env.getCtx(), "#ZK_Toolbar_Button_Size");
|
String size = Env.getContext(Env.getCtx(), "#ZK_Toolbar_Button_Size");
|
||||||
String suffix = "24.png";
|
String suffix = "24.png";
|
||||||
if (!Util.isEmpty(size))
|
if (!Util.isEmpty(size))
|
||||||
|
@ -597,6 +605,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
||||||
imgURL = ThemeManager.getThemeResource(imgURL);
|
imgURL = ThemeManager.getThemeResource(imgURL);
|
||||||
this.btnLock.setImage(imgURL);
|
this.btnLock.setImage(imgURL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void enablePostIt(boolean enabled)
|
public void enablePostIt(boolean enabled)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue