From 42ed71f3331dede8bb77479caa1a71a27e05fd24 Mon Sep 17 00:00:00 2001 From: Hyojung Jo Date: Thu, 9 Jul 2015 11:28:22 +0900 Subject: [PATCH] Added the edc file for each grid style Change-Id: If646425da604105aae686f943dfe87d300147d0c Signed-off-by: Hyojung Jo --- include/define.h | 3 + res/favorite-theme.edc | 6 + res/images/ic_thumbnail_play.png | Bin 0 -> 5710 bytes res/widgets/gengrid.edc | 251 +++++++++++++++++++++++++++++++++++---- res/widgets/gengrid_apps.edc | 107 +++++++++++++++++ res/widgets/gengrid_gallery.edc | 156 ++++++++++++++++++++++++ res/widgets/gengrid_movie.edc | 59 +++++++++ res/widgets/gengrid_music.edc | 235 ++++++++++++++++++++++++++++++++++++ res/widgets/gengrid_tv.edc | 23 ++++ res/widgets/gengrid_webs.edc | 23 ++++ 10 files changed, 841 insertions(+), 22 deletions(-) create mode 100644 res/images/ic_thumbnail_play.png create mode 100644 res/widgets/gengrid_apps.edc create mode 100644 res/widgets/gengrid_gallery.edc create mode 100644 res/widgets/gengrid_movie.edc create mode 100644 res/widgets/gengrid_music.edc create mode 100644 res/widgets/gengrid_tv.edc create mode 100644 res/widgets/gengrid_webs.edc 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 new file mode 100644 index 0000000000000000000000000000000000000000..48030849023250dc8ed1a5ec41159f1421ecde6e GIT binary patch literal 5710 zcmbVQcQ~7E+m9`F?bS-PHCiM_jM%eisTf7gAP6EMw%WC7l&V#uwxaeZHA-!@DT<<~ zqE?M+Ykha0_j%s$`{O;{Kfe1&a*v$rIjd!QgbSQl3U!bhI>FS!Wd`p;u1FXS&04`+Gae;H+> zqX$vNxuYR)5piK#n5Za3Qc^@z0xl^jDg+UOiHbpCz(-P8R008)M2Ja2{yumCZSHpV z2z@n;zjXn3^1O~79(V*4>h0|<;w>(Mb9aD>%E-w4ks&4~3{VIYd|f?IKEkeqYyU`4 zLlbP>F?bIQ&K2@UBFYBm=^@VxSo*IeVDUOS{}${@_}fu{%b-3eJXBN!2E}6ktm`jo zf`>l(f6e%h)C5CcJQ}KxCg42XZGru;zxEF^;Jg2>=no-a4dR|V2G|soiyF?>6N`5B z&{C7<1^yAS!`LCzq+qIWakv;vT1{GALR3^*0;a5?t`3(_))1AEl2Q3b#((0Kf~%@& zz{TJ&bqTnrs5)FmSzSt9SrRTGp`i{_SC{#RSId>)fpWD)|DzWJ=>3~l;=l4DRNc`i z51hLp4(IYu1n4>9Ja7a@93G--APEsL#<<$yya|GTw&!1~RYSXDywG+U?l>&uFaIJi z|3SYB3y_03qeWHV;-V@ts(@9zfAiY?e|!c7jDh|Mj{g%Z|2zUB z@XzJHLm#;Lck-ZJfsAnnQe$#M?F@Gc?oul$?~zm$Ev!Aik7dd%`*}|g2g}PWb>ebl$#9j z@e&IQ$cDQZ4PGej3PYh}d4?=x0VBTEn{Bs0odoTkOnWcJDVv#b9aqlN(9pa&I*yQ+ z^Uai(R~!5qU*Kd*cjIh+DohBrb+w&A==+cDxuMXouzKZEt%u{w{aMU`I}p?>V19mnDkClJH2v_b zA~`iRm4%g+b+OsIQjVYhE9(CJsm{>Q&^HwHS0q^2*rYzgRU_%(4fXYKFAon1E?KWF zYoI(hQ&2>9>;Q~Sy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HzRN<3?iRtZ1pJ=V-l0A6q89c=6&AGxMS6{rmUpv&rTjCTwkNU=kA&_9|jxVoH@B zS1&BI`gbk{9DlkqpR`@FI#1ZTJn;p=vto!3c4FUKj^qh!jPi4Ek*>aFT(L!-FPA*= z#Q3#gM*io_3d`0v8D#Wp+4N#UYNqUK^3y%C(3T@6t>fSR{{C}ay}h`Q`R^lJo(bdw z3gf8(b_ax0!})fOhi`%+5TCOnEvV z(8OWe`{YeG9@7e{k=?fMD6b4>rGx$qL_C*o)RHOvh>MB_9x z$6cni_GjHwQ(pQMbY>-@Z6WZ6+7Bauw*fxZUj~vdZW|`=)O0CMk9M)<%+CB^ zH{z6%>G~vexjKr(>3|<(UuiA^9seQOCruuIG%UNDW5A`p21^_4Ph)b4naA!sx^daP z`JO9^#Mu=|+`Q>@`b^N^9Og0u~Ap_P}nbrzPa@|#fZr;FHNCYRD7L(fMbD(~;;5JT8v h@|)q#3#(uv(Dd`i2D)*Kf8G;=wA6LgDpagP{|BkSVrl>Y literal 0 HcmV?d00001 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. */ + } +} -- 2.7.4