add recent preview and icon group 48/41648/1
authorSoohye Shin <soohye.shin@samsung.com>
Wed, 17 Jun 2015 08:05:47 +0000 (17:05 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Wed, 17 Jun 2015 08:05:47 +0000 (17:05 +0900)
Change-Id: Idf682370bfa7b3409f26fc8be408336a4fd6221e
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
edje/view/recent.edc
include/defs.h

index 3659787..49289b2 100644 (file)
@@ -253,3 +253,524 @@ group {
        }
 }
 
+group {
+       name, GRP_RECENT_PREVIEW;
+       parts {
+               part {
+                       name, "bg";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 378 294;
+                               color, 0 0 0 70;
+                       }
+                       description {
+                               state, "focus" 0.0;
+                               inherit, "default" 0.0;
+                               color, 22 120 224 255;
+                       }
+               }
+               part {
+                       name, "pad.thumbnail.left";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 1 1;
+                               rel2.relative, 0.0 0.0;
+                               align, 0.0 0.0;
+                               fixed, 1 1;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "pad.thumbnail.right";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 1 1;
+                               rel1.relative, 1.0 0.0;
+                               rel2.relative, 1.0 0.0;
+                               align, 1.0 0.0;
+                               fixed, 1 1;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_THUMBNAIL;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.thumbnail.left";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.thumbnail.right";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 0 198;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+               part {
+                       name, "pad.icon";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 0.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 0.0;
+                               }
+                               min, 3 3;
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_ICON;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.icon";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.icon";
+                                       relative, 1.0 1.0;
+                               }
+                               min, 60 60;
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                       }
+               }
+               part {
+                       name, "pad.fav";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 0.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 0.0;
+                               }
+                               min, 3 3;
+                               fixed, 1 1;
+                               align, 1.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_FAVORITE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.fav";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.fav";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 60 60;
+                               fixed, 1 1;
+                               align, 1.0 0.0;
+                       }
+               }
+               part {
+                       name, "pad.text.left";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 16 18;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 1.0;
+                               }
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "pad.text.right";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 16 18;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 1.0;
+                               }
+                               fixed, 1 1;
+                               align, 1.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_TITLE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.text.left";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.text.right";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 0 27;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+               part {
+                       name, "pad.text.subtitle";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, PART_RECENT_TITLE;
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_TITLE;
+                                       relative, 1.0 1.0;
+                               }
+                               min, 0 9;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_SUBTITLE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.text.subtitle";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.text.subtitle";
+                                       relative, 1.0 1.0;
+                               }
+                               min, 0 24;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+       }
+       programs {
+               program {
+                       name, "sig,focus";
+                       signal, SIG_FOCUS;
+                       source, SRC_PROG;
+                       action, STATE_SET "focus" 0.0;
+                       transition, LINEAR 0.5;
+                       target, "bg";
+               }
+               program {
+                       name, "sig,unfocus";
+                       signal, SIG_UNFOCUS;
+                       source, SRC_PROG;
+                       action, STATE_SET "default" 0.0;
+                       transition, LINEAR 0.5;
+                       target, "bg";
+               }
+       }
+}
+
+group {
+       name, GRP_RECENT_ICON;
+       parts {
+               part {
+                       name, "bg";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 235 294;
+                               color, 0 0 0 70;
+                       }
+                       description {
+                               state, "focus" 0.0;
+                               inherit, "default" 0.0;
+                               color, 22 120 224 255;
+                       }
+               }
+               part {
+                       name, "pad.thumbnail.left";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 1 1;
+                               rel2.relative, 0.0 0.0;
+                               align, 0.0 0.0;
+                               fixed, 1 1;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "pad.thumbnail.right";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 1 1;
+                               rel1.relative, 1.0 0.0;
+                               rel2.relative, 1.0 0.0;
+                               align, 1.0 0.0;
+                               fixed, 1 1;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_THUMBNAIL;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.thumbnail.left";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.thumbnail.right";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 0 198;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+               part {
+                       name, "pad.icon";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 0.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 0.0;
+                               }
+                               min, 3 3;
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_ICON;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.icon";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.icon";
+                                       relative, 1.0 1.0;
+                               }
+                               min, 60 60;
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                       }
+               }
+               part {
+                       name, "pad.fav";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 0.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 0.0;
+                               }
+                               min, 3 3;
+                               fixed, 1 1;
+                               align, 1.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_FAVORITE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.fav";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.fav";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 60 60;
+                               fixed, 1 1;
+                               align, 1.0 0.0;
+                       }
+               }
+               part {
+                       name, "pad.text.left";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 16 18;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 0.0 1.0;
+                               }
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "pad.text.right";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 16 18;
+                               rel1 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_THUMBNAIL;
+                                       relative, 1.0 1.0;
+                               }
+                               fixed, 1 1;
+                               align, 1.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_TITLE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.text.left";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.text.right";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 0 27;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+               part {
+                       name, "pad.text.subtitle";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, PART_RECENT_TITLE;
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, PART_RECENT_TITLE;
+                                       relative, 1.0 1.0;
+                               }
+                               min, 0 9;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_SUBTITLE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.text.subtitle";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.text.subtitle";
+                                       relative, 1.0 1.0;
+                               }
+                               min, 0 24;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+       }
+       programs {
+               program {
+                       name, "sig,focus";
+                       signal, SIG_FOCUS;
+                       source, SRC_PROG;
+                       action, STATE_SET "focus" 0.0;
+                       transition, LINEAR 0.5;
+                       target, "bg";
+               }
+               program {
+                       name, "sig,unfocus";
+                       signal, SIG_UNFOCUS;
+                       source, SRC_PROG;
+                       action, STATE_SET "default" 0.0;
+                       transition, LINEAR 0.5;
+                       target, "bg";
+               }
+       }
+}
index d7869fd..e932b53 100644 (file)
@@ -29,6 +29,8 @@
 #define GRP_HOME_ITEM "group.home.item"
 #define GRP_RECENT "group.recent"
 #define GRP_RECENT_DELETE "grp.recent.delete"
+#define GRP_RECENT_ICON "grp.recent.icon"
+#define GRP_RECENT_PREVIEW "grp.recent.preview"
 
 #define PART_HOME_MENU_BAR "part.home.menu.bar"
 #define PART_HOME_UP_ARROW "part.home.up.arrow"
 #define PART_RECENT_DELETE_ICON "part.recent.delete.icon"
 #define PART_RECENT_CONTENTS "part.recent.contents"
 #define PART_RECENT_NO_CONTENTS "part.recent.no.contents"
+#define PART_RECENT_TITLE "part.recent.title"
+#define PART_RECENT_SUBTITLE "part.recent.subtitle"
+#define PART_RECENT_THUMBNAIL "part.recent.thumbnail"
+#define PART_RECENT_ICON "part.recent.icon"
+#define PART_RECENT_FAVORITE "part.recent.favorite"
 
 #define SIG_SHOW_NAVIGATION "sig.show.navigation"
 #define SIG_HIDE_NAVIGATION "sig.hide.navigation"