elm genlist: Support reorder effect for tree.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 10 Aug 2011 17:49:56 +0000 (17:49 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 10 Aug 2011 17:49:56 +0000 (17:49 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62304 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

data/themes/widgets/genlist.edc

index 705994d..1050fb0 100644 (file)
@@ -1309,6 +1309,30 @@ group { name: "elm/genlist/tree/default/default";
             color: 0 0 0 0;
          }
       }
+      part { name: "reorder_bg";
+         mouse_events: 0;
+         description { state: "default" 0.0;
+            visible: 0;
+            color: 255 255 255 0;
+            rel1 {
+               relative: 0.0 0.0;
+               offset: -7 -7;
+            }
+            rel2 {
+               relative: 1.0 1.0;
+               offset: 9 9;
+            }
+            image {
+               normal: "bt_bases.png";
+               border: 6 6 6 6;
+            }
+         }
+         description { state: "enabled" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+            color: 255 255 255 255;
+         }
+      }
       part {
          name: "base_sh";
          mouse_events: 0;
@@ -1617,6 +1641,22 @@ group { name: "elm/genlist/tree/default/default";
          target:  "disclip";
       }
       program {
+         name:    "go_reorder_disabled";
+         signal:  "elm,state,reorder,disabled";
+         source:  "elm";
+         action:  STATE_SET "default" 0.0;
+         target:  "reorder_bg";
+         transition: DECELERATE 0.5;
+      }
+      program {
+         name:    "go_reorder_enabled";
+         signal:  "elm,state,reorder,enabled";
+         source:  "elm";
+         action:  STATE_SET "enabled" 0.0;
+         target:  "reorder_bg";
+         transition: DECELERATE 0.5;
+      }
+      program {
          name:    "expand";
          signal:  "mouse,up,1";
          source:  "arrow";