[PLM161221-02832] Added SD card icon 62/108462/1
authorbhutani.92 <bhutani.92@samsung.com>
Thu, 22 Dec 2016 07:01:53 +0000 (12:31 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Wed, 4 Jan 2017 11:02:03 +0000 (03:02 -0800)
Change-Id: I56c10654595838ae53ff0b8a50f0caa8d36bd096
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
(cherry picked from commit 083b7aca6de59cb0fb1a5fac3c8f5394d104f22b)

include/ge-icon.h
res/black_theme/edc/attach-panel-gallery.edc
res/black_theme/images/gallery_icon_sd_card.png [new file with mode: 0644]
src/view/ge-albums.c

index 596a26c78b15dfc68dec51a3f834e29b3befdd33..25d3994e808975a7d060560487c87af22ab6e574 100644 (file)
@@ -20,6 +20,6 @@
 #include "gallery-efl.h"
 
 #define GE_ICON_CONTENTS_BROKEN GE_IMAGES_DIR"Contents_broken_351X261.png"
-#define GE_ICON_MEMORY_CARD PREFIX"/res/images/attach-panel-gallery/images/T01_album_icon_sd_card.png"
+#define GE_ICON_MEMORY_CARD PREFIX"/res/images/"PACKAGE"/images/T01_album_icon_sd_card.png"
 
 #endif                                                 //__GE_ICON_H__
index 87bb92c6ec88b1ed4084a7e75057b7f2b5f13f4a..aa5fdd6527bc4995fe89167a82fca9f02283f06e 100644 (file)
@@ -188,6 +188,7 @@ group {
                data.item: "contents" "content_swallow checkbox_swallow sd_card_icon";
                images {
                        image: No_thumbnail_351X261.png COMP;
+                       image: gallery_icon_sd_card.png COMP;
                }
                parts {
                        part {
@@ -270,6 +271,26 @@ group {
                                        rel2 { relative: (180 - 9)/180 59/180; to: "content_swallow";}
                                }
                        }
+                       part {
+                               name: "sd_card_icon_img_bg";
+                               type: IMAGE;
+                               mouse_events: 1;
+                               repeat_events: 1;
+                               description {
+                                       state: "default" 0.0;
+                                       visible: 0;
+                                       rel1 { relative: (180 - 49)/180 (180 -49)/180; to: "content_swallow";}
+                                       rel2 { relative: (180 - 9)/180 (180 - 9)/180; to: "content_swallow";}
+                                       image.normal: gallery_icon_sd_card.png;
+                               }
+                               description {
+                                       state: "show" 0.0;
+                                       visible: 1;
+                                       rel1 { relative: (180 - 49)/180 (180 -49)/180; to: "content_swallow";}
+                                       rel2 { relative: (180 - 9)/180 (180 - 9)/180; to: "content_swallow";}
+                                       image.normal: gallery_icon_sd_card.png;
+                               }
+               }
                        part {
                                name: "sd_card_icon";
                                type: SWALLOW;
@@ -334,6 +355,20 @@ group {
                                action: STATE_SET "default" 0.0;
                                target: "default_image";
                        }
+                       program {
+                               name: "show_sd_icon";
+                               signal: "show_sd_card_icon";
+                               source: "sd_card_icon_img";
+                               action: STATE_SET "show" 0.0;
+                               target: "sd_card_icon_img_bg";
+                       }
+                       program {
+                               name: "hide_sd_icon";
+                               signal: "hide_sd_card_icon";
+                               source: "sd_card_icon_img";
+                               action: STATE_SET "default" 0.0;
+                               target: "sd_card_icon_img_bg";
+                       }
                }
        }
 
diff --git a/res/black_theme/images/gallery_icon_sd_card.png b/res/black_theme/images/gallery_icon_sd_card.png
new file mode 100644 (file)
index 0000000..5848ce7
Binary files /dev/null and b/res/black_theme/images/gallery_icon_sd_card.png differ
index 31ba18db0683d49eb996ebb10e4cd190d9ccd2e5..8bd847c9694163ff485f720212c2bdd5da9c5c36 100644 (file)
@@ -410,7 +410,14 @@ static Evas_Object *__ge_gengrid_item_content_get(void *data,
                        evas_object_size_hint_aspect_set(icon,
                                                                                         EVAS_ASPECT_CONTROL_VERTICAL,
                                                                                         1, 1);
+                       elm_object_item_signal_emit(gitem->elm_item,
+                                                                               "show_sd_card_icon",
+                                                                               "sd_card_icon_img");
                        return icon;
+               } else {
+                       elm_object_item_signal_emit(gitem->elm_item,
+                                                                               "hide_sd_card_icon",
+                                                                               "sd_card_icon_img");
                }
        }