IDEMPIERE-369 Master Detail layout improvements. 1) Fixed grid group not using the active theme. 2) Make cleaner the separation between header, left pane, desktop tabbox and detail detailbox. 3) Simplify the look of desktop and left column dashboard widget - less image, solid line style. 4) Use inset shadow for checked toolbar button.

This commit is contained in:
Heng Sin Low 2012-10-14 09:28:35 +08:00
parent 91786b1e16
commit e915e766b6
5 changed files with 76 additions and 66 deletions

View File

@ -25,17 +25,17 @@ public class Group extends org.zkoss.zul.Group {
public Group() { public Group() {
super(); super();
setSclass("z-group"); setZclass("z-group");
} }
public Group(String label) { public Group(String label) {
super(label); super(label);
setSclass("z-group"); setZclass("z-group");
} }
public <T> Group(String label, T value) { public <T> Group(String label, T value) {
super(label, value); super(label, value);
setSclass("z-group"); setZclass("z-group");
} }
public String getLabel() { public String getLabel() {
@ -101,9 +101,10 @@ public class Group extends org.zkoss.zul.Group {
private void init() private void init()
{ {
setSclass("z-group-cnt"); setZclass("z-group-cnt");
img = new Image(); img = new Image();
img.setZclass("z-group-img");
appendChild(img); appendChild(img);
img.addEventListener(Events.ON_CLICK, this); img.addEventListener(Events.ON_CLICK, this);

View File

@ -115,7 +115,6 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
pnlHead.setParent(n); pnlHead.setParent(n);
West w = new West(); West w = new West();
w.setTitle(" ");
w.setId("desktop-left-column"); w.setId("desktop-left-column");
layout.appendChild(w); layout.appendChild(w);
w.setSclass("desktop-left-column"); w.setSclass("desktop-left-column");
@ -146,6 +145,7 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
homeTab = new Tabpanel(); homeTab = new Tabpanel();
windowContainer.addWindow(homeTab, Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Home")), false); windowContainer.addWindow(homeTab, Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Home")), false);
homeTab.getLinkedTab().setSclass("desktop-hometab"); homeTab.getLinkedTab().setSclass("desktop-hometab");
homeTab.setSclass("desktop-home-tabpanel");
BusyDialog busyDialog = new BusyDialog(); BusyDialog busyDialog = new BusyDialog();
busyDialog.setShadow(false); busyDialog.setShadow(false);
homeTab.appendChild(busyDialog); homeTab.appendChild(busyDialog);

View File

@ -112,7 +112,8 @@ html,body {
.desktop-header { .desktop-header {
background-color: #F4F4F4; background-color: #F4F4F4;
width: 100%; width: 100%;
height: 38px; height: 35px;
border-bottom: 1px solid #C5C5C5;
} }
.desktop-header-font { .desktop-header-font {
@ -211,7 +212,7 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
.desktop-tabbox { .desktop-tabbox {
padding-top: 0px; padding-top: 0px;
background-color: #F4F4F4; background-color: #E4E4E4;
} }
.desktop-tabbox .z-tab { .desktop-tabbox .z-tab {
@ -222,6 +223,11 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
border: none; border: none;
} }
.desktop-center {
padding-top: 4px;
background-color: #E4E4E4;
}
.desktop-tabpanel { .desktop-tabpanel {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -242,20 +248,18 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
.desktop-left-column { .desktop-left-column {
width: 300px; width: 300px;
border: none; border: none;
background-color: #F4F4F4; background-color: #E4E4E4;
padding-top: 4px;
} }
.desktop-left-column + .z-west-splt { .desktop-left-column + .z-west-splt {
border-top: 1px solid #c5c5c5; border-top: none;
border-right: 1px solid #c5c5c5; border-right: 1px solid #c5c5c5;
} border-left: 1px solid #c5c5c5;
.desktop-left-column + .z-west-splt .z-west-splt-btn {
display: none;
} }
.desktop-left-column .z-west-body { .desktop-left-column .z-west-body {
border-right: 1px solid #c5c5c5; border-right: none;
} }
.desktop-left-column .z-west-header { .desktop-left-column .z-west-header {
@ -267,7 +271,7 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
} }
.desktop-hometab { .desktop-hometab {
margin-left: 2px !important; margin-left: 4px !important;
} }
.desktop-menu-popup { .desktop-menu-popup {
@ -282,6 +286,43 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
border-top: 1px solid #c5c5c5; border-top: 1px solid #c5c5c5;
} }
.desktop-home-tabpanel {
background-color: #FFFFFF;
}
<%-- dashlet --%>
.desktop-home-tabpanel .z-panel-tl, .desktop-home-tabpanel .z-panel-tr,
.desktop-home-tabpanel .z-panel-hr, .desktop-home-tabpanel .z-panel-hl,
.desktop-home-tabpanel .z-panel-hm {
background-image: none; background-color: #FFFFFF;
}
.desktop-home-tabpanel .z-panel-hl {
padding-bottom: 1px;
border-bottom: 2px solid #9D9D9D;
}
.desktop-home-tabpanel .z-panel-hl .z-panel-header {
padding: 0 0 2px 0;
color: #333; font-weight: bold;
}
.desktop-left-column .z-panel-tl, .desktop-left-column .z-panel-tr,
.desktop-left-column .z-panel-hr, .desktop-left-column .z-panel-hl,
.desktop-left-column .z-panel-hm {
background-image: none; background-color: #E4E4E4;
}
.desktop-left-column .z-panel-hl {
padding-bottom: 1px;
border-bottom: 2px solid #9D9D9D;
}
.desktop-left-column .z-panel-hl .z-panel-header {
padding: 0 0 2px 0;
color: #333; font-weight: bold;
}
.menu-panel { .menu-panel {
width: 100% !important; width: 100% !important;
height: 100% !important; height: 100% !important;
@ -379,6 +420,7 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
.adwindow-detailpane-tabbox { .adwindow-detailpane-tabbox {
min-height: 200px; width: 99%; margin: auto; min-height: 200px; width: 99%; margin: auto;
background-color: #E4E4E4;
} }
.adwindow-gridview-detail { .adwindow-gridview-detail {
@ -595,53 +637,11 @@ span.z-tree-tee, span.z-tree-last {
<%-- Group --%> <%-- Group --%>
tr.z-group { tr.z-group {
background: #E9F2FB repeat-x 0 0; background: #E9F2FB repeat-x 0 0;
background-image: url(../images/group_bg.gif); background-image: url(../images/group_bg.gif) !important;
} }
tr.z-group td.z-row-inner { .z-group-inner .z-group-cnt .z-label, .z-group-inner .z-group-cnt {
overflow: hidden; font-family: Helvetica,Arial,sans-serif;
border-top: 2px solid #81BAF5;
border-bottom: 1px solid #BCD2EF;
color: #2C559C;
font-weight: bold;
}
div.z-group-cnt {
display:table-cell;
vertical-align:middle;
}
div.z-group-cnt span.z-label {
display:inline-block;
vertical-align:middle;
color: #2C559C;
padding: 5px;
width: auto;
height: 100%;
font-weight: bold;
}
img.z-group-img-open, img.z-group-img-close {
width: 18px;
min-height: 18px;
height: 100%;
vertical-align: top;
cursor: pointer;
border: 0;
}
img.z-group-img-open {
background-image: url(../images/group-open.png);
background-position: center center;
background-color: transparent;
background-repeat: no-repeat;
}
img.z-group-img-close {
background-image: url(../images/group-close.png);
background-position: center center;
background-color: transparent;
background-repeat: no-repeat;
} }
<%-- Tablet --%> <%-- Tablet --%>
@ -715,11 +715,6 @@ div.z-vfiletree-body td.menu-tree-cell {
font-size: ${fontSizeM}; font-weight: normal; overflow: visible; font-size: ${fontSizeM}; font-weight: normal; overflow: visible;
} }
<%-- dashlet --%>
.z-panel-hl .z-panel-header {
padding: 0 0 2px 0;
}
div.simileAjax-bubble-container { div.simileAjax-bubble-container {
z-index: 2800 !important; z-index: 2800 !important;
} }
@ -812,3 +807,17 @@ tbody.z-grid-empty-body td {
.z-notification .z-notification-cnt { .z-notification .z-notification-cnt {
width: 300px; width: 300px;
} }
.z-toolbarbutton-ck {
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
background-color: #FFF;
background-image: -webkit-linear-gradient(top,#FFF,#D0D0D0);
background-image: -moz-linear-gradient(top,#FFF,#E0E0E0);
background-image: -ms-linear-gradient(top,#FFF,#E0E0E0);
background-image: -o-linear-gradient(top,#FFF,#E0E0E0);
background-image: linear-gradient(top,#FFF,#E0E0E0);
border: 1px solid #CCC;
color: #333;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B