[Telegram] Modify the contact list image 41/49841/1
authormoon87.park <moon87.park@samsung.com>
Tue, 20 Oct 2015 13:32:15 +0000 (22:32 +0900)
committermoon87.park <moon87.park@samsung.com>
Tue, 20 Oct 2015 13:32:15 +0000 (22:32 +0900)
Change-Id: Iab184a32a6351f0690eeb6244ec3c4ab24ce0d19

TelegramTizen/res/edje/telegram_init_screen.edc
TelegramTizen/res/images/telegram_list_thumb_image_bg.png [new file with mode: 0755]
TelegramTizen/res/images/telegram_list_thumb_image_multi.png [changed mode: 0644->0755]
TelegramTizen/res/images/telegram_list_thumb_image_single.png [changed mode: 0644->0755]
TelegramTizen/res/images/telegram_list_thumb_image_telegram.png [new file with mode: 0755]
TelegramTizen/src/tg_search_peer_view.c
TelegramTizen/tg_utils/tg_common.h

index 578f629..45f6f72 100644 (file)
@@ -116,6 +116,7 @@ collections {
        images {
                image: "camera_btn_gallery_mask.png" COMP;
                image: "telegram_date_divider.#.png" COMP;
+               image: "telegram_list_thumb_image_bg.png" COMP;
        }
 
    group {
@@ -888,8 +889,8 @@ collections {
             precise_is_inside: 1;
             description {
                 state: default 0.0;
-               rel1.relative: 0.0 0.05;
-               rel2.relative: 1.0 0.95;
+               rel1.relative: 0.0 0.0;
+               rel2.relative: 1.0 1.0;
                color: 250 250 250 0;
             }
          }
@@ -899,20 +900,21 @@ collections {
             precise_is_inside: 1;
             description { 
                state: default 0.0;
-               rel1.relative: 0.0 0.05;
-               rel2.relative: 1.0 0.95;
+               rel1.relative: 0.0 0.0;
+               rel2.relative: 1.0 1.0;
                image.normal: camera_btn_gallery_mask.png;
             }
          }
          part { 
             name: content_bg;
-            type: RECT;
+            type: IMAGE;
             clip_to: masking;
             description {
                 state: default 0.0;
                rel1.relative: 0.0 0.0;
                rel2.relative: 1.0 1.0;
-               color: 45 165 224 255;
+               image.normal: "telegram_list_thumb_image_bg.png";
+               color: 250 250 250 255;
             }
          }
          part { 
@@ -3020,13 +3022,14 @@ group
          }
          part { 
             name: content_bg;
-            type: RECT;
+            type: IMAGE;
             clip_to: masking;
             description {
                 state: default 0.0;
                rel1.relative: 0.0 0.0;
                rel2.relative: 1.0 1.0;
-               color: 250 250 250 0;
+               image.normal: "telegram_list_thumb_image_bg.png";
+               color: 250 250 250 255;
             }
          }
          part { 
diff --git a/TelegramTizen/res/images/telegram_list_thumb_image_bg.png b/TelegramTizen/res/images/telegram_list_thumb_image_bg.png
new file mode 100755 (executable)
index 0000000..eb1e100
Binary files /dev/null and b/TelegramTizen/res/images/telegram_list_thumb_image_bg.png differ
old mode 100644 (file)
new mode 100755 (executable)
index 5fd92eb..33749f6
Binary files a/TelegramTizen/res/images/telegram_list_thumb_image_multi.png and b/TelegramTizen/res/images/telegram_list_thumb_image_multi.png differ
old mode 100644 (file)
new mode 100755 (executable)
index 55faf8d..09ee7b5
Binary files a/TelegramTizen/res/images/telegram_list_thumb_image_single.png and b/TelegramTizen/res/images/telegram_list_thumb_image_single.png differ
diff --git a/TelegramTizen/res/images/telegram_list_thumb_image_telegram.png b/TelegramTizen/res/images/telegram_list_thumb_image_telegram.png
new file mode 100755 (executable)
index 0000000..67e1015
Binary files /dev/null and b/TelegramTizen/res/images/telegram_list_thumb_image_telegram.png differ
index a3ad69a..df6d224 100755 (executable)
@@ -26,8 +26,8 @@ static void on_group_chat_clicked(void *data, Evas_Object *obj, void *event_info
 static void on_secret_chat_clicked(void *data, Evas_Object *obj, void *event_info);
 
 static _command_item_info contact_screen_command_item_list[COMMAND_MENU_ITEM_COUNT] = {
-       {"invites friends",     TELEGRAM_BUTTON_ADD_ICON,       on_invite_friends_clicked, NULL},
-       {"group chat",          DEFAULT_LIST_THUMB_MULTI_PIC, on_group_chat_clicked, NULL},
+       {"IDS_TGRAM_MBODY_INVITE_FRIENDS",      TELEGRAM_CONTACT_ADD_ICON, on_invite_friends_clicked, NULL},
+       {"IDS_TGRAM_MBODY_GROUP_CHAT",          DEFAULT_LIST_THUMB_MULTI_PIC, on_group_chat_clicked, NULL},
        /*{"secret chat",               "telegram_list_thumb_image_secrete.png", on_secret_chat_clicked, NULL},*/
 };
 
@@ -109,7 +109,7 @@ char* _on_command_name_requested(void *data, Evas_Object *obj, const char *part)
 
        if (!strcmp(part,"elm.text.main.left.top") || !strcmp(part,"elm.text")){
                char buf[512] = {'\0'};
-               snprintf(buf, 512, "<align=left><font_size=45><color=#1776D2>%s</color></font_size></align>", contact_screen_command_item_list[row].string);
+               snprintf(buf, 512, "<align=left><font_size=45><color=#1776D2>%s</color></font_size></align>", _(contact_screen_command_item_list[row].string));
                return strdup(buf);
        }
 
@@ -127,7 +127,7 @@ Evas_Object* _on_command_name_image_requested(void *data, Evas_Object *obj, cons
 
                Evas_Object *profile_pic = NULL;
                profile_pic = create_image_object_from_file(ui_utils_get_resource(contact_screen_command_item_list[row].image_path), obj);
-               //evas_object_color_set(profile_pic, 45, 165, 224, 255);
+               evas_object_color_set(profile_pic, 45, 165, 224, 255);
 
                char edj_path[PATH_MAX] = {0, };
                app_get_resource(TELEGRAM_INIT_VIEW_EDJ, edj_path, (int)PATH_MAX);
@@ -175,6 +175,7 @@ Evas_Object* on_peer_list_image_requested(void *data, Evas_Object *obj, const ch
                if (user->photo_path && strcmp(user->photo_path, "") != 0) {
                        profile_pic = create_image_object_from_file(user->photo_path, obj);
                } else {
+
                        profile_pic = create_image_object_from_file(ui_utils_get_resource(DEFAULT_LIST_THUMB_SINGLE_PIC), obj);
                        evas_object_color_set(profile_pic, 45, 165, 224, 255);
                }
index 3a1a797..e160e53 100644 (file)
@@ -79,6 +79,7 @@
 #define DEFAULT_TELEGRAM_ICON FM_ICON_PATH"/tg_icon.png"
 
 #define TELEGRAM_BUTTON_ADD_ICON FM_ICON_PATH"/telegram_button_add.png"
+#define TELEGRAM_CONTACT_ADD_ICON FM_ICON_PATH"/telegram_list_thumb_image_add.png"
 #define TELEGRAM_THUMB_ADD_ICON FM_ICON_PATH"/telegram_thumb_add.png"
 
 #define FM_ICON_CAMERA       FM_ICON_PATH"floating_camera.png"