[TIZENIOT-1584 | TIZENIOT-1751] Fixed image thumbnail for images from external storag... 57/240957/1 submit/tizen/20200813.065613 submit/tizen/20200815.045916
authormohitkr1 <mohit.kr1@samsung.com>
Thu, 13 Aug 2020 06:27:49 +0000 (11:57 +0530)
committermohitkr1 <mohit.kr1@samsung.com>
Thu, 13 Aug 2020 06:27:49 +0000 (11:57 +0530)
Change-Id: Ie412a6cfdeb8387518f8525c48682dee60a41af0
Signed-off-by: mohitkr1 <mohit.kr1@samsung.com>
inc/util/gl-icons.h [changed mode: 0644->0755]
res/edje/gallery-edc-res.h
res/edje/gl-gengrid-item-albums.edc
res/edje/gl-gengrid-item-thumbview.edc
res/edje/images/No_thumbnail_2.png [new file with mode: 0755]

old mode 100644 (file)
new mode 100755 (executable)
index 421ba1d..c2b1892
@@ -26,7 +26,7 @@
 
 #define GL_ICON_DEFAULT GL_APP_DEFAULT_ICON_DIR"/org.tizen.gallery.png"
 #define GL_ICON_DB_DEFAULT_THUMB "/opt/usr/data/file-manager-service/.thumb/thumb_default.png"
-#define GL_ICON_NO_THUMBNAIL GL_IMAGEDIR"No_thumbnail_351X261.png"
+#define GL_ICON_NO_THUMBNAIL GL_IMAGEDIR"No_thumbnail_2.png"
 #define GL_ICON_CONTENTS_BROKEN GL_IMAGEDIR"Contents_broken_351X261.png"
 
 /******** Image group in EDC file ********/
index e7858584920c7b030e84dbae4c64b556c9586ca4..5441f18a98e473c0bf461421c15bebf6c6e95916 100755 (executable)
 #define GALLERY_EDC_DELETE_SHOW_IMAGE "gallery_icon_full.png"
 #define GALLERY_EDC_SD_CARD_ICON "T01_album_icon_sd_card.png"
 #define GALLERY_EDC_SD_CARD_ICON_BG "gallery_icon_sd_card.png"
+#define GL_ICON_NO_THUMBNAIL "No_thumbnail_2.png"
index e39fbd4a28cfad81b78b1f4437030908840ae7dc..9a96c6d41084f7631cb47dbf593486f14f0e14b6 100755 (executable)
@@ -416,16 +416,16 @@ group {
                        description {
                                state: "default" 0.0;
                                visible: 0;
-                               rel1 { relative: 0.82 0.82; to: "elm.icon.clipper"; }
-                               rel2 { relative: 0.98 0.98; to: "elm.icon.clipper"; }
-                               image.normal: GALLERY_EDC_SD_CARD_ICON_BG;
+                               rel1 { relative: 0.74 0.68; to: "elm.icon.clipper"; }
+                               rel2 { relative: 0.90 0.84; to: "elm.icon.clipper"; }
+                               image.normal: GALLERY_EDC_SD_CARD_ICON;
                        }
                        description {
                                state: "show" 0.0;
                                visible: 1;
-                               rel1 { relative: 0.82 0.82; to: "elm.icon.clipper"; }
-                               rel2 { relative: 0.98 0.98; to: "elm.icon.clipper"; }
-                               image.normal: GALLERY_EDC_SD_CARD_ICON_BG;
+                               rel1 { relative: 0.74 0.68; to: "elm.icon.clipper"; }
+                               rel2 { relative: 0.90 0.84; to: "elm.icon.clipper"; }
+                               image.normal: GALLERY_EDC_SD_CARD_ICON;
                        }
                }
                GL_ALBUM_SD_ICON
index bbdcc542c5b30d16e1e8e64b4b2ce97a2e34b933..d27242647d4067b57ee5644365b4cce7ff6c7cbc 100755 (executable)
@@ -212,8 +212,8 @@ group {
                        description {
                                state: "default" 0.0;
                                visible: 1;
-                               rel1 {relative: 1 1; offset: -42 -42; to: bg; }
-                               rel2 {relative: 1 1; offset: -8 -8; to: bg; }
+                               rel1 {relative: 1 1; offset: -52 -42; to: bg; }
+                               rel2 {relative: 1 1; offset: -18 -8; to: bg; }
                                min: 36 36;
                                max: 36 36;
                                color: 0 0 0 0;
@@ -696,9 +696,54 @@ group {
 group \
 { \
        name: "elm/gengrid/photoframe/"NAME; \
-       parts { \
-               GL_GRID_PART_BG \
-               GL_GRID_PART_ICON_SIZE(w, h) \
+       images { \
+               image: GL_ICON_NO_THUMBNAIL COMP; \
+       } \
+               parts { \
+                       part { \
+                       name: "bg"; \
+                       type: RECT; \
+                       mouse_events: 1; \
+                       description { \
+                               state: "default" 0.0; \
+                               rel1 { relative: 0.0 0.0;} \
+                               rel2 { relative: 1.0 1.0;} \
+                               color: 0 0 0 0; \
+                       } \
+               } \
+               part { \
+                       name: "elm.swallow.thumbnail"; \
+                       type: IMAGE; \
+                       mouse_events: 0; \
+                       repeat_events: 0; \
+                       scale: 1; \
+                       description { \
+                               state: "default" 0.0; \
+                               rel1 { relative: 0.0 0.0; to: "bg"; } \
+                               rel2 { relative: 1.0 1.0; to: "bg"; } \
+                               aspect: 1.0 1.0; \
+                               image.normal: GL_ICON_NO_THUMBNAIL; \
+                       } \
+               } \
+               part { \
+                       name: "elm.swallow.icon"; \
+                       type: SWALLOW; \
+                       clip_to: "elm.icon.clipper"; \
+                       description { \
+                               state: "default" 0.0; \
+                               rel1.to: "elm.icon.clipper"; \
+                               rel2.to: "elm.icon.clipper"; \
+                       } \
+               } \
+               part { \
+                       name: "elm.icon.clipper"; \
+                       type: RECT; \
+                       description { \
+                               state: "default" 0.0; \
+                               rel1 { relative: GAP_W/w GAP_H/h;} \
+                               rel2 { relative: (w-GAP_W)/w (h-GAP_H)/h;} \
+                       } \
+               } \
        } \
 }
 
diff --git a/res/edje/images/No_thumbnail_2.png b/res/edje/images/No_thumbnail_2.png
new file mode 100755 (executable)
index 0000000..769ad9e
Binary files /dev/null and b/res/edje/images/No_thumbnail_2.png differ