[Genlist] Fix expandable 2depth
authorTae-Hwan Kim <the81.kim@samsung.com>
Tue, 18 Jun 2013 04:51:05 +0000 (13:51 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 20 Jun 2013 12:55:58 +0000 (21:55 +0900)
Change-Id: If1be32925be907f2476dfc1b944b7f802de029c0

themes/images/HD/dark/Content_views/00_expandable_bg.png [new file with mode: 0644]
themes/images/HD/dark/Content_views/00_expandable_bg_bottom.png [new file with mode: 0644]
themes/images/HD/dark/Content_views/00_expandable_bg_center.png [new file with mode: 0644]
themes/images/HD/dark/Content_views/00_expandable_bg_top.png [new file with mode: 0644]
themes/images/HD/light/Content_views/00_expandable_bg.png [new file with mode: 0644]
themes/images/HD/light/Content_views/00_expandable_bg_bottom.png [new file with mode: 0644]
themes/images/HD/light/Content_views/00_expandable_bg_center.png [new file with mode: 0644]
themes/images/HD/light/Content_views/00_expandable_bg_top.png [new file with mode: 0644]
themes/widgets/genlist/genlist_macro.edc

diff --git a/themes/images/HD/dark/Content_views/00_expandable_bg.png b/themes/images/HD/dark/Content_views/00_expandable_bg.png
new file mode 100644 (file)
index 0000000..15416fa
Binary files /dev/null and b/themes/images/HD/dark/Content_views/00_expandable_bg.png differ
diff --git a/themes/images/HD/dark/Content_views/00_expandable_bg_bottom.png b/themes/images/HD/dark/Content_views/00_expandable_bg_bottom.png
new file mode 100644 (file)
index 0000000..980e6b2
Binary files /dev/null and b/themes/images/HD/dark/Content_views/00_expandable_bg_bottom.png differ
diff --git a/themes/images/HD/dark/Content_views/00_expandable_bg_center.png b/themes/images/HD/dark/Content_views/00_expandable_bg_center.png
new file mode 100644 (file)
index 0000000..3fbc5c2
Binary files /dev/null and b/themes/images/HD/dark/Content_views/00_expandable_bg_center.png differ
diff --git a/themes/images/HD/dark/Content_views/00_expandable_bg_top.png b/themes/images/HD/dark/Content_views/00_expandable_bg_top.png
new file mode 100644 (file)
index 0000000..da46be4
Binary files /dev/null and b/themes/images/HD/dark/Content_views/00_expandable_bg_top.png differ
diff --git a/themes/images/HD/light/Content_views/00_expandable_bg.png b/themes/images/HD/light/Content_views/00_expandable_bg.png
new file mode 100644 (file)
index 0000000..15416fa
Binary files /dev/null and b/themes/images/HD/light/Content_views/00_expandable_bg.png differ
diff --git a/themes/images/HD/light/Content_views/00_expandable_bg_bottom.png b/themes/images/HD/light/Content_views/00_expandable_bg_bottom.png
new file mode 100644 (file)
index 0000000..980e6b2
Binary files /dev/null and b/themes/images/HD/light/Content_views/00_expandable_bg_bottom.png differ
diff --git a/themes/images/HD/light/Content_views/00_expandable_bg_center.png b/themes/images/HD/light/Content_views/00_expandable_bg_center.png
new file mode 100644 (file)
index 0000000..3fbc5c2
Binary files /dev/null and b/themes/images/HD/light/Content_views/00_expandable_bg_center.png differ
diff --git a/themes/images/HD/light/Content_views/00_expandable_bg_top.png b/themes/images/HD/light/Content_views/00_expandable_bg_top.png
new file mode 100644 (file)
index 0000000..da46be4
Binary files /dev/null and b/themes/images/HD/light/Content_views/00_expandable_bg_top.png differ
index ef2df0d..2a59977 100755 (executable)
          image : "00_list_group_bg_top_focus.png" COMP; \
          image : "00_list_group_bg_center_focus.png" COMP; \
          image : "00_list_group_bg_bottom_focus.png" COMP; \
+         image : "00_expandable_bg.png" COMP; \
+         image : "00_expandable_bg_top.png" COMP; \
+         image : "00_expandable_bg_center.png" COMP; \
+         image : "00_expandable_bg_bottom.png" COMP; \
       }
 
+
 #define GENLIST_NAME(NAME) \
       name: "elm/genlist/item/"NAME; \
       alias: "elm/genlist/item_odd/"NAME; \
    )
 
 #define GENLIST_PART_BG_DIALOGUE \
