1705237da5dee8dbf9906a152b9ad8ea493deee8
[profile/tv/apps/native/air_favorite.git] / res / favorite.edc
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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 collections {
20         group {
21                 name, GRP_VIEW_BASE;
22                 parts {
23                         part {
24                                 name, "bg";
25                                 type, RECT;
26                                 scale, 1;
27                                 description {
28                                         state, "default" 0.0;
29                                         color, 244 244 244 255;
30                                 }
31                         }
32
33                         part {
34                                 name, "title.bg";
35                                 type, RECT;
36                                 scale, 1;
37                                 description {
38                                         state, "default" 0.0;
39                                         color, 255 255 255 255;
40                                         min, 0 184;
41                                         rel2.relative, 1.0 0.0;
42                                         align, 0.5 0.0;
43                                         fixed, 0 1;
44                                 }
45                         }
46
47                         part {
48                                 name, "padding.title";
49                                 type, SPACER;
50                                 scale, 1;
51                                 description {
52                                         state, "default" 0.0;
53                                         min, 0 44;
54                                         rel2.relative, 1.0 0.0;
55                                         align, 0.5 0.0;
56                                         fixed, 0 1;
57                                 }
58                         }
59
60                         part {
61                                 name, PART_TOP_TITLE;
62                                 type, TEXT;
63                                 scale, 1;
64                                 description {
65                                         state, "default" 0.0;
66                                         color, 51 51 51 255;
67                                         min, 0 46;
68                                         rel1 {
69                                                 to, "padding.title";
70                                                 relative, 0.0 1.0;
71                                         }
72                                         rel2.to, "padding.title";
73                                         align, 0.5 0.0;
74                                         fixed, 0 1;
75                                         text {
76                                                 font, FONT_TIZENSANS_REGULAR;
77                                                 size, 46;
78                                                 align, 0.5 0.5;
79                                         }
80                                 }
81                         }
82
83                         part {
84                                 name, "padding.menu";
85                                 type, SPACER;
86                                 scale, 1;
87                                 description {
88                                         state, "default" 0.0;
89                                         min, 0 12;
90                                         rel1 {
91                                                 to, PART_TOP_TITLE;
92                                                 relative, 0.0 1.0;
93                                         }
94                                         rel2.to, PART_TOP_TITLE;
95                                         fixed, 0 1;
96                                         align, 0.5 0.0;
97                                 }
98                         }
99
100                         part {
101                                 name, PART_TOP_MENU;
102                                 type, SWALLOW;
103                                 scale, 1;
104                                 description {
105                                         state, "default" 0.0;
106                                         min, 0 82;
107                                         rel1 {
108                                                 to, "padding.menu";
109                                                 relative, 0.0 1.0;
110                                         }
111                                         rel2.to, "padding.menu";
112                                         fixed, 0 1;
113                                         align, 0.5 0.0;
114                                 }
115                         }
116
117                         part {
118                                 name, "padding.grid";
119                                 type, SPACER;
120                                 scale, 1;
121                                 description {
122                                         state, "default" 0.0;
123                                         min, 62 318;
124                                         rel2.relative, 0.0 0.0;
125                                         fixed, 1 1;
126                                         align, 0.0 0.0;
127                                 }
128                         }
129
130                         part {
131                                 name, PART_GENGRID;
132                                 type, SWALLOW;
133                                 scale, 1;
134                                 description {
135                                         state, "default" 0.0;
136                                         rel1 {
137                                                 to, "padding.grid";
138                                                 relative, 1.0 1.0;
139                                         }
140                                 }
141                         }
142
143                         part {
144                                 name, "padding.contents.count";
145                                 type, SPACER;
146                                 scale, 1;
147                                 description {
148                                         state, "default" 0.0;
149                                         min, 62 148;
150                                         rel1.relative, 0.0 1.0;
151                                         rel2.relative, 0.0 1.0;
152                                         align, 0.0 1.0;
153                                         fixed, 1 1;
154                                 }
155                         }
156
157                         part {
158                                 name, PART_CONTENTS_COUNT;
159                                 type, TEXT;
160                                 scale, 1;
161                                 description {
162                                         state, "default" 0.0;
163                                         color, 77 77 77 255;
164                                         min, 0 148;
165                                         rel1 {
166                                                 to, "padding.contents.count";
167                                                 relative, 1.0 0.0;
168                                         }
169                                         rel2 {
170                                                 to, "padding.contents.count";
171                                                 relative, 1.0 0.0;
172                                         }
173                                         align, 0.0 0.0;
174                                         fixed, 1 1;
175                                         text {
176                                                 min, 1 1;
177                                                 font, FONT_TIZENSANS_LIGHT;
178                                                 size, 28;
179                                                 align, 0.0 0.5;
180                                                 ellipsis, -1;
181                                         }
182                                 }
183                         }
184
185                         part {
186                                 name, "padding.count.divide.line";
187                                 type, SPACER;
188                                 scale, 1;
189                                 description {
190                                         state, "default" 0.0;
191                                         min, 26 0;
192                                         rel1 {
193                                                 to, PART_CONTENTS_COUNT;
194                                                 relative, 1.0 0.5;
195                                         }
196                                         rel2 {
197                                                 to, PART_CONTENTS_COUNT;
198                                                 relative, 1.0 0.5;
199                                         }
200                                         align, 0.0 0.5;
201                                         fixed, 1 0;
202                                 }
203                         }
204
205                         part {
206                                 name, PART_COUNT_DIVIDE_LINE;
207                                 type, RECT;
208                                 scale, 1;
209                                 description {
210                                         state, "default" 0.0;
211                                         color, 0 0 0 76;
212                                         min, 1 24;
213                                         rel1 {
214                                                 to, "padding.count.divide.line";
215                                                 relative, 1.0 1.0;
216                                         }
217                                         rel2.to, "padding.count.divide.line";
218                                         align, 0.0 0.5;
219                                         fixed, 1 1;
220                                         visible, 0;
221                                 }
222                                 description {
223                                         state, "visible" 0.0;
224                                         inherit, "default" 0.0;
225                                         visible, 1;
226                                 }
227                         }
228
229                         part {
230                                 name, "padding.contents.subcount";
231                                 type, SPACER;
232                                 scale, 1;
233                                 description {
234                                         state, "default" 0.0;
235                                         min, 18 0;
236                                         rel1 {
237                                                 to, PART_COUNT_DIVIDE_LINE;
238                                                 relative, 1.0 0.5;
239                                         }
240                                         rel2 {
241                                                 to, PART_COUNT_DIVIDE_LINE;
242                                                 relative, 1.0 0.5;
243                                         }
244                                         align, 0.0 0.5;
245                                         fixed, 1 0;
246                                 }
247                         }
248
249                         part {
250                                 name, PART_CONTENTS_SUBCOUNT;
251                                 type, TEXT;
252                                 scale, 1;
253                                 description {
254                                         state, "default" 0.0;
255                                         color, 77 77 77 255;
256                                         min, 0 148;
257                                         rel1 {
258                                                 to, "padding.contents.subcount";
259                                                 relative, 1.0 1.0;
260                                         }
261                                         rel2.to, "padding.contents.subcount";
262                                         align, 0.0 0.5;
263                                         fixed, 1 1;
264                                         text {
265                                                 min, 1 1;
266                                                 font, FONT_TIZENSANS_LIGHT;
267                                                 size, 28;
268                                                 align, 0.0 0.5;
269                                                 ellipsis, -1;
270                                         }
271                                 }
272                         }
273
274                         part {
275                                 name, "padding.no.contents1";
276                                 type, SPACER;
277                                 scale, 1;
278                                 description {
279                                         state, "default" 0.0;
280                                         min, 0 318;
281                                         rel2.relative, 0.0 0.0;
282                                         align, 0.5 0.0;
283                                         fixed, 0 1;
284
285                                 }
286                         }
287
288                         part {
289                                 name, "padding.no.contents2";
290                                 type, SPACER;
291                                 scale, 1;
292                                 description {
293                                         state, "default" 0.0;
294                                         min, 0 148;
295                                         rel1.relative, 1.0 1.0;
296                                         align, 0.5 1.0;
297                                         fixed, 0 1;
298                                 }
299                         }
300
301                         part {
302                                 name, PART_NO_CONTENTS;
303                                 type, TEXT;
304                                 scale, 1;
305                                 description {
306                                         state, "default" 0.0;
307                                         color, 0 0 0 178;
308                                         rel1 {
309                                                 to, "padding.no.contents1";
310                                                 relative, 1.0 1.0;
311                                         }
312                                         rel2 {
313                                                 to, "padding.no.contents2";
314                                                 relative, 0.0 0.0;
315                                         }
316                                         text {
317                                                 font, FONT_TIZENSANS_LIGHT;
318                                                 size, 32;
319                                                 align, 0.5 0.5;
320                                         }
321                                 }
322                         }
323                 }
324
325                 programs {
326                         program {
327                                 name, SIG_VISIBLE;
328                                 signal, SIG_VISIBLE;
329                                 source, PART_COUNT_DIVIDE_LINE;
330                                 action, STATE_SET "visible" 0.0;
331                                 target, PART_COUNT_DIVIDE_LINE;
332                         }
333
334                         program {
335                                 name, SIG_INVISIBLE;
336                                 signal, SIG_INVISIBLE;
337                                 source, PART_COUNT_DIVIDE_LINE;
338                                 action, STATE_SET "default" 0.0;
339                                 target, PART_COUNT_DIVIDE_LINE;
340                         }
341                 }
342         }
343
344         group {
345                 name, GRP_VIEW_ACTION_MENU;
346                 parts {
347                         part {
348                                 name, "reference";
349                                 type, RECT;
350                                 scale, 1;
351                                 description {
352                                         state, "default" 0.0;
353                                         min, 500 0;
354                                         rel1.relative, 1.0 0.0;
355                                         align, 0.0 0.5;
356                                         fixed, 1 0;
357                                         visible, 0;
358                                 }
359                                 description {
360                                         state, "show" 0.0;
361                                         inherit, "default" 0.0;
362                                         min, 0 0;
363                                 }
364                         }
365
366                         part {
367                                 name, "bg.dark";
368                                 type, RECT;
369                                 scale, 1;
370                                 description {
371                                         state, "default" 0.0;
372                                         color, 0 0 0 150;
373                                 }
374                         }
375
376                         part {
377                                 name, "bg";
378                                 type, RECT;
379                                 scale, 1;
380                                 description {
381                                         state, "default" 0.0;
382                                         color, 255 255 255 255;
383                                         rel1 {
384                                                 to, "reference";
385                                                 relative, 1.0 0.0;
386                                         }
387                                         rel2.to, "reference";
388                                         min, 500 0;
389                                         align, 1.0 0.5;
390                                         fixed, 1 0;
391                                 }
392                                 description {
393                                         state, "show" 0.0;
394                                         inherit, "default" 0.0;
395                                 }
396                         }
397
398                         part {
399                                 name, "view.divider";
400                                 type, RECT;
401                                 scale, 1;
402                                 description {
403                                         state, "default" 0.0;
404                                         color, 0 0 0 25;
405                                         rel1.to, "bg";
406                                         rel2 {
407                                                 to, "bg";
408                                                 relative, 0.0 1.0;
409                                         }
410                                         min, 1 0;
411                                         align, 1.0 0.5;
412                                         fixed, 1 0;
413                                 }
414                         }
415
416                         part {
417                                 name, "padding.livetv.btn";
418                                 type, SPACER;
419                                 scale, 1;
420                                 description {
421                                         state, "default" 0.0;
422                                         rel1.to, "bg";
423                                         rel2 {
424                                                 to, "bg";
425                                                 relative, 1.0 0.0;
426                                         }
427                                         min, 0 118;
428                                         align, 0.5 0.0;
429                                         fixed, 0 1;
430                                 }
431                         }
432
433                         part {
434                                 name, PART_LIVETV_BTN;
435                                 type, SWALLOW;
436                                 scale, 1;
437                                 description {
438                                         state, "default" 0.0;
439                                         rel1 {
440                                                 to, "padding.livetv.btn";
441                                                 relative, 0.5 0.5;
442                                         }
443                                         rel2 {
444                                                 to, "padding.livetv.btn";
445                                                 relative, 0.5 0.5;
446                                         }
447                                         min, 327 64;
448                                         align, 0.5 0.5;
449                                         fixed, 1 1;
450                                 }
451                         }
452
453                         part {
454                                 name, "padding.menu.divider.up";
455                                 type, RECT;
456                                 scale, 1;
457                                 description {
458                                         state, "default" 0.0;
459                                         color, 224 224 224 255;
460                                         rel1 {
461                                                 to, "padding.livetv.btn";
462                                                 relative, 0.0 1.0;
463                                         }
464                                         rel2.to, "padding.livetv.btn";
465                                         min, 0 1;
466                                         align, 0.5 1.0;
467                                         fixed, 0 1;
468                                 }
469                         }
470
471                         part {
472                                 name, PART_ACTION_MENU;
473                                 type, SWALLOW;
474                                 scale, 1;
475                                 description {
476                                         state, "default" 0.0;
477                                         rel1 {
478                                                 to, "padding.menu.divider.up";
479                                                 relative, 0.0 1.0;
480                                         }
481                                         rel2 {
482                                                 to, "padding.menu.divider.up";
483                                                 relative, 0.0 1.0;
484                                         }
485                                         min, 0 124;
486                                         align, 0.0 0.0;
487                                         fixed, 1 1;
488                                 }
489                         }
490
491                         part {
492                                 name, "padding.menu.divider.down";
493                                 type, RECT;
494                                 scale, 1;
495                                 description {
496                                         state, "default" 0.0;
497                                         color, 224 224 224 255;
498                                         rel1 {
499                                                 to, PART_ACTION_MENU;
500                                                 relative, 0.0 1.0;
501                                         }
502                                         rel2 {
503                                                 to, PART_ACTION_MENU;
504                                                 relative, 0.0 1.0;
505                                         }
506                                         min, 500 1;
507                                         align, 0.0 0.0;
508                                         fixed, 1 1;
509                                 }
510                         }
511
512                         part {
513                                 name, "padding.info.banner";
514                                 type, SPACER;
515                                 scale, 1;
516                                 description {
517                                         state, "default" 0.0;
518                                         min, 40 40;
519                                         rel2.relative, 0.0 0.0;
520                                         align, 0.0 0.0;
521                                         fixed, 1 1;
522                                 }
523                         }
524
525                         part {
526                                 name, PART_BANNER;
527                                 type, SWALLOW;
528                                 scale, 1;
529                                 description {
530                                         state, "default" 0.0;
531                                         min, 536 174;
532                                         rel1 {
533                                                 to, "padding.info.banner";
534                                                 relative, 1.0 1.0;
535                                         }
536                                         rel2.to, "padding.info.banner";
537                                         align, 0.0 0.0;
538                                         fixed, 1 1;
539                                 }
540                         }
541                 }
542
543                 programs {
544                         program {
545                                 name, SIG_SHOW;
546                                 signal, SIG_SHOW;
547                                 source, SRC_EDC;
548                                 action, STATE_SET "show" 0.0;
549                                 transition, TRANSITION_MENU_SHOW;
550                                 target, "reference";
551                                 target, "bg";
552                         }
553
554                         program {
555                                 name, SIG_HIDE;
556                                 signal, SIG_HIDE;
557                                 source, SRC_EDC;
558                                 action, STATE_SET "default" 0.0;
559                                 transition, TRANSITION_MENU_HIDE;
560                                 target, "reference";
561                                 target, "bg";
562                                 after, SIG_HIDE_DONE;
563                         }
564
565                         program {
566                                 name, SIG_HIDE_DONE;
567                                 action, SIGNAL_EMIT SIG_HIDE_DONE SRC_EDC;
568                         }
569                 }
570         }
571
572         group {
573                 name, GRP_TV_BANNER;
574                 parts {
575                         part {
576                                 name, "bg";
577                                 type, RECT;
578                                 scale, 1;
579                                 description {
580                                         state, "default" 0.0;
581                                         color, 255 255 255 255;
582                                 }
583                         }
584
585                         part {
586                                 name, "padding.title.left.top";
587                                 type, SPACER;
588                                 scale, 1;
589                                 description {
590                                         state, "default" 0.0;
591                                         min, 28 26;
592                                         rel2.relative, 0.0 0.0;
593                                         align, 0.0 0.0;
594                                         fixed, 1 1;
595                                 }
596                         }
597
598                         part {
599                                 name, "padding.title.right.top";
600                                 type, SPACER;
601                                 scale, 1;
602                                 description {
603                                         state, "default" 0.0;
604                                         min, 28 26;
605                                         rel1.relative, 1.0 0.0;
606                                         rel2.relative, 1.0 0.0;
607                                         align, 1.0 0.0;
608                                         fixed, 1 1;
609                                 }
610                         }
611
612                         part {
613                                 name, PART_TITLE;
614                                 type, TEXT;
615                                 scale, 1;
616                                 description {
617                                         state, "default" 0.0;
618                                         color, 51 51 51 255;
619                                         min, 0 32;
620                                         rel1 {
621                                                 to, "padding.title.left.top";
622                                                 relative, 1.0 1.0;
623                                         }
624                                         rel2 {
625                                                 to, "padding.title.right.top";
626                                                 relative, 0.0 1.0;
627                                         }
628                                         align, 0.5 0.0;
629                                         fixed, 0 1;
630                                         text {
631                                                 font, FONT_TIZENSANS_LIGHT;
632                                                 size, 28;
633                                                 align, 0.0 0.5;
634                                         }
635                                 }
636                         }
637
638                         part {
639                                 name, "padding.text";
640                                 type, SPACER;
641                                 scale, 1;
642                                 description {
643                                         state, "default" 0.0;
644                                         min, 0 6;
645                                         rel1 {
646                                                 to, "part.title";
647                                                 relative, 0.0 1.0;
648                                         }
649                                         rel2.to, "part.title";
650                                         align, 0.5 0.0;
651                                         fixed, 0 1;
652                                 }
653                         }
654
655                         part {
656                                 name, PART_SUBTITLE;
657                                 type, TEXT;
658                                 scale, 1;
659                                 description {
660                                         state, "default" 0.0;
661                                         color, 51 51 51 255;
662                                         min, 0 32;
663                                         rel1 {
664                                                 to, "padding.text";
665                                                 relative, 0.0 1.0;
666                                         }
667                                         rel2.to, "padding.text";
668                                         align, 0.5 0.0;
669                                         fixed, 0 1;
670                                         text {
671                                                 font, FONT_TIZENSANS_LIGHT;
672                                                 size, 28;
673                                                 align, 0.0 0.5;
674                                         }
675                                 }
676                         }
677
678                         part {
679                                 name, "padding.description";
680                                 type, SPACER;
681                                 scale, 1;
682                                 description {
683                                         state, "default" 0.0;
684                                         min, 0 24;
685                                         rel1 {
686                                                 to, "part.subtitle";
687                                                 relative, 0.0 1.0;
688                                         }
689                                         rel2.to, "part.subtitle";
690                                         align, 0.5 0.0;
691                                         fixed, 0 1;
692                                 }
693                         }
694
695                         part {
696                                 name, PART_DESCRIPT;
697                                 type, TEXT;
698                                 scale, 1;
699                                 description {
700                                         state, "default" 0.0;
701                                         color, 112 112 112 255;
702                                         min, 0 28;
703                                         rel1 {
704                                                 to, "padding.description";
705                                                 relative, 0.0 1.0;
706                                         }
707                                         rel2.to, "padding.description";
708                                         align, 0.5 0.0;
709                                         fixed, 0 1;
710                                         text {
711                                                 font, FONT_TIZENSANS_LIGHT;
712                                                 size, 28;
713                                                 align, 0.0 0.5;
714                                         }
715                                 }
716                         }
717                 }
718         }
719 }