[Genlist] Apply UX 4.8
authorTae-Hwan Kim <the81.kim@samsung.com>
Tue, 30 Apr 2013 09:47:33 +0000 (18:47 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:10:54 +0000 (20:10 +0900)
Add Dialogue Focus

Change-Id: I83d0d8298cac11ed4d791a9d0684d9f1d33fc49d

themes/images/tizen-hd/Focus/00_list_group_bg_bottom_focus.png [new file with mode: 0644]
themes/images/tizen-hd/Focus/00_list_group_bg_center_focus.png [new file with mode: 0644]
themes/images/tizen-hd/Focus/00_list_group_bg_top_focus.png [new file with mode: 0644]
themes/widgets/genlist/genlist_expandable.edc
themes/widgets/genlist/genlist_groupindex.edc
themes/widgets/genlist/genlist_macro.edc
themes/widgets/genlist/genlist_normal.edc

diff --git a/themes/images/tizen-hd/Focus/00_list_group_bg_bottom_focus.png b/themes/images/tizen-hd/Focus/00_list_group_bg_bottom_focus.png
new file mode 100644 (file)
index 0000000..8f5de41
Binary files /dev/null and b/themes/images/tizen-hd/Focus/00_list_group_bg_bottom_focus.png differ
diff --git a/themes/images/tizen-hd/Focus/00_list_group_bg_center_focus.png b/themes/images/tizen-hd/Focus/00_list_group_bg_center_focus.png
new file mode 100644 (file)
index 0000000..4f5e9f4
Binary files /dev/null and b/themes/images/tizen-hd/Focus/00_list_group_bg_center_focus.png differ
diff --git a/themes/images/tizen-hd/Focus/00_list_group_bg_top_focus.png b/themes/images/tizen-hd/Focus/00_list_group_bg_top_focus.png
new file mode 100644 (file)
index 0000000..6c27ae6
Binary files /dev/null and b/themes/images/tizen-hd/Focus/00_list_group_bg_top_focus.png differ
index f36d3e1..7d68196 100644 (file)
@@ -52,7 +52,7 @@
          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
          GENLIST_PART_EXPANDABLE_ARROW
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "arrow_clip"; )
       programs {
@@ -95,7 +95,7 @@
          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
          GENLIST_PART_EXPANDABLE_ARROW
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2";  target: "arrow_clip"; )
       programs {
          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
          GENLIST_PART_EXPANDABLE_ARROW
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "arrow_clip"; )
       programs {
          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
          GENLIST_PART_EXPANDABLE_ARROW
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "arrow_clip"; )
       programs {
          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
          GENLIST_PART_EXPANDABLE_ARROW
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.icon"; target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
           target: "arrow_clip"; )
          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
          GENLIST_PART_EXPANDABLE_ARROW
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text";  target: "arrow_clip"; )
       programs {
index 5a573ab..895e483 100644 (file)
             GENLIST_DESCRIPTION_INDEX_LIST
          )
          GENLIST_PART_INDEX_LINE("elm.padding.left", "elm.padding.right", "elm.text", "elm.padding.bottom")
-         GENLIST_PART_FOCUS
       }
       programs {
          GENLIST_PROGRAM_DISABLED( target: "elm.text"; target: "index_line"; )
          GENLIST_PROGRAM_SELECT( target: "elm.text"; target: "index_line"; target: "bg"; )
-         GENLIST_PROGRAM_FOCUS
       }
    }
 
             GENLIST_DESCRIPTION_INDEX_LIST
          )
          GENLIST_PART_INDEX_LINE("elm.padding.icon.right", "elm.padding.right", "elm.text", "elm.padding.bottom")
-         GENLIST_PART_FOCUS
       }
       programs {
          GENLIST_PROGRAM_DISABLED( target: "elm.text"; target: "index_line"; )
          GENLIST_PROGRAM_SELECT( target: "elm.text"; target: "index_line"; target: "bg"; )
-         GENLIST_PROGRAM_FOCUS
       }
    }
 
index d4d7315..a6faaa7 100644 (file)
          image : "00_list_group_bg_center_press.png" COMP; \
          image : "00_list_group_bg_bottom.png" COMP; \
          image : "00_list_group_bg_bottom_press.png" COMP; \
+         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; \
       }
 
 #define GENLIST_NAME(NAME) \
          GENLIST_PART_PADDING_RIGHT_EDIT \
          _PARTS \
          GENLIST_PART_FLIP \
+         GENLIST_PART_FOCUS_DIALOGUE \
       }
 
 #define GENLIST_INHERIT_THUMB_CIRCLE(SIZE_PREFIX, MASK_SIZE, PARENT) \
       } \
    )
 
