elm_gengrid reorder mode added
authorJeongHyun Yun <jh0506.yun@samsung.com>
Tue, 31 May 2011 07:16:22 +0000 (16:16 +0900)
committerJeongHyun Yun <jh0506.yun@samsung.com>
Tue, 31 May 2011 07:16:22 +0000 (16:16 +0900)
themes/groups/gengrid.edc

index 7116a7d..11aa660 100644 (file)
@@ -54,7 +54,7 @@ group {
                 }\r
 \r
                 part {\r
-                        name: "right_padding";\r
+                        name: "right_bottom_padding";\r
                         type: RECT;\r
                         description {\r
                                 state: "default" 0.0;\r
@@ -72,9 +72,14 @@ group {
                         description {\r
                                 state: "default" 0.0;\r
                                 color: 239 239 239 255;\r
-                                align: 0.5 0.5;\r
                                 rel1 { relative: 1.0 1.0; to_x: "left_top_padding"; to_y: "left_top_padding";}\r
-                                rel2 { relative: 0.0 0.0; to_x: "right_padding"; to_y: "right_padding";}\r
+                                rel2 { relative: 0.0 0.0; to_x: "right_bottom_padding"; to_y: "right_bottom_padding";}\r
+                        }\r
+                       description {\r
+                                state: "enabled" 0.0;\r
+                                inherit: "default" 0.0;\r
+                               rel1.offset: -6 -6;\r
+                                rel2.offset: 5 5;\r
                         }\r
                }\r
 \r
@@ -97,7 +102,45 @@ group {
                                 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }\r
                         }\r
                 }\r
+\r
+                part {\r
+                       name: "reorder_bg";\r
+                       type: RECT;\r
+                       description {\r
+                                state: "default" 0.0;\r
+                                color: 0 0 0 0;\r
+                               visible: 0;\r
+                                rel1.to: "area_bg";\r
+                                rel2.to: "area_bg";\r
+                        }\r
+                       description {\r
+                                state: "enabled" 0.0;\r
+                               inherit: "default" 0.0;\r
+                               color: 0 0 0 128;\r
+                               visible: 1;\r
+                        }\r
+               }\r
         }\r
+        programs {\r
+               program {\r
+                       name:    "go_reorder_disabled";\r
+                       signal:  "elm,state,reorder_disabled";\r
+                       source:  "elm";\r
+                       action:  STATE_SET "default" 0.0;\r
+                       target:  "area_bg";\r
+                       target:  "reorder_bg";\r
+                       transition: ACCELERATE 0.3;\r
+               }\r
+               program {\r
+                       name:    "go_reorder_enabled";\r
+                       signal:  "elm,state,reorder_enabled";\r
+                       source:  "elm";\r
+                       action:  STATE_SET "enabled" 0.0;\r
+                       target:  "area_bg";\r
+                       target:  "reorder_bg";\r
+                       transition: ACCELERATE 0.3;\r
+               }\r
+       }\r
 }\r
 \r
 group { \r