aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2009-02-04 15:52:11 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2009-02-04 15:52:11 +0000
commitbd9145417e34ebc4fc553daaa7eaa7a17a691d91 (patch)
tree1f4c0d35cc7e20954c1ee71653f31e54e1f3390c
parent3088fae40b3c32dc20ce480b7a5399b61cd21bfc (diff)
downloadvaadin-framework-bd9145417e34ebc4fc553daaa7eaa7a17a691d91.tar.gz
vaadin-framework-bd9145417e34ebc4fc553daaa7eaa7a17a691d91.zip
Sampler theme fixes and additions. Unnecessary layouts and panels removed.
svn changeset:6733/svn branch:trunk
-rw-r--r--WebContent/ITMILL/themes/sampler/sampler/grid.pngbin0 -> 203 bytes
-rw-r--r--WebContent/ITMILL/themes/sampler/sampler/list.pngbin0 -> 379 bytes
-rw-r--r--WebContent/ITMILL/themes/sampler/sampler/styles.css24
-rw-r--r--WebContent/ITMILL/themes/sampler/sampler/tree-bg.pngbin0 -> 508 bytes
-rw-r--r--WebContent/ITMILL/themes/sampler/sampler/tree.pngbin994 -> 255 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/FeatureView.java15
-rw-r--r--src/com/itmill/toolkit/demo/sampler/SamplerApplication.java6
7 files changed, 31 insertions, 14 deletions
diff --git a/WebContent/ITMILL/themes/sampler/sampler/grid.png b/WebContent/ITMILL/themes/sampler/sampler/grid.png
new file mode 100644
index 0000000000..5a24c8f188
--- /dev/null
+++ b/WebContent/ITMILL/themes/sampler/sampler/grid.png
Binary files differ
diff --git a/WebContent/ITMILL/themes/sampler/sampler/list.png b/WebContent/ITMILL/themes/sampler/sampler/list.png
new file mode 100644
index 0000000000..97bcdeb2f6
--- /dev/null
+++ b/WebContent/ITMILL/themes/sampler/sampler/list.png
Binary files differ
diff --git a/WebContent/ITMILL/themes/sampler/sampler/styles.css b/WebContent/ITMILL/themes/sampler/sampler/styles.css
index 9dbfc76917..2008704faa 100644
--- a/WebContent/ITMILL/themes/sampler/sampler/styles.css
+++ b/WebContent/ITMILL/themes/sampler/sampler/styles.css
@@ -10,8 +10,8 @@
background: #5c5d60 url(top-bg.png) repeat-x;
}
-.i-app-SamplerApplication .main-split {
- background: transparent url(main-bg.png) repeat-x;
+.i-app-SamplerApplication .i-horizontallayout-sample-view {
+ background: #fff url(main-bg.png) repeat-x;
}
.i-app-SamplerApplication .topbar .logo {
@@ -142,12 +142,32 @@
border: none;
}
+.i-app-SamplerApplication .main-split .i-splitpanel-first-container {
+ background: #eaebec url(tree-bg.png) repeat-x fixed;
+}
+
+.i-app-SamplerApplication .main-split .i-splitpanel-hsplitter {
+ width: 1px;
+ background: #aeb0b5;
+}
+.i-app-SamplerApplication .main-split .i-splitpanel-hsplitter div {
+ width: 3px;
+ background: transparent;
+ border: none;
+ margin: 0 -1px;
+ padding: 0;
+}
+
.i-app-SamplerApplication .i-tree-menu {
font-family: helvetica, arial, verdana, sans-serif;
font-size: 12px;
line-height: 17px;
padding: 13px 0;
}
+.i-app-SamplerApplication .i-tree-menu .i-tree-node-selected span {
+ background: #7d8490;
+ padding: 1px;
+}
.i-app-SamplerApplication .i-label-section {
font-family: "Helvetica Neue", helvetica, arial, verdana, sans-serif;
diff --git a/WebContent/ITMILL/themes/sampler/sampler/tree-bg.png b/WebContent/ITMILL/themes/sampler/sampler/tree-bg.png
new file mode 100644
index 0000000000..ebca8ef5f6
--- /dev/null
+++ b/WebContent/ITMILL/themes/sampler/sampler/tree-bg.png
Binary files differ
diff --git a/WebContent/ITMILL/themes/sampler/sampler/tree.png b/WebContent/ITMILL/themes/sampler/sampler/tree.png
index 6e7ce5122c..f82f1fadbd 100644
--- a/WebContent/ITMILL/themes/sampler/sampler/tree.png
+++ b/WebContent/ITMILL/themes/sampler/sampler/tree.png
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/FeatureView.java b/src/com/itmill/toolkit/demo/sampler/FeatureView.java
index 2827af1ec0..699f1b1c4b 100644
--- a/src/com/itmill/toolkit/demo/sampler/FeatureView.java
+++ b/src/com/itmill/toolkit/demo/sampler/FeatureView.java
@@ -21,7 +21,7 @@ public class FeatureView extends HorizontalLayout {
private static final String MSG_HIDE_SRC = "Hide Java™ source";
private Panel right;
- private Panel left;
+ private VerticalLayout left;
private VerticalLayout controls;
@@ -34,18 +34,16 @@ public class FeatureView extends HorizontalLayout {
private Feature currentFeature;
public FeatureView() {
- setSizeFull();
+
setWidth("100%");
setMargin(true);
setSpacing(true);
setStyleName("sample-view");
- left = new Panel();
- left.setStyleName(Panel.STYLE_LIGHT);
- left.addStyleName("feature-main");
-
- ((VerticalLayout) left.getLayout()).setSpacing(true);
- ((VerticalLayout) left.getLayout()).setMargin(false);
+ left = new VerticalLayout();
+ left.setWidth("100%");
+ left.setSpacing(true);
+ left.setMargin(false);
addComponent(left);
setExpandRatio(left, 1);
@@ -53,7 +51,6 @@ public class FeatureView extends HorizontalLayout {
right.setStyleName(Panel.STYLE_LIGHT);
right.addStyleName("feature-info");
right.setWidth("369px");
- right.setHeight("100%");
addComponent(right);
controls = new VerticalLayout();
diff --git a/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java b/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
index 7bc9ff3d53..01d19397cf 100644
--- a/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
+++ b/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
@@ -408,13 +408,13 @@ public class SamplerApplication extends Application {
private ModeSwitch createModeSwitch() {
ModeSwitch m = new ModeSwitch();
m.addMode(currentList, "", "View as Icons", new ThemeResource(
- "sampler/grid.gif"));
+ "sampler/grid.png"));
/*- no CoverFlow yet
m.addMode(coverFlow, "", "View as Icons", new ThemeResource(
"sampler/flow.gif"));
*/
m.addMode(new FeatureTable(), "", "View as List",
- new ThemeResource("sampler/list.gif"));
+ new ThemeResource("sampler/list.png"));
m.addListener(new ModeSwitch.ModeSwitchListener() {
public void componentEvent(Event event) {
if (event instanceof ModeSwitchEvent) {
@@ -483,7 +483,7 @@ public class SamplerApplication extends Application {
*/
private class MainArea extends CustomComponent {
MainArea() {
- setSizeFull();
+ setWidth("100%");
setCompositionRoot(new Label());
}