movie: modify edc file for grid item 24/44124/2
authorJehun Lim <jehun.lim@samsung.com>
Thu, 16 Jul 2015 08:25:01 +0000 (17:25 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Fri, 17 Jul 2015 04:42:26 +0000 (13:42 +0900)
1. change default backgroud color of text area
2. add animation for text area when item is selected
3. add default image

Change-Id: Id0907aa5e06802399c84cae1bed5de83a8952eba
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
include/define.h
res/edc/widgets/gengrid.edc

index 8b0d879..a924abf 100644 (file)
@@ -42,7 +42,7 @@
 #define COLOR_TEXT_FOCUS 255 255 255 255
 #define COLOR_TEXT_SELECTED 64 136 211 255
 #define COLOR_TEXT_DISABLED 87 87 87 128
-#define COLOR_ITEM_BG 56 55 59 255
+#define COLOR_ITEM_BG 113 128 147 255
 #define COLOR_ITEM_FOCUS 0 119 246 255
 #define COLOR_ITEM_FOCUS_0 0 119 246 0
 #define COLOR_ITEM_SELECTED 64 136 211 255
index 02b1af6..261c141 100644 (file)
@@ -20,6 +20,9 @@ group {
        data.item: "texts" "elm.text.title";
        data.item: "contents" "elm.swallow.thumbnail";
        data.item: "focus_highlight" "on";
+       images {
+               image: IMAGE_PREVIEW_PLAY COMP;
+       }
        parts {
                part {
                        name: "elm.padding.bottom_right";
@@ -109,6 +112,34 @@ group {
                        }
                }
                part {
+                       name: "default_image";
+                       type: IMAGE;
+                       scale: 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_PREVIEW_PLAY;
+                               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 {
                        name: "part_focus1";
                        type: RECT;
                        mouse_events: 0;
@@ -235,6 +266,16 @@ group {
                                align: 0.5 1.0;
                                color: COLOR_ITEM_BG;
                                fixed: 0 1;
+                               map {
+                                       perspective_on: 1;
+                                       perspective: "map";
+                               }
+                       }
+                       description {
+                               state: "selected" 0.0;
+                               inherit: "default" 0.0;
+                               color: COLOR_ITEM_FOCUS;
+                               map.on: 1;
                        }
                }
                part {
@@ -353,12 +394,19 @@ group {
                        name: "focus,in,anim";
                        action: STATE_SET "selected" 0.0;
                        target: "defaultbg";
+                       target: "default_image";
                        target: PART_ELM_SWALLOW_THUMBNAIL;
                        target: "part_focus1";
                        target: "part_focus2";
                        target: "part_focus3";
                        target: "elm.bg.text";
                        transition: LINEAR 0.17;
+                       after: "focus,in,anim,2";
+               }
+               program {
+                       name: "focus,in,anim,2";
+                       action: STATE_SET "selected" 0.0;
+                       target: "defaultbg_text";
                }
                program {
                        name: "go_passive";
@@ -366,6 +414,7 @@ group {
                        source: "elm";
                        action: STATE_SET "default" 0.0;
                        target: PART_ELM_TEXT_TITLE;
+                       target: "defaultbg_text";
                        after: "focus,out,anim";
                }
                program {
@@ -376,13 +425,14 @@ group {
                        target: "part_focus3";
                        target: "elm.bg.text";
                        transition: LINEAR 0.17;
-                       after: "focus,out,anim,3";
+                       after: "focus,out,anim,2";
                }
                program {
-                       name: "focus,out,anim,3";
+                       name: "focus,out,anim,2";
                        action: STATE_SET "default" 0.0;
                        target: PART_ELM_SWALLOW_THUMBNAIL;
                        target: "defaultbg";
+                       target: "default_image";
                        target: "part_focus1";
                        target: "part_focus2";
                        target: "part_focus3";