-   GENLIST_PART_RECT("bg_dialogue_clip", \
+   GENLIST_PART_RECT("2depth", \
       description { state: "default" 0.0; \
-         color: 255 255 255 255; \
+         visible: 0;\
       } \
       description { state: "2depth" 0.0; \
-         color: 255 255 255 255; \
+         visible: 0; \
       } \
    ) \
    GENLIST_PART_SPACER("bg_dialogue_left", \
    ) \
    GENLIST_PART_IMAGE("bg_dialogue", \
       insert_after: "base"; \
-      clip_to: "bg_dialogue_clip"; \
       GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
          image { \
             normal: "00_list_group_bg.png"; \
             border_scale: 1; \
          } \
       } \
+      description { state: "2depth" 0.0; \
+         inherit: "default" 0.0; \
+         image { \
+            normal: "00_expandable_bg.png"; \
+            border: 17 17 8 8; \
+            border_scale: 1; \
+         } \
+      } \
+      description { state: "2depth_top" 0.0; \
+         inherit: "default" 0.0; \
+         image { \
+            normal: "00_expandable_bg_top.png"; \
+            border: 17 17 8 8; \
+            border_scale: 1; \
+         } \
+      } \
+      description { state: "2depth_center" 0.0; \
+         inherit: "default" 0.0; \
+         image { \
+            normal: "00_expandable_bg_center.png"; \
+            border: 17 17 8 8; \
+            border_scale: 1; \
+         } \
+      } \
+      description { state: "2depth_bottom" 0.0; \
+         inherit: "default" 0.0; \
+         image { \
+            normal: "00_expandable_bg_bottom.png"; \
+            border: 17 17 8 8; \
+            border_scale: 1; \
+         } \
+      } \
    )
 
 //****************************************************************************//
             new st[31]; \
             new Float:vl; \
             get_state(PART:"bg_dialogue", st, 30, vl); \
-            if (!strcmp(st, "top") || !strcmp(st, "top_selected")) \
+            if (!strcmp(st, "top") || !strcmp(st, "top_selected") || !strcmp(st, "2depth_top")) \
                set_state(PART:"focus_part_dialogue", "top_focused", 0.0); \
-            else if (!strcmp(st, "center") || !strcmp(st, "center_selected")) \
+            else if (!strcmp(st, "center") || !strcmp(st, "center_selected") || !strcmp(st, "2depth_center")) \
                set_state(PART:"focus_part_dialogue", "center_focused", 0.0); \
-            else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected")) \
+            else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected") || !strcmp(st, "2depth_bottom")) \
                set_state(PART:"focus_part_dialogue", "bottom_focused", 0.0); \
-            else if (!strcmp(st, "default") || !strcmp(st, "selected")) \
+            else if (!strcmp(st, "default") || !strcmp(st, "selected") || !strcmp(st, "2depth")) \
                set_state(PART:"focus_part_dialogue", "focused", 0.0); \
          } \
       } \
          program { name: "bg_default"; \
             signal: "elm,state,default"; \
             source: "*"; \
-            action: STATE_SET "default" 0.0; \
-            target: "bg_dialogue"; \
+            script { \
+               new st[31]; \
+               new Float:vl; \
+               get_state(PART:"2depth", st, 30, vl); \
+               if (!strcmp(st, "2depth")) \
+                  set_state(PART:"bg_dialogue", "2depth", 0.0); \
+               else \
+                  set_state(PART:"bg_dialogue", "default", 0.0); \
+            } \
          } \
          program { name: "bg_top"; \
             signal: "elm,state,top"; \
             source: "*"; \
-            action: STATE_SET "top" 0.0; \
-            target: "bg_dialogue"; \
+            script { \
+               new st[31]; \
+               new Float:vl; \
+               get_state(PART:"2depth", st, 30, vl); \
+               if (!strcmp(st, "2depth")) \
+                  set_state(PART:"bg_dialogue", "2depth_top", 0.0); \
+               else \
+                  set_state(PART:"bg_dialogue", "top", 0.0); \
+            } \
          } \
          program { name: "bg_center"; \
             signal: "elm,state,center"; \
             source: "*"; \
-            action: STATE_SET "center" 0.0; \
-            target: "bg_dialogue"; \
+            script { \
+               new st[31]; \
+               new Float:vl; \
+               get_state(PART:"2depth", st, 30, vl); \
+               if (!strcmp(st, "2depth")) \
+                  set_state(PART:"bg_dialogue", "2depth_center", 0.0); \
+               else \
+                  set_state(PART:"bg_dialogue", "center", 0.0); \
+            } \
          } \
          program { name: "bg_bottom"; \
             signal: "elm,state,bottom"; \
             source: "*"; \
-            action: STATE_SET "bottom" 0.0; \
-            target: "bg_dialogue"; \
+            script { \
+               new st[31]; \
+               new Float:vl; \
+               get_state(PART:"2depth", st, 30, vl); \
+               if (!strcmp(st, "2depth")) \
+                  set_state(PART:"bg_dialogue", "2depth_bottom", 0.0); \
+               else \
+                  set_state(PART:"bg_dialogue", "bottom", 0.0); \
+            } \
          }
 
 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
                new st[31]; \
                new Float:vl; \
                get_state(PART:"bg_dialogue", st, 30, vl); \
