}
.argeo-suite-leadPane {
- font: bold 14px sans-serif;
- background-color:#ddd;
+ background-color: #eee;
}
-Button.argeo-suite-leadPane {
- font: bold 14px sans-serif;
- color: white;
- background-color: white;
+Label.argeo-suite-leadPane {
+ font: 14px sans-serif;
+ color: #888;
+ background-color: #eee;
+}
+
+Button.argeo-suite-leadPane:hover {
+ cursor:pointer;
}
.argeo-suite-recentItems {
}
.argeo-suite-simpleLabel {
- font:bold 14px sans-serif;
- padding:0 0 0 8px;
+ font: bold 14px sans-serif;
+ padding: 0 0 0 8px;
}
.argeo-suite-simpleText {
+
}
-.argeo-suite-titleCell{
- font:bold 14px sans-serif;
- background-color:#ddd;
+.argeo-suite-titleCell {
+ font: bold 14px sans-serif;
+ background-color: #ddd;
}
.argeo-suite-inlineButton {
- padding:0px 4px;
+ padding: 0px 4px;
font: 12px sans-serif;
- border:1px solid white;
- color:white;
- background-image:none;
- background-color:#00294b;
+ border: 1px solid white;
+ color: white;
+ background-image: none;
+ background-color: #00294b;
}
.argeo-suite-inlineButton:hover {
- color:#00294b;
- background-color:white;
+ color: #00294b;
+ background-color: white;
}
-
+Composite.argeo-suite-mainTabBody {
+ background-color: #eee;
+ border: 1px solid #bbb;
+}
.argeo-suite-mainTab {
- background-color:#ddd;
- border:1px solid #bbb;
+ background-color: #eee;
+ border: 1px solid #bbb;
+}
+
+ToolItem.argeo-suite-mainTab {
+ border: none;
+ background-color: #eee;
}
Button.argeo-suite-mainTab {
- border:none;
- background-color:#ddd;
+ border: none;
+ background-color: #eee;
}
.argeo-suite-mainTab:hover {
- background-color:#eee;
+ background-color: #eee;
}
Button.argeo-suite-mainTab:hover {
- cursor:pointer;
- background-color:#eee;
+ cursor: pointer;
+ background-color: #eee;
}
.argeo-suite-mainTabSelected {
- font:bold 14px sans-serif;
- color:white;
- background-color:#00294b;
+ font: bold 14px sans-serif;
+ color: white;
+ /*background-color: #00294b;*/
+ background-color: #5882b5;
+ border: 1px solid #00294b;
}
-Button.argeo-suite-mainTabSelected {
- border:none;
+ToolItem.argeo-suite-mainTabSelected {
+ border: none;
}
+
+Button.argeo-suite-mainTabSelected {
+ border: none;
+}
\ No newline at end of file
}
int[] weights = new int[] { 2000, 8000 };
area.setWeights(weights);
+// editorArea.setLayout(CmsUiUtils.noSpaceGridLayout());
editorArea.setLayout(new GridLayout());
tabbedArea = new TabbedArea(editorArea, SWT.NONE);
+ tabbedArea.setBodyStyle(SuiteStyle.mainTabBody.toStyleClass());
tabbedArea.setTabStyle(SuiteStyle.mainTab.toStyleClass());
tabbedArea.setTabSelectedStyle(SuiteStyle.mainTabSelected.toStyleClass());
tabbedArea.setCloseIcon(SuiteIcon.close.getSmallIcon(theme));
import org.argeo.cms.ui.util.CmsIcon;
import org.argeo.cms.ui.util.CmsUiUtils;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
/** Side pane listing various perspectives. */
public class DefaultLeadPane implements CmsUiProvider {
CmsTheme theme = CmsTheme.getCmsTheme(parent);
Button button = new Button(parent, SWT.PUSH);
CmsUiUtils.style(button, SuiteStyle.leadPane);
- button.setToolTipText(msg.lead());
button.setImage(icon.getBigIcon(theme));
+ button.setLayoutData(new GridData(SWT.CENTER, SWT.BOTTOM, true, false));
+ //button.setToolTipText(msg.lead());
+ Label lbl = new Label(parent,SWT.NONE);
+ CmsUiUtils.style(lbl, SuiteStyle.leadPane);
+ lbl.setText(msg.lead());
+ lbl.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false));
CmsUiUtils.sendEventOnSelect(button, SuiteEvent.switchLayer.topic(), SuiteEvent.LAYER, layer);
return button;
}
public Control createUi(Composite parent, Node context) throws RepositoryException {
theme = CmsTheme.getCmsTheme(parent);
parent.setLayout(new GridLayout());
+// parent.setLayout(CmsUiUtils.noSpaceGridLayout());
+ parent.setLayout(new GridLayout());
- Composite top = new Composite(parent, SWT.NONE);
- CmsUiUtils.style(top, SuiteStyle.recentItems);
- top.setLayoutData(CmsUiUtils.fillWidth());
- top.setLayout(CmsUiUtils.noSpaceGridLayout(2));
- Label lbl = new Label(top, SWT.NONE);
- lbl.setLayoutData(CmsUiUtils.fillAll());
- lbl.setText(SuiteMsg.recentItems.lead());
- CmsUiUtils.style(lbl, SuiteStyle.recentItems);
-
- ToolBar topToolBar = new ToolBar(top, SWT.NONE);
- ToolItem addItem = new ToolItem(topToolBar, SWT.FLAT);
-// CmsUiUtils.style(addItem, SuiteStyle.recentItems);
- addItem.setImage(SuiteIcon.add.getSmallIcon(theme));
+// Composite top = new Composite(parent, SWT.BORDER);
+// CmsUiUtils.style(top, SuiteStyle.recentItems);
+// top.setLayoutData(CmsUiUtils.fillWidth());
+// top.setLayout(CmsUiUtils.noSpaceGridLayout(2));
+// Label lbl = new Label(top, SWT.FLAT);
+// lbl.setLayoutData(CmsUiUtils.fillWidth());
+// lbl.setText(SuiteMsg.recentItems.lead());
+// CmsUiUtils.style(lbl, SuiteStyle.recentItems);
+//
+// ToolBar topToolBar = new ToolBar(top, SWT.NONE);
+// ToolItem addItem = new ToolItem(topToolBar, SWT.FLAT);
+//// CmsUiUtils.style(addItem, SuiteStyle.recentItems);
+// addItem.setImage(SuiteIcon.add.getSmallIcon(theme));
if (context == null)
return null;
deleteItem.setEnabled(false);
// CmsUiUtils.style(deleteItem, SuiteStyle.recentItems);
deleteItem.setImage(SuiteIcon.delete.getSmallIcon(theme));
-
+ ToolItem addItem = new ToolItem(bottomToolBar, SWT.FLAT);
+ addItem.setImage(SuiteIcon.add.getSmallIcon(theme));
entityViewer.getViewer().addDoubleClickListener(new IDoubleClickListener() {
@Override
}
protected TableViewer createListPart(Composite parent, ILabelProvider labelProvider) {
- parent.setLayout(new GridLayout());
+// parent.setLayout(new GridLayout());
+// parent.setLayout(CmsUiUtils.noSpaceGridLayout());
Composite tableComposite = new Composite(parent, SWT.NONE);
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_VERTICAL
// table
titleCell,
// tabbed area
- mainTabSelected, mainTab,
+ mainTabBody,mainTabSelected, mainTab,
// Buttons
inlineButton;