[Genlist] Add groupindex textblock focus color
authorTae-Hwan Kim <the81.kim@samsung.com>
Fri, 10 May 2013 06:17:19 +0000 (15:17 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:20:46 +0000 (20:20 +0900)
Change-Id: I8c3dc1b26f69b8ae1deb8ee516d90fb32058bad3

themes/inc/tizen-hd-inc.edc
themes/widgets/genlist/genlist_groupindex.edc
themes/widgets/genlist/genlist_textblock_style.edc

index 73e8040..1d752ec 100644 (file)
 #define GENLIST_GROUPINDEX_LIST_COLOR                    59 115 182 255
 #define GENLIST_GROUPINDEX_LIST_FOCUS_COLOR              255 255 255 255
 #define GENLIST_GROUPINDEX_LIST_COLOR_STYLE              "#3B73B6FF"
+#define GENLIST_GROUPINDEX_LIST_FOCUS_COLOR_STYLE        "#FFFFFFFF"
 
 #define GENLIST_GROUPINDEX_LIST_BG_COLOR                 248 246 239 255
 #define GENLIST_GROUPINDEX_LIST_PRESS_COLOR              132 162 198 255
index c6f5a39..6f8cc1a 100644 (file)
       color: GENLIST_GROUPINDEX_LIST_FOCUS_COLOR; \
    }
 
+ #define GENLIST_DESCRIPTION_INDEX_LIST_TB \
+   description { state: "selected" 0.0; \
+      inherit: "default" 0.0; \
+      text.style: "genlist_style_groupindex_text_focus"; \
+   }
+
 #define GENLIST_PART_INDEX_LINE(LEFT, RIGHT, TOP, BOTTOM) \
          GENLIST_PART_RECT("index_line", \
             GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
             if (val == 0) {
                get_width();
                if (get_int(text_w) < get_int(org_text_w)) {
-                  set_int(end_timer, timer(0.5, "ender", 1));
+                  ender(1);
                   return;
                }
             }
                text.min: 1 1;
                align: 0 0;
             }
-            GENLIST_DESCRIPTION_INDEX_LIST
+            GENLIST_DESCRIPTION_INDEX_LIST_TB
          )
          GENLIST_PART_INDEX_LINE("elm.padding.left", "elm.padding.right", "elm.text", "elm.padding.bottom")
          /*
                set_state(PART:"index_line", "default", 0.0);
                set_state(PART:"bg", "default", 0.0);
                if (!get_int(sliding_timer) && !get_int(end_timer)) {
-                  set_int(sliding_timer, timer(0.5, "sliding", 0));
-               } else {
-                  set_state(PART:"elm.text", "default", 0.0);
+                  set_int(sliding_timer, timer(0.01, "sliding", 0));
                }
             }
          }
             signal: "elm,state,slide,stop";
             source: "elm";
             script {
-               ender(0);
+               if (get_int(sliding_timer) && get_int(end_timer)) {
+                  ender(0);
+               }
             }
          }
       }
index 4db80e8..ea9996b 100644 (file)
@@ -41,6 +41,11 @@ styles {
       STYLE_TAG
       STYLE_TAG_MATCH
    }
+   style { name: "genlist_style_groupindex_text_focus";
+      base: "font=Tizen:style=Regular font_size="GENLIST_GROUPINDEX_LIST_SIZE" color="GENLIST_GROUPINDEX_LIST_FOCUS_COLOR_STYLE" text_class=list_item ellipsis=1.0";
+      STYLE_TAG
+      STYLE_TAG_MATCH
+   }
    // ********************** dialgoue group help text
    style { name: "genlist_style_dialogue_group_help_text";
       base: "font=Tizen:style=Regular font_size="GENLIST_DIALOGUE_GROUP_HELP_TEXT_SIZE" color="GENLIST_DIALOGUE_GROUP_HELP_TEXT_COLOR_STYLE" text_class=list_item wrap=mixed";