From: Soohye Shin Date: Wed, 17 Jun 2015 08:05:47 +0000 (+0900) Subject: add recent preview and icon group X-Git-Tag: accepted/tizen/tv/20150728.070602~64^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1829a0caa4daf76f07b63b43e8a8d9b0957bbe8f;p=profile%2Ftv%2Fapps%2Fnative%2Fair_home.git add recent preview and icon group Change-Id: Idf682370bfa7b3409f26fc8be408336a4fd6221e Signed-off-by: Soohye Shin --- diff --git a/edje/view/recent.edc b/edje/view/recent.edc index 3659787..49289b2 100644 --- a/edje/view/recent.edc +++ b/edje/view/recent.edc @@ -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"; + } + } +} diff --git a/include/defs.h b/include/defs.h index d7869fd..e932b53 100644 --- a/include/defs.h +++ b/include/defs.h @@ -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" @@ -41,6 +43,11 @@ #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"