From: Jehun Lim Date: Thu, 16 Jul 2015 08:17:50 +0000 (+0900) Subject: gallery: add default image X-Git-Tag: accepted/tizen/tv/20150728.070555~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=442de7b2089ebdcb94febe46ed62d5c25df103d1;p=profile%2Ftv%2Fapps%2Fnative%2Fair_mediahub.git gallery: add default image Change-Id: I9fca6637cc2e989c0cbc304932e3320b4875572a Signed-off-by: Jehun Lim --- diff --git a/include/view/base.h b/include/view/base.h index aa909e6..2ddd8ef 100644 --- a/include/view/base.h +++ b/include/view/base.h @@ -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 index 0000000..04d17f6 Binary files /dev/null and b/res/edc/images/ic_thumbnail_picture.png differ diff --git a/res/edc/widgets/gengrid.edc b/res/edc/widgets/gengrid.edc index 3703001..02b1af6 100644 --- a/res/edc/widgets/gengrid.edc +++ b/res/edc/widgets/gengrid.edc @@ -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";