Migrate from channelinfo view to channelinfo layout
[profile/tv/apps/native/air_livetv.git] / data / view / channelinfo.edc
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http,//www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "../../include/define.h"
18
19 group {
20         name, GRP_VIEW_CHANNELINFO;
21         parts {
22                 part {
23                         name, PART_CONTENT;
24                         type, SWALLOW;
25                         scale, 1;
26                         description {
27                                 state, "default" 0.0;
28                                 rel1.relative, 1.0 0.5;
29                                 rel2.relative, 1.0 0.5;
30                                 min, 536 0;
31                                 align, 1.0 0.5;
32                                 fixed, 1 0;
33                         }
34                 }
35         }
36 }
37
38 group {
39         name, GRP_CHANNELINFO;
40         parts {
41                 part {
42                         name, "bg";
43                         type, RECT;
44                         scale, 1;
45                         description {
46                                 state, "default" 0.0;
47                                 rel1.relative, 1.0 0.5;
48                                 rel2.relative, 1.0 0.5;
49                                 min, 536 174;
50                                 align, 1.0 0.5;
51                                 fixed, 1 1;
52                         }
53                         description {
54                                 state, "focused" 0.0;
55                                 inherit, "default" 0.0;
56                                 color, COLOR_BG_FOCUSED;
57                         }
58                 }
59                 part {
60                         name, "padding.left_top";
61                         type, SPACER;
62                         scale, 1;
63                         description {
64                                 state, "default" 0.0;
65                                 rel1 {
66                                         to, "bg";
67                                         relative, 0.0 0.0;
68                                 }
69                                 rel2 {
70                                         to, "bg";
71                                         relative, 0.0 0.0;
72                                 }
73                                 min, 28 26;
74                                 align, 0.0 0.0;
75                                 fixed, 1 1;
76                         }
77                 }
78                 part {
79                         name, PART_CHANNELINFO_CHANNEL;
80                         type, TEXT;
81                         scale, 1;
82                         description {
83                                 state, "default" 0.0;
84                                 rel1 {
85                                         to, "padding.left_top";
86                                         relative, 1.0 1.0;
87                                 }
88                                 rel2 {
89                                         to, "padding.left_top";
90                                         relative, 1.0 1.0;
91                                 }
92                                 text {
93                                         font, FONT_LIGHT;
94                                         size, 28;
95                                         align, 0.0 0.5;
96                                 }
97                                 color, COLOR_TEXT_NORMAL;
98                                 min, 344 32;
99                                 align, 0.0 0.0;
100                                 fixed, 1 1;
101                         }
102                         description {
103                                 state, "focused" 0.0;
104                                 inherit, "default" 0.0;
105                                 color, COLOR_TEXT_FOCUSED;
106                         }
107                 }
108                 part {
109                         name, "padding.title";
110                         type, SPACER;
111                         scale, 1;
112                         description {
113                                 state, "default" 0.0;
114                                 rel1 {
115                                         to, PART_CHANNELINFO_CHANNEL;
116                                         relative, 0.0 1.0;
117                                 }
118                                 rel2 {
119                                         to, PART_CHANNELINFO_CHANNEL;
120                                         relative, 0.0 1.0;
121                                 }
122                                 min, 0 6;
123                                 align, 0.0 0.0;
124                                 fixed, 1 1;
125                         }
126                 }
127                 part {
128                         name, PART_CHANNELINFO_TITLE;
129                         type, TEXT;
130                         scale, 1;
131                         description {
132                                 state, "default" 0.0;
133                                 rel1 {
134                                         to, "padding.title";
135                                         relative, 0.0 1.0;
136                                 }
137                                 rel2 {
138                                         to, "padding.title";
139                                         relative, 0.0 1.0;
140                                 }
141                                 text {
142                                         font, FONT_LIGHT;
143                                         size, 28;
144                                         align, 0.0 0.5;
145                                 }
146                                 color, COLOR_TEXT_NORMAL;
147                                 min, 484 32;
148                                 align, 0.0 0.0;
149                                 fixed, 1 1;
150                         }
151                         description {
152                                 state, "focused" 0.0;
153                                 inherit, "default" 0.0;
154                                 color, COLOR_TEXT_FOCUSED;
155                         }
156                 }
157                 part {
158                         name, "padding.time";
159                         type, SPACER;
160                         scale, 1;
161                         description {
162                                 state, "default" 0.0;
163                                 rel1 {
164                                         to, PART_CHANNELINFO_TITLE;
165                                         relative, 0.0 1.0;
166                                 }
167                                 rel2 {
168                                         to, PART_CHANNELINFO_TITLE;
169                                         relative, 0.0 1.0;
170                                 }
171                                 min, 0 24;
172                                 align, 0.0 0.0;
173                                 fixed, 1 1;
174                         }
175                 }
176                 part {
177                         name, PART_CHANNELINFO_TIME;
178                         type, TEXT;
179                         scale, 1;
180                         description {
181                                 state, "default" 0.0;
182                                 rel1 {
183                                         to, "padding.time";
184                                         relative, 0.0 1.0;
185                                 }
186                                 rel2 {
187                                         to, "padding.time";
188                                         relative, 0.0 1.0;
189                                 }
190                                 text {
191                                         font, FONT_LIGHT;
192                                         size, 28;
193                                         align, 0.0 0.5;
194                                 }
195                                 color, 112 112 112 255;
196                                 min, 484 28;
197                                 align, 0.0 0.0;
198                                 fixed, 1 1;
199                         }
200                         description {
201                                 state, "focused" 0.0;
202                                 inherit, "default" 0.0;
203                                 color, COLOR_TEXT_FOCUSED;
204                         }
205                 }
206                 part {
207                         name, "padding.right_top";
208                         type, SPACER;
209                         scale, 1;
210                         description {
211                                 state, "default" 0.0;
212                                 rel1 {
213                                         to, "bg";
214                                         relative, 1.0 0.0;
215                                 }
216                                 rel2 {
217                                         to, "bg";
218                                         relative, 1.0 0.0;
219                                 }
220                                 min, 22 28;
221                                 align, 1.0 0.0;
222                                 fixed, 1 1;
223                         }
224                 }
225                 part {
226                         name, PART_CHANNELINFO_STATUS;
227                         type, SWALLOW;
228                         scale, 1;
229                         description {
230                                 state, "default" 0.0;
231                                 rel1 {
232                                         to, "padding.right_top";
233                                         relative, 0.0 1.0;
234                                 }
235                                 rel2 {
236                                         to, "padding.right_top";
237                                         relative, 0.0 1.0;
238                                 }
239                                 min, 142 28;
240                                 align, 1.0 0.0;
241                                 fixed, 1 1;
242                         }
243                 }
244         }
245         programs {
246                 program {
247                         name, "focused";
248                         signal, SIGNAL_FOCUSED;
249                         source, SOURCE_ELM;
250                         action, STATE_SET "focused" 0.0;
251                         target, "bg";
252                         target, PART_CHANNELINFO_CHANNEL;
253                         target, PART_CHANNELINFO_TITLE;
254                         target, PART_CHANNELINFO_TIME;
255                 }
256                 program {
257                         name, "unfocused";
258                         signal, SIGNAL_UNFOCUSED;
259                         source, SOURCE_ELM;
260                         action, STATE_SET "default" 0.0;
261                         target, "bg";
262                         target, PART_CHANNELINFO_CHANNEL;
263                         target, PART_CHANNELINFO_TITLE;
264                         target, PART_CHANNELINFO_TIME;
265                 }
266         }
267 }