-               if (!strcmp(st, "top")) \
+               if (!strcmp(st, "top") || !strcmp(st, "2depth_top")) \
                   set_state(PART:"bg_dialogue", "top_selected", 0.0); \
-               else if (!strcmp(st, "center")) \
+               else if (!strcmp(st, "center") || !strcmp(st, "2depth_center")) \
                   set_state(PART:"bg_dialogue", "center_selected", 0.0); \
-               else if (!strcmp(st, "bottom")) \
+               else if (!strcmp(st, "bottom") || !strcmp(st, "2depth_bottom")) \
                   set_state(PART:"bg_dialogue", "bottom_selected", 0.0); \
-               else if (!strcmp(st, "default")) \
+               else if (!strcmp(st, "default") || !strcmp(st, "2depth")) \
                   set_state(PART:"bg_dialogue", "selected", 0.0); \
                run_program(PROGRAM:"target_selected"); \
             } \
             script { \
                new st[31]; \
                new Float:vl; \
-               get_state(PART:"bg_dialogue", st, 30, vl); \
-               if (!strcmp(st, "top_selected")) \
+               get_state(PART:"2depth", st, 30, vl); \
+               if (!strcmp(st, "2depth")) { \
+                  get_state(PART:"bg_dialogue", st, 30, vl); \
+                  if (!strcmp(st, "top_selected")) \
+                     set_state(PART:"bg_dialogue", "2depth_top", 0.0); \
+                  else if (!strcmp(st, "center_selected"))  \
+                     set_state(PART:"bg_dialogue", "2depth_center", 0.0); \
+                  else if (!strcmp(st, "bottom_selected"))  \
+                     set_state(PART:"bg_dialogue", "2depth_bottom", 0.0); \
+                  else if (!strcmp(st, "selected")) \
+                     set_state(PART:"bg_dialogue", "2depth", 0.0); \
+               } else { \
+                  get_state(PART:"bg_dialogue", st, 30, vl); \
+                  if (!strcmp(st, "top_selected")) \
                   set_state(PART:"bg_dialogue", "top", 0.0); \
-               else if (!strcmp(st, "center_selected"))  \
-                  set_state(PART:"bg_dialogue", "center", 0.0); \
-               else if (!strcmp(st, "bottom_selected"))  \
-                  set_state(PART:"bg_dialogue", "bottom", 0.0); \
-               else if (!strcmp(st, "selected")) \
-                  set_state(PART:"bg_dialogue", "default", 0.0); \
+                  else if (!strcmp(st, "center_selected"))  \
+                     set_state(PART:"bg_dialogue", "center", 0.0); \
+                  else if (!strcmp(st, "bottom_selected"))  \
+                     set_state(PART:"bg_dialogue", "bottom", 0.0); \
+                  else if (!strcmp(st, "selected")) \
+                     set_state(PART:"bg_dialogue", "default", 0.0); \
+               } \
                run_program(PROGRAM:"target_unselected"); \
             } \
          } \
    programs { \
       GENLIST_PROGRAM_DEFAULT( TARGET \
          target: "bg_dialogue"; \
-         target: "bg_dialogue_clip"; \
          target: "elm.padding.left"; \
          target: "elm.padding.right"; \
       ) \
          signal: "bg_color_change"; \
          source: "elm"; \
          action: STATE_SET "2depth" 0.0; \
-         target: "bg_dialogue_clip"; \
+         target: "2depth"; \
       } \
       GENLIST_PROGRAM_SOUND("bg_dialogue") \
       GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
 #define GENLIST_PROGRAMS_DIALOGUE_ENTRY( TARGET ) \
    GENLIST_PROGRAM_DEFAULT( TARGET \
       target: "bg_dialogue"; \
-      target: "bg_dialogue_clip"; \
       target: "elm.padding.left"; \
       target: "elm.padding.right"; \
    ) \
       signal: "bg_color_change"; \
       source: "elm"; \
       action: STATE_SET "2depth" 0.0; \
-      target: "bg_dialogue_clip"; \
+      target: "2depth"; \
    } \
    GENLIST_PROGRAM_BG_DIALOGUE \
    GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \