gallery: add default image 22/44122/1
authorJehun Lim <jehun.lim@samsung.com>
Thu, 16 Jul 2015 08:17:50 +0000 (17:17 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Fri, 17 Jul 2015 04:25:45 +0000 (13:25 +0900)
Change-Id: I9fca6637cc2e989c0cbc304932e3320b4875572a
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
include/view/base.h
res/edc/images/ic_thumbnail_picture.png [new file with mode: 0644]
res/edc/widgets/gengrid.edc

index aa909e6..2ddd8ef 100644 (file)
@@ -35,6 +35,7 @@
 
 /* images */
 #define IMAGE_PREVIEW_PLAY "ic_preview_play.png"
+#define IMAGE_THUMBNAIL_PICTURE "ic_thumbnail_picture.png"
 #define IMAGE_THUMBNAIL_PLAY IMAGEDIR"/ic_thumbnail_play.png"
 
 /* style */
diff --git a/res/edc/images/ic_thumbnail_picture.png b/res/edc/images/ic_thumbnail_picture.png
new file mode 100644 (file)
index 0000000..04d17f6
Binary files /dev/null and b/res/edc/images/ic_thumbnail_picture.png differ
index 3703001..02b1af6 100644 (file)
@@ -417,6 +417,9 @@ group {
        data.item: "texts" "elm.text.playtime";
        data.item: "contents" "elm.swallow.thumbnail elm.swallow.video";
        data.item: "focus_highlight" "on";
+       images {
+               image: IMAGE_THUMBNAIL_PICTURE COMP;
+       }
        parts {
                part {
                        name: "elm.padding.bottom_right";
@@ -471,7 +474,36 @@ group {
                                state : "default" 0.0;
                                rel1.to: "bg";
                                rel2.to: "bg";
-                               color: 0 0 0 115;
+                               color: 119 169 202 255;
+                               map {
+                                       perspective_on: 1;
+                                       perspective: "map";
+                               }
+                       }
+                       description {
+                               state: "selected" 0.0;
+                               inherit: "default" 0.0;
+                               map.on: 1;
+                       }
+               }
+               part {
+                       name: "default_image";
+                       scale: 1;
+                       type: IMAGE;
+                       mouse_events: 1;
+                       description {
+                               state: "default" 0.0;
+                               rel1 {
+                                       to: "defaultbg";
+                                       relative: 0.5 0.5;
+                               }
+                               rel2 {
+                                       to: "defaultbg";
+                                       relative: 0.5 0.5;
+                               }
+                               image.normal: IMAGE_THUMBNAIL_PICTURE;
+                               min: 80 80;
+                               fixed: 1 1;
                                map {
                                        perspective_on: 1;
                                        perspective: "map";
@@ -519,6 +551,15 @@ group {
                                }
                                min: 80 80;
                                fixed: 1 1;
+                               map {
+                                       perspective_on: 1;
+                                       perspective: "map";
+                               }
+                       }
+                       description {
+                               state: "selected" 0.0;
+                               inherit: "default" 0.0;
+                               map.on: 1;
                        }
                }
                part {
@@ -705,6 +746,15 @@ group {
                                align: 1.0 1.0;
                                color: COLOR_TEXT_FOCUS;
                                fixed: 0 1;
+                               map {
+                                       perspective_on: 1;
+                                       perspective: "map";
+                               }
+                       }
+                       description {
+                               state: "selected" 0.0;
+                               inherit: "default" 0.0;
+                               map.on: 1;
                        }
                }
        }
@@ -724,11 +774,14 @@ group {
                        name: "focus,in,anim";
                        action: STATE_SET "selected" 0.0;
                        target: "defaultbg";
+                       target: "default_image";
                        target: PART_ELM_SWALLOW_THUMBNAIL;
+                       target: PART_ELM_SWALLOW_VIDEO;
                        target: "part_focus1";
                        target: "part_focus2";
                        target: "part_focus3";
                        target: "part_focus4";
+                       target: PART_ELM_TEXT_PLAYTIME;
                        transition: LINEAR 0.17;
                }
                program {
@@ -747,11 +800,14 @@ group {
                        name: "focus,out,anim";
                        action: STATE_SET "default" 0.0;
                        target: PART_ELM_SWALLOW_THUMBNAIL;
+                       target: PART_ELM_SWALLOW_VIDEO;
                        target: "defaultbg";
+                       target: "default_image";
                        target: "part_focus1";
                        target: "part_focus2";
                        target: "part_focus3";
                        target: "part_focus4";
+                       target: PART_ELM_TEXT_PLAYTIME;
                }
                program {
                        name: "selected";