+#define GENLIST_PART_FOCUS_DIALOGUE \
+   GENLIST_PART_IMAGE("focus_part", \
+      mouse_events: 0; \
+      GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
+         visible: 0; \
+         image { \
+            normal: "00_focus.png"; \
+            border: 7 7 7 7; \
+         } \
+      ) \
+      description { state: "focused" 0.0; \
+         inherit: "default" 0.0; \
+         visible: 1; \
+      } \
+      description { state: "top_focused" 0.0; \
+         inherit: "default" 0.0; \
+         visible: 1; \
+         image { \
+            normal: "00_list_group_bg_top_focus.png"; \
+            border: 7 7 7 7; \
+         } \
+      } \
+      description { state: "center_focused" 0.0; \
+         inherit: "default" 0.0; \
+         visible: 1; \
+         image { \
+            normal: "00_list_group_bg_center_focus.png"; \
+            border: 7 7 7 7; \
+         } \
+      } \
+      description { state: "bottom_focused" 0.0; \
+         inherit: "default" 0.0; \
+         visible: 1; \
+         image { \
+            normal: "00_list_group_bg_bottom_focus.png"; \
+            border: 7 7 7 7; \
+         } \
+      } \
+   )
+
 //****************************************************************************//
 // ****************************** LINE ********************************//
 //****************************************************************************//
          target: "focus_part"; \
       }
 
+#define GENLIST_PROGRAM_FOCUS_DIALOGUE \
+      program { name: "focused"; \
+         signal: "elm,state,focused"; \
+         source: "elm"; \
+         script { \
+            new st[31]; \
+            new Float:vl; \
+            get_state(PART:"bg_dialogue", st, 30, vl); \
+            if (!strcmp(st, "top") || !strcmp(st, "top_selected")) \
+               set_state(PART:"focus_part", "top_focused", 0.0); \
+            else if (!strcmp(st, "center") || !strcmp(st, "center_selected")) \
+               set_state(PART:"focus_part", "center_focused", 0.0); \
+            else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected")) \
+               set_state(PART:"focus_part", "bottom_focused", 0.0); \
+            else if (!strcmp(st, "default") || !strcmp(st, "selected")) \
+               set_state(PART:"focus_part", "focused", 0.0); \
+         } \
+      } \
+      program { name: "unfocused"; \
+         signal: "elm,state,unfocused"; \
+         source: "elm"; \
+         action: STATE_SET "default" 0.0; \
+         target: "focus_part"; \
+      }
+
 #define GENLIST_PROGRAM_SOUND( SRC ) \
          program { name: "play_sound"SRC; \
             signal: "mouse,clicked,1"; \
          target: "elm.padding.right"; \
       ) \
       GENLIST_PROGRAM_DISABLED( TARGET ) \
-      GENLIST_PROGRAM_FOCUS \
+      GENLIST_PROGRAM_FOCUS_DIALOGUE \
       GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
       program { name: "bg_color_change"; \
          signal: "bg_color_change"; \
index 1ad72ed..fb96238 100644 (file)
                max: -1 32;
             }
          )
-         GENLIST_PART_FOCUS
       }
-      GENLIST_PROGRAM_FOCUS
    }
 
 // Dialogue Group Separators
                max: -1 8;
             }
          )
-         GENLIST_PART_FOCUS
       }
-      GENLIST_PROGRAM_FOCUS
    }
 
    group { GENLIST_NAME("dialogue/1icon/default")
          GENLIST_PART_PADDING_R("elm.padding.icon3.left", "elm.icon.3")
          GENLIST_PART_ICON_BIG_R("elm.icon.3", "elm.padding.right")
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.icon.1"; target: "elm.icon.2";
          target: "elm.icon.3"; )
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text"; target: "elm.icon"; )
       GENLIST_PROGRAM_SOUND("elm.text")
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2";
          target: "elm.icon"; )
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2";
          target: "elm.icon"; )
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1";
          target: "elm.text.2"; target: "elm.icon"; )
             GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "elm.icon"; )
       GENLIST_PROGRAM_SOUND("elm.text.1")
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
       }
       GENLIST_PROGRAM_DISABLED( target: "elm.text"; target: "elm.icon"; )
-      GENLIST_PROGRAM_FOCUS
    }
 
 // 2.4.4.2 Help Text
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "elm.icon"; )
    }
             )
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
          target: "elm.icon.1"; target: "elm.icon.2"; )
             min: 0 32; fixed: 0 1;)
          )
          GENLIST_PART_FLIP
-         GENLIST_PART_FOCUS
+         GENLIST_PART_FOCUS_DIALOGUE
       }
       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3"; target: "elm.text.4"; target: "elm.text.5";
          target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3"; target: "elm.icon.4"; target: "elm.icon.5"; target: "elm.icon.6"; )