IDEMPIERE-181 Zk6: Fixed toolbar appearance
This commit is contained in:
parent
9febc774f1
commit
536955c281
|
@ -47,13 +47,18 @@ public class ToolBarButton extends org.zkoss.zul.Toolbarbutton
|
|||
|
||||
public void setPressed(boolean pressed) {
|
||||
this.pressed = pressed; // Elaine 2008/12/09
|
||||
|
||||
if (!getMode().equals("toggle"))
|
||||
setMode("toggle");
|
||||
|
||||
if (!isDisabled()) {
|
||||
if (pressed) {
|
||||
LayoutUtils.addSclass("depressed", this);
|
||||
} else {
|
||||
if (this.getSclass() != null && this.getSclass().indexOf("depressed") >= 0)
|
||||
this.setSclass(this.getSclass().replace("depressed", ""));
|
||||
}
|
||||
// if (pressed) {
|
||||
// LayoutUtils.addSclass("depressed", this);
|
||||
// } else {
|
||||
// if (this.getSclass() != null && this.getSclass().indexOf("depressed") >= 0)
|
||||
// this.setSclass(this.getSclass().replace("depressed", ""));
|
||||
// }
|
||||
setChecked(pressed);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1288,11 +1288,12 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
|||
}
|
||||
if (canHaveAttachment)
|
||||
{
|
||||
toolbar.enableAttachment(true);
|
||||
toolbar.getButton("Attachment").setPressed(curTab.hasAttachment());
|
||||
toolbar.enableAttachment(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
toolbar.getButton("Attachment").setPressed(false);
|
||||
toolbar.enableAttachment(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -109,7 +109,11 @@ html,body {
|
|||
padding: 0px;
|
||||
}
|
||||
|
||||
.toolbar-button img {
|
||||
.z-toolbarbutton-cnt {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.toolbar-button .z-toolbarbutton-body .z-toolbarbutton-cnt img {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
padding: 0px 1px 0px 1px;
|
||||
|
@ -118,7 +122,7 @@ html,body {
|
|||
border-color: transparent;
|
||||
}
|
||||
|
||||
.embedded-toolbar-button img {
|
||||
.embedded-toolbar-button .z-toolbarbutton-body .z-toolbarbutton-cnt img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
padding: 0px 1px 0px 1px;
|
||||
|
@ -128,12 +132,12 @@ html,body {
|
|||
}
|
||||
|
||||
.depressed img {
|
||||
border-style: inset;
|
||||
/* border-style: inset;*/
|
||||
border-width: 1px;
|
||||
border-color: #9CBDFF;
|
||||
background-color: #C4DCFB;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
/* -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;*/
|
||||
padding: 0px 1px 0px 1px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue