diff options
author | Jehun Lim <jehun.lim@samsung.com> | 2015-09-17 19:50:39 +0900 |
---|---|---|
committer | Jehun Lim <jehun.lim@samsung.com> | 2015-09-17 20:00:55 +0900 |
commit | 396a961a66d500e29f34d45c02f8ed44df8acf07 (patch) | |
tree | dd1a3cb814634dd6b6c6603200da420510407535 /res | |
parent | 094b7a75ddfd27cb0f352a290f7b79dbb6dd9d40 (diff) | |
download | air_mediahub-396a961a66d500e29f34d45c02f8ed44df8acf07.tar.gz air_mediahub-396a961a66d500e29f34d45c02f8ed44df8acf07.tar.bz2 air_mediahub-396a961a66d500e29f34d45c02f8ed44df8acf07.zip |
music: add album and artist view mode
Change-Id: Iacf502689f966ea9f64de1c13dac9b5dabbd6d72
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/edc/widgets/gengrid.edc | 132 |
1 files changed, 99 insertions, 33 deletions
diff --git a/res/edc/widgets/gengrid.edc b/res/edc/widgets/gengrid.edc index fb6f153..2b9e6fd 100644 --- a/res/edc/widgets/gengrid.edc +++ b/res/edc/widgets/gengrid.edc @@ -15,14 +15,11 @@ */ group { - name: "elm/gengrid/item/movie_item/default"; + name: "elm/gengrid/item/album_item/default"; data.item: "selectraise" "on"; data.item: "texts" "elm.text.title"; - data.item: "contents" "elm.swallow.thumbnail elm.swallow.favorite elm.swallow.textbg"; + data.item: "contents" "elm.swallow.thumbnail elm.swallow.textbg"; data.item: "focus_highlight" "on"; - images { - image: IMAGE_PREVIEW_PLAY COMP; - } parts { part { name: "elm.padding.bottom_right"; @@ -111,34 +108,6 @@ 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: "padding_favorite"; type: SPACER; scale: 1; @@ -433,6 +402,103 @@ group { name: "focus,in,anim"; action: STATE_SET "selected" 0.0; target: "defaultbg"; + target: PART_ELM_SWALLOW_THUMBNAIL; + target: PART_ELM_SWALLOW_FAVORITE; + target: "part_focus1"; + target: "part_focus2"; + target: "part_focus3"; + target: "defaultbg_text"; + transition: TRANSITION_FOCUS; + } + program { + name: "go_passive"; + signal: "elm,state,unfocused"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: PART_ELM_TEXT_TITLE; + after: "focus,out,anim"; + } + program { + name: "focus,out,anim"; + action: STATE_SET "selected_0" 0.0; + target: "part_focus1"; + target: "part_focus2"; + target: "part_focus3"; + target: "defaultbg_text"; + transition: TRANSITION_FOCUS; + after: "focus,out,anim,2"; + } + program { + name: "focus,out,anim,2"; + action: STATE_SET "default" 0.0; + target: PART_ELM_SWALLOW_THUMBNAIL; + target: PART_ELM_SWALLOW_FAVORITE; + target: "defaultbg"; + target: "part_focus1"; + target: "part_focus2"; + target: "part_focus3"; + target: "defaultbg_text"; + } + } +} + +group { + name: "elm/gengrid/item/movie_item/default"; + inherit: "elm/gengrid/item/album_item/default"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text.title"; + data.item: "contents" "elm.swallow.thumbnail elm.swallow.favorite elm.swallow.textbg"; + data.item: "focus_highlight" "on"; + images { + image: IMAGE_PREVIEW_PLAY COMP; + } + parts { + 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; + } + } + } + programs { + program { + name: "go_active"; + signal: "elm,state,focused"; + source: "elm"; + action: STATE_SET "selected_0" 0.0; + target: "part_focus1"; + target: "part_focus2"; + target: "part_focus3"; + target: "defaultbg_text"; + target: PART_ELM_TEXT_TITLE; + after: "focus,in,anim"; + } + program { + name: "focus,in,anim"; + action: STATE_SET "selected" 0.0; + target: "defaultbg"; target: "default_image"; target: PART_ELM_SWALLOW_THUMBNAIL; target: PART_ELM_SWALLOW_FAVORITE; |