diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/live-tv.edc | 1 | ||||
-rw-r--r-- | data/view/channelnumber.edc | 327 |
2 files changed, 328 insertions, 0 deletions
diff --git a/data/live-tv.edc b/data/live-tv.edc index 26d27bf..8a77133 100644 --- a/data/live-tv.edc +++ b/data/live-tv.edc @@ -18,4 +18,5 @@ collections { #include "view/channelinfo.edc" + #include "view/channelnumber.edc" } diff --git a/data/view/channelnumber.edc b/data/view/channelnumber.edc new file mode 100644 index 0000000..9892029 --- /dev/null +++ b/data/view/channelnumber.edc @@ -0,0 +1,327 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * + * 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. + */ + +#include "../../include/define.h" + +group { + name, GRP_VIEW_CHANNELNUMBER; + parts { + part { + name, "padding.channelnumber"; + type, SPACER; + description { + state, "default" 0.0; + rel1.relative, 0.0 0.0; + rel2.relative, 0.0 0.0; + align, 0.0 0.0; + min, 62 48; + fixed, 1 1; + } + } + part { + name, "part.channelnumber.info"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "padding.channelnumber"; + relative, 1.0 1.0; + } + rel2 { + to, "padding.channelnumber"; + relative, 1.0 1.0; + } + min, 216 90; + align, 0.0 0.0; + fixed, 1 1; + visible, 0; + } + + part { + name, "padding.channelnumber.channel_prefix"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.0 0.0; + rel2.relative, 0.0 0.0; + min, 0 34; + align, 0.0 0.0; + fixed, 1 1; + } + } + part { + name, "part.channelnumber.channel_prefix"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "padding.channelnumber.channel_prefix"; + relative, 0.0 1.0; + } + rel2 { + to, "padding.channelnumber.channel_prefix"; + relative, 0.0 1.0; + } + text { + font, FONT_LIGHT; + text, STR_CHANNEL_PREFIX; + size, 46; + align, 1.0 0.5; + min, 1 0; + ellipsis, -1; + } + color, COLOR_TEXT_TRANS; + min, 0 46; + align, 0.0 0.0; + fixed, 1 1; + } + } + part { + name, "padding.channelnumber.channel"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to_x, "part.channelnumber.channel_prefix"; + relative, 1.0 0.0; + } + rel2 { + to_x, "part.channelnumber.channel_prefix"; + relative, 1.0 1.0; + } + min, 26 0; + align, 0.0 0.0; + fixed, 1 1; + } + } + part { + name, PART_CHANNELNUMBER_NUMBER; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to_x, "padding.channelnumber.channel"; + relative, 1.0 0.0; + } + rel2 { + to_x, "padding.channelnumber.channel"; + relative, 1.0 0.0; + } + text { + font, FONT_LIGHT; + size, 80; + align, 0.0 0.5; + min, 1 0; + ellipsis, -1; + } + color, COLOR_TEXT_TRANS; + min, 0 90; + align, 0.0 0.0; + fixed, 1 1; + } + } + } + part { + name, "padding.list"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "part.channelnumber.info"; + relative, 0.0 1.0; + } + rel2 { + to, "part.channelnumber.info"; + relative, 1.0 1.0; + } + min, 0 38; + align, 0.0 0.0; + fixed, 1 1; + } + } + part { + name, "bg.list.border"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "padding.list"; + relative, 0.0 1.0; + } + rel2 { + to, "padding.list"; + relative, 1.0 1.0; + } + color, COLOR_OPTION_BORDER; + min, 216 224; + align, 0.0 0.0; + fixed, 1 1; + } + } + part { + name, "bg.list"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "bg.list.border"; + relative, 0.5 0.5; + } + rel2 { + to, "bg.list.border"; + relative, 0.5 0.5; + } + color, COLOR_BG_NORMAL; + min, 214 222; + align, 0.5 0.5; + fixed, 1 1; + } + } + part { + name, PART_CHANNELNUMBER_LIST; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "bg.list"; + relative, 0.0 0.0; + } + rel2 { + to, "bg.list"; + relative, 1.0 1.0; + } + align, 0.0 0.0; + fixed, 1 1; + } + } + } +} + +group { + name, GRP_CHANNELNUMBER_LIST_ITEM; + parts { + part { + name, "bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + color, COLOR_BG_NORMAL; + min, 216 56; + align, 0.0 0.0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + color, COLOR_BG_FOCUSED; + } + } + part { + name, "padding.left"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "bg"; + relative, 0.0 0.0; + } + rel2 { + to, "bg"; + relative, 0.0 1.0; + } + align, 0.0 0.0; + min, 30 0; + fixed, 1 1; + } + } + part { + name, "padding.right"; + type, SPACER; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "bg"; + relative, 1.0 0.0; + } + rel2 { + to, "bg"; + relative, 1.0 1.0; + } + align, 1.0 0.0; + min, 30 0; + fixed, 1 1; + } + } + part { + name, PART_TEXT; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to_x, "padding.left"; + relative, 1.0 0.0; + } + rel2 { + to_x, "padding.right"; + relative, 0.0 1.0; + } + text { + font, FONT_LIGHT; + size, 28; + align, 0.0 0.5; + } + color, COLOR_OPTION_TEXT_NORMAL; + align, 0.0 0.0; + } + description { + state, "focused" 0.0; + inherit, "default" 0.0; + color, COLOR_TEXT_FOCUSED; + } + } + } + programs { + program { + name, "focused"; + signal, SIGNAL_FOCUSED; + source, SOURCE_ELM; + action, STATE_SET "focused" 0.0; + target, "bg"; + target, PART_TEXT; + } + program { + name, "unfocused"; + signal, SIGNAL_UNFOCUSED; + source, SOURCE_ELM; + action, STATE_SET "default" 0.0; + target, "bg"; + target, PART_TEXT; + } + } +} + |