diff options
author | Hyojung Jo <hj903.jo@samsung.com> | 2015-07-09 11:28:22 +0900 |
---|---|---|
committer | Hyojung Jo <hj903.jo@samsung.com> | 2015-07-09 11:28:22 +0900 |
commit | 42ed71f3331dede8bb77479caa1a71a27e05fd24 (patch) | |
tree | 415b7c023643ba9cb1ad384568eb89ca2197d126 | |
parent | 96a6b3e9e9dc0e607db471436cea1120f1375bb5 (diff) | |
download | air_favorite-42ed71f3331dede8bb77479caa1a71a27e05fd24.tar.gz air_favorite-42ed71f3331dede8bb77479caa1a71a27e05fd24.tar.bz2 air_favorite-42ed71f3331dede8bb77479caa1a71a27e05fd24.zip |
Added the edc file for each grid style
Change-Id: If646425da604105aae686f943dfe87d300147d0c
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
-rw-r--r-- | include/define.h | 3 | ||||
-rw-r--r-- | res/favorite-theme.edc | 6 | ||||
-rw-r--r-- | res/images/ic_thumbnail_play.png | bin | 0 -> 5710 bytes | |||
-rw-r--r-- | res/widgets/gengrid.edc | 251 | ||||
-rw-r--r-- | res/widgets/gengrid_apps.edc | 107 | ||||
-rw-r--r-- | res/widgets/gengrid_gallery.edc | 156 | ||||
-rw-r--r-- | res/widgets/gengrid_movie.edc | 59 | ||||
-rw-r--r-- | res/widgets/gengrid_music.edc | 235 | ||||
-rw-r--r-- | res/widgets/gengrid_tv.edc | 23 | ||||
-rw-r--r-- | res/widgets/gengrid_webs.edc | 23 |
10 files changed, 841 insertions, 22 deletions
diff --git a/include/define.h b/include/define.h index e91bb6e..2386f86 100644 --- a/include/define.h +++ b/include/define.h @@ -47,4 +47,7 @@ /* Count */ #define COUNT_MENU 6 +/* Image */ +#define PLAY_ICON_PNG "ic_thumbnail_play.png" + #endif /* __AIR_FAVORITE_DEFINE_H__ */ diff --git a/res/favorite-theme.edc b/res/favorite-theme.edc index 7e037c3..4df2d14 100644 --- a/res/favorite-theme.edc +++ b/res/favorite-theme.edc @@ -18,5 +18,11 @@ collections { #include "widgets/gengrid.edc" + #include "widgets/gengrid_tv.edc" + #include "widgets/gengrid_movie.edc" + #include "widgets/gengrid_gallery.edc" + #include "widgets/gengrid_music.edc" + #include "widgets/gengrid_apps.edc" + #include "widgets/gengrid_webs.edc" #include "widgets/button.edc" } diff --git a/res/images/ic_thumbnail_play.png b/res/images/ic_thumbnail_play.png Binary files differnew file mode 100644 index 0000000..4803084 --- /dev/null +++ b/res/images/ic_thumbnail_play.png diff --git a/res/widgets/gengrid.edc b/res/widgets/gengrid.edc index cbf636e..f5649d6 100644 --- a/res/widgets/gengrid.edc +++ b/res/widgets/gengrid.edc @@ -1,29 +1,236 @@ -group { - name, "elm/gengrid/item/style.tv/default"; - /* It will implemented later */ -} +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ group { - name, "elm/gengrid/item/style.movie/default"; - /* It will implemented later */ -} + name, "elm/gengrid/item/style.base/default"; + data.item, "focus_highlight" "on"; + data.item, "text" "elm.text"; + data.item, "contents" "elm.swallow.icon"; + parts { + part { + name, "padding.bottom.right"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 26 26; + rel1.relative, 1.0 1.0; + align, 1.0 1.0; + fixed, 1 1; + } + } -group { - name, "elm/gengrid/item/style.gallery/default"; - /* It will implemented later */ -} + part { + name, "text.bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + /* FIXME: The color is temporarily defined. */ + color, 113 128 147 100; + min, 378 82; + rel1.to, "padding.bottom.right"; + rel2 { + to, "padding.bottom.right"; + relative, 0.0 0.0; + } + align, 1.0 1.0; + fixed, 1 1; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + color, 0 119 246 255; + } + } -group { - name, "elm/gengrid/item/style.music/default"; - /* It will implemented later */ -} + part { + name, "padding.elm.text"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 18 0; + rel1.to, "text.bg"; + rel2 { + to, "text.bg"; + relative, 0.0 1.0; + } + align, 0.0 0.5; + fixed, 1 0; + } + } -group { - name, "elm/gengrid/item/style.apps/default"; - /* It will implemented later */ -} + part { + name, "elm.text"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + color, 255 255 255 255; + min, 342 82; + rel1 { + to, "padding.elm.text"; + relative, 1.0 0.0; + } + rel2 { + to, "padding.elm.text"; + relative, 1.0 0.0; + } + align, 0.0 0.0; + fixed, 1 1; + text { + font, FONT_TIZENSANS_LIGHT; + size, 28; + align, 0.0 0.5; + } + } + } -group { - name, "elm/gengrid/item/style.webs/default"; - /* It will implemented later */ + part { + name, "elm.swallow.icon"; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + min, 378 212; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + } + } + + part { + name, "part.focus.up"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 0 119 246 255; + min, 378 3; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + visible, 0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.left"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 0 119 246 255; + min, 3 212; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + visible, 0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.down"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 0 119 246 255; + min, 378 3; + rel1 { + to, "part.focus.left"; + relative, 0.0 1.0; + } + rel2 { + to, "part.focus.left"; + relative, 0.0 1.0; + } + align, 0.0 1.0; + fixed, 1 1; + visible, 0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.right"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 0 119 246 255; + min, 3 212; + rel1 { + to, "part.focus.up"; + relative, 1.0 0.0; + } + rel2 { + to, "part.focus.up"; + relative, 1.0 0.0; + } + align, 1.0 0.0; + fixed, 1 1; + visible, 0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + } + + programs { + program { + name, SIG_FOCUSED; + signal, "elm,state,focused"; + source, "elm"; + action, STATE_SET "focused" 0.0; + target, "part.focus.up"; + target, "part.focus.left"; + target, "part.focus.down"; + target, "part.focus.right"; + target, "text.bg"; + } + + program { + name, SIG_UNFOCUSED; + signal, "elm,state,unfocused"; + source, "elm"; + action, STATE_SET "default" 0.0; + target, "part.focus.up"; + target, "part.focus.left"; + target, "part.focus.down"; + target, "part.focus.right"; + target, "text.bg"; + } + } } diff --git a/res/widgets/gengrid_apps.edc b/res/widgets/gengrid_apps.edc new file mode 100644 index 0000000..2b67f4a --- /dev/null +++ b/res/widgets/gengrid_apps.edc @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +group { + name, "elm/gengrid/item/style.apps/default"; + inherit, "elm/gengrid/item/style.base/default"; + parts { + part { + name, "text.bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 212 82; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + color, 0 119 246 255; + } + } + + part { + name, "elm.text"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + min, 176 82; + } + } + + part { + name, "padding.elm.icon"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 56 56; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + } + } + + part { + name, "elm.swallow.icon"; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + min, 100 100; + rel1 { + to, "padding.elm.icon"; + relative, 1.0 1.0; + } + rel2 { + to, "padding.elm.icon"; + relative, 1.0 1.0; + } + } + } + + part { + name, "part.focus.up"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 212 3; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.down"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 212 3; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + } +} diff --git a/res/widgets/gengrid_gallery.edc b/res/widgets/gengrid_gallery.edc new file mode 100644 index 0000000..f76a522 --- /dev/null +++ b/res/widgets/gengrid_gallery.edc @@ -0,0 +1,156 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +group { + name, "elm/gengrid/item/style.gallery/default"; + inherit, "elm/gengrid/item/style.base/default"; + parts { + part { + name, "padding.bottom.right"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 6 6; + } + } + + part { + name, "text.bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + visible, 0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + } + } + + part { + name, "elm.swallow.icon"; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + min, 200 200; + } + } + + part { + name, "padding.elm.text"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 12 12; + rel1.to, "padding.bottom.right"; + rel2 { + to, "padding.bottom.right"; + relative, 0.0 0.0; + } + align, 1.0 1.0; + fixed, 1 1; + } + } + + part { + name, "elm.text"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + color, 255 255 255 255; + min, 74 24; + rel1 { + to, "padding.elm.text"; + relative, 0.0 0.0; + } + rel2 { + to, "padding.elm.text"; + relative, 0.0 0.0; + } + align, 1.0 1.0; + text { + size, 24; + align, 1.0 0.5; + } + } + } + + part { + name, "part.focus.up"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 200 3; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.left"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 3 200; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.down"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 200 3; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.right"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 3 200; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + } +} diff --git a/res/widgets/gengrid_movie.edc b/res/widgets/gengrid_movie.edc new file mode 100644 index 0000000..ea58e05 --- /dev/null +++ b/res/widgets/gengrid_movie.edc @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +group { + name, "elm/gengrid/item/style.movie/default"; + inherit, "elm/gengrid/item/style.base/default"; + images { + image, PLAY_ICON_PNG COMP; + } + + parts { + part { + name, "padding.play.icon"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 149 66; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + } + } + + part { + name, "part.play.icon"; + type, IMAGE; + scale, 1; + description { + state, "default" 0.0; + min, 80 80; + image.normal, PLAY_ICON_PNG; + rel1 { + to, "padding.play.icon"; + relative, 1.0 1.0; + } + rel2 { + to, "padding.play.icon"; + relative, 1.0 1.0; + } + align, 0.0 0.0; + fixed, 1 1; + } + } + } +} diff --git a/res/widgets/gengrid_music.edc b/res/widgets/gengrid_music.edc new file mode 100644 index 0000000..c7df693 --- /dev/null +++ b/res/widgets/gengrid_music.edc @@ -0,0 +1,235 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +group { + name, "elm/gengrid/item/style.music/default"; + inherit, "elm/gengrid/item/style.base/default"; + parts { + part { + name, "text.bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 255 255 255 255; + min, 354 134; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + color, 0 119 246 255; + } + } + + part { + name, "padding.elm.text"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + min, 28 22; + rel2 { + to, "text.bg"; + relative, 0.0 0.0; + } + align, 0.0 0.0; + fixed, 1 1; + } + } + + part { + name, "elm.text"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + color, 51 51 51 255; + min, 302 28; + rel1 { + to, "padding.elm.text"; + relative, 1.0 1.0; + } + rel2 { + to, "padding.elm.text"; + relative, 1.0 1.0; + } + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + color, 255 255 255 255; + } + } + + part { + name, "elm.swallow.icon"; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + min, 134 134; + } + } + + part { + name, "part.focus.up"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 134 3; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.left"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 3 134; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.down"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 134 3; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.focus.right"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 3 134; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + visible, 1; + } + } + + part { + name, "part.inside.line.up"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 194 194 194 255; + min, 488 1; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + } + } + + part { + name, "part.inside.line.left"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 194 194 194 255; + min, 1 134; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + fixed, 1 1; + } + } + + part { + name, "part.inside.line.down"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 194 194 194 255; + min, 488 1; + rel1 { + to, "part.inside.line.left"; + relative, 0.0 1.0; + } + rel2 { + to, "part.inside.line.left"; + relative, 0.0 1.0; + } + align, 0.0 1.0; + fixed, 1 1; + } + } + + part { + name, "part.inside.line.right"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, 194 194 194 255; + min, 1 134; + rel1 { + to, "part.inside.line.up"; + relative, 1.0 0.0; + } + rel2 { + to, "part.inside.line.up"; + relative, 1.0 0.0; + } + align, 0.0 0.0; + fixed, 1 1; + } + } + } + + programs { + program { + name, SIG_FOCUSED; + signal, "elm,state,focused"; + source, "elm"; + action, STATE_SET "focused" 0.0; + target, "elm.text"; + } + + program { + name, SIG_UNFOCUSED; + signal, "elm,state,unfocused"; + source, "elm"; + action, STATE_SET "default" 0.0; + target, "elm.text"; + } + } +} diff --git a/res/widgets/gengrid_tv.edc b/res/widgets/gengrid_tv.edc new file mode 100644 index 0000000..2fc709f --- /dev/null +++ b/res/widgets/gengrid_tv.edc @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +group { + name, "elm/gengrid/item/style.tv/default"; + inherit, "elm/gengrid/item/style.base/default"; + parts { + /* It will be implemented later */ + } +} diff --git a/res/widgets/gengrid_webs.edc b/res/widgets/gengrid_webs.edc new file mode 100644 index 0000000..e652ea9 --- /dev/null +++ b/res/widgets/gengrid_webs.edc @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +group { + name, "elm/gengrid/item/style.webs/default"; + inherit, "elm/gengrid/item/style.base/default"; + parts { + /* It will be implemeted later. */ + } +} |