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