summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/tree
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2011-08-23 13:02:17 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2011-08-23 13:02:17 +0000
commitc96076ef8bb2d9d9f27f0b44cb1743af0babab24 (patch)
tree2365f1f041f4b93eb66eb0f0111c79afe53b86af /WebContent/VAADIN/themes/base/tree
parentb0a5fd783d5a62b33141727007be8b2971656a32 (diff)
downloadvaadin-framework-c96076ef8bb2d9d9f27f0b44cb1743af0babab24.tar.gz
vaadin-framework-c96076ef8bb2d9d9f27f0b44cb1743af0babab24.zip
Barebones fix for #6745: Connectors for Tree, i.e. ugly but works. We can make it more pretty in future releases if necessary.
Includes TestBench test for the feature. svn changeset:20577/svn branch:6.7
Diffstat (limited to 'WebContent/VAADIN/themes/base/tree')
-rw-r--r--WebContent/VAADIN/themes/base/tree/img/connector-item-last.pngbin0 -> 148 bytes
-rw-r--r--WebContent/VAADIN/themes/base/tree/img/connector-item.pngbin0 -> 153 bytes
-rw-r--r--WebContent/VAADIN/themes/base/tree/img/connector.pngbin0 -> 143 bytes
-rw-r--r--WebContent/VAADIN/themes/base/tree/tree.css18
4 files changed, 16 insertions, 2 deletions
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png b/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png
new file mode 100644
index 0000000000..2eb04a32fd
--- /dev/null
+++ b/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item.png b/WebContent/VAADIN/themes/base/tree/img/connector-item.png
new file mode 100644
index 0000000000..5f88fe1bef
--- /dev/null
+++ b/WebContent/VAADIN/themes/base/tree/img/connector-item.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector.png b/WebContent/VAADIN/themes/base/tree/img/connector.png
new file mode 100644
index 0000000000..2844bba731
--- /dev/null
+++ b/WebContent/VAADIN/themes/base/tree/img/connector.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/base/tree/tree.css b/WebContent/VAADIN/themes/base/tree/tree.css
index 9e056dc4d6..593771a49c 100644
--- a/WebContent/VAADIN/themes/base/tree/tree.css
+++ b/WebContent/VAADIN/themes/base/tree/tree.css
@@ -11,10 +11,24 @@
.v-tree-node-caption:focus {
outline: none;
}
+div.v-tree-node-leaf {
+ background: transparent;
+}
+.v-tree-connectors .v-tree-node-leaf,
+.v-tree-connectors .v-tree-node-leaf:hover {
+ background: transparent url(img/connector-item.png) no-repeat 8px 0;
+}
+.v-tree-connectors .v-tree-node-leaf-last,
+.v-tree-connectors .v-tree-node-leaf-last:hover {
+ background: transparent url(img/connector-item-last.png) no-repeat 8px 0;
+}
.v-tree-node-expanded {
- background-position: -5px -10px;
+ background: transparent url(../common/img/sprites.png) no-repeat -5px -10px;
}
-div.v-tree-node-leaf {
+.v-tree-connectors .v-tree-node-children {
+ background: transparent url(img/connector.png) repeat-y 8px bottom;
+}
+.v-tree-connectors .v-tree-node-children-last {
background: transparent;
}
.v-tree-node-caption {