Merge "Add action menu show/hide animation" into tizen
[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.0;
29                                 rel2.relative, 1.0 1.0;
30                                 min, 536 0;
31                                 align, 1.0 0.5;
32                                 fixed, 1 0;
33                         }
34                 }
35         }
36 }
37
38 group {
39         name, GRP_LAYOUT_CHANNELINFO;
40         parts {
41                 part {
42                         name, PART_CONTENT;
43                         type, SWALLOW;
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 486;
50                                 align, 0.0 0.5;
51                                 fixed, 1 1;
52                                 visible, 0;
53                         }
54                         description {
55                                 state, "show" 0.0;
56                                 inherit, "default" 0.0;
57                                 align, 1.0 0.5;
58                                 visible, 1;
59                         }
60                 }
61         }
62         programs {
63                 program {
64                         signal, SIGNAL_SHOW;
65                         action, STATE_SET "show" 0.0;
66                         target, PART_CONTENT;
67                         transition, CUBIC_BEZIER 0.5 TRANSITION_EASE_IN_OUT;
68                 }
69                 program {
70                         signal, SIGNAL_HIDE;
71                         source, SOURCE_ELM;
72                         action, STATE_SET "default" 0.0;
73                         target, PART_CONTENT;
74                         transition, CUBIC_BEZIER 0.167 TRANSITION_EASE_OUT;
75                         after, "hide_finished";
76                 }
77                 program {
78                         name, "hide_finished";
79                         action, SIGNAL_EMIT SIGNAL_HIDE_FINISHED SOURCE_ELM;
80                 }
81         }
82 }
83
84 group {
85         name, GRP_LAYOUT_CHANNELINFO_LIST;
86         images {
87                 image, "btn_navigation_up.png" COMP;
88                 image, "btn_navigation_down.png" COMP;
89         }
90         parts {
91                 part {
92                         name, "bg";
93                         type, SPACER;
94                         scale, 1;
95                         description {
96                                 state, "default" 0.0;
97                                 rel1.relative, 1.0 0.5;
98                                 rel2.relative, 1.0 0.5;
99                                 min, 536 486;
100                                 align, 0.0 0.5;
101                                 fixed, 1 1;
102                         }
103                         description {
104                                 state, "show" 0.0;
105                                 inherit, "default" 0.0;
106                                 align, 1.0 0.5;
107                         }
108                 }
109                 part {
110                         name, "part.navigation_up";
111                         type, IMAGE;
112                         scale, 1;
113                         description {
114                                 state, "default" 0.0;
115                                 image.normal, "btn_navigation_up.png";
116                                 rel1 {
117                                         to, "bg";
118                                         relative, 0.5 0.0;
119                                 }
120                                 rel2 {
121                                         to, "bg";
122                                         relative, 0.5 0.0;
123                                 }
124                                 min, 98 34;
125                                 align, 0.5 0.0;
126                                 fixed, 1 1;
127                                 visible, 1;
128                         }
129                 }
130                 part {
131                         name, "padding.next_channel";
132                         type, SPACER;
133                         description {
134                                 state, "default" 0.0;
135                                 rel1 {
136                                         to, "part.navigation_up";
137                                         relative, 0.5 1.0;
138                                 }
139                                 rel2 {
140                                         to, "part.navigation_up";
141                                         relative, 0.5 1.0;
142                                 }
143                                 min, 0 20;
144                                 align, 0.5 0.0;
145                                 fixed, 1 1;
146                         }
147                 }
148                 part {
149                         name, "clip_next";
150                         type, RECT;
151                         description {
152                                 state, "default" 0.0;
153                                 rel1 {
154                                         to, "padding.next_channel";
155                                         relative, 0.5 1.0;
156                                 }
157                                 rel2 {
158                                         to, "padding.next_channel";
159                                         relative, 0.5 1.0;
160                                 }
161                                 min, 536 70;
162                                 align, 0.5 0.0;
163                                 fixed, 1 1;
164                                 color, 255 255 255 0;
165                         }
166                         description {
167                                 state, "show" 0.0;
168                                 inherit, "default" 0.0;
169                                 color, 255 255 255 255;
170                         }
171                 }
172                 part {
173                         name, PART_CHANNELINFO_LIST_NEXT;
174                         type, SWALLOW;
175                         clip_to, "clip_next";
176                         description {
177                                 state, "default" 0.0;
178                                 rel1 {
179                                         to, "clip_next";
180                                         offset, 0 20;
181                                 }
182                                 rel2 {
183                                         to, "clip_next";
184                                         offset, 0 20;
185                                 }
186                         }
187                         description {
188                                 state, "show" 0.0;
189                                 inherit, "default" 0.0;
190                                 rel1.offset, 0 0;
191                                 rel2.offset, 0 0;
192                         }
193                 }
194                 part {
195                         name, "padding.current_channel";
196                         type, SPACER;
197                         description {
198                                 state, "default" 0.0;
199                                 rel1 {
200                                         to, "clip_next";
201                                         relative, 0.5 1.0;
202                                 }
203                                 rel2 {
204                                         to, "clip_next";
205                                         relative, 0.5 1.0;
206                                 }
207                                 min, 0 32;
208                                 align, 0.5 0.0;
209                                 fixed, 1 1;
210                         }
211                 }
212                 part {
213                         name, "clip_current";
214                         type, RECT;
215                         description {
216                                 state, "default" 0.0;
217                                 rel1 {
218                                         to, "padding.current_channel";
219                                         relative, 0.5 1.0;
220                                 }
221                                 rel2 {
222                                         to, "padding.current_channel";
223                                         relative, 0.5 1.0;
224                                 }
225                                 min, 536 174;
226                                 align, 0.5 0.0;
227                                 fixed, 1 1;
228                                 color, 255 255 255 0;
229                         }
230                         description {
231                                 state, "show" 0.0;
232                                 inherit, "default" 0.0;
233                                 color, 255 255 255 255;
234                         }
235                 }
236                 part {
237                         name, PART_CHANNELINFO_LIST_CURRENT;
238                         type, SWALLOW;
239                         clip_to, "clip_current";
240                         description {
241                                 state, "default" 0.0;
242                                 rel1.to, "clip_current";
243                                 rel2.to, "clip_current";
244                         }
245                 }
246                 part {
247                         name, "padding.prev_channel";
248                         type, SPACER;
249                         description {
250                                 state, "default" 0.0;
251                                 rel1 {
252                                         to, PART_CHANNELINFO_LIST_CURRENT;
253                                         relative, 0.5 1.0;
254                                 }
255                                 rel2 {
256                                         to, PART_CHANNELINFO_LIST_CURRENT;
257                                         relative, 0.5 1.0;
258                                 }
259                                 min, 0 32;
260                                 align, 0.5 0.0;
261                                 fixed, 1 1;
262                         }
263                 }
264                 part {
265                         name, "clip_prev";
266                         type, RECT;
267                         description {
268                                 state, "default" 0.0;
269                                 rel1 {
270                                         to, "padding.prev_channel";
271                                         relative, 0.5 1.0;
272                                 }
273                                 rel2 {
274                                         to, "padding.prev_channel";
275                                         relative, 0.5 1.0;
276                                 }
277                                 min, 536 70;
278                                 align, 0.5 0.0;
279                                 fixed, 1 1;
280                                 color, 255 255 255 0;
281                         }
282                         description {
283                                 state, "show" 0.0;
284                                 inherit, "default" 0.0;
285                                 color, 255 255 255 255;
286                         }
287                 }
288                 part {
289                         name, PART_CHANNELINFO_LIST_PREV;
290                         type, SWALLOW;
291                         clip_to, "clip_prev";
292                         description {
293                                 state, "default" 0.0;
294                                 rel1 {
295                                         to, "clip_prev";
296                                         offset, 0 -20;
297                                 }
298                                 rel2 {
299                                         to, "clip_prev";
300                                         offset, 0 -20;
301                                 }
302                         }
303                         description {
304                                 state, "show" 0.0;
305                                 inherit, "default" 0.0;
306                                 rel1.offset, 0 0;
307                                 rel2.offset, 0 0;
308                         }
309                 }
310                 part {
311                         name, "padding.navigation_down";
312                         type, SPACER;
313                         description {
314                                 state, "default" 0.0;
315                                 rel1 {
316                                         to, "clip_prev";
317                                         relative, 0.5 1.0;
318                                 }
319                                 rel2 {
320                                         to, "clip_prev";
321                                         relative, 0.5 1.0;
322                                 }
323                                 min, 0 20;
324                                 align, 0.0 0.0;
325                                 fixed, 1 1;
326                         }
327                 }
328                 part {
329                         name, "part.navigation_down";
330                         type, IMAGE;
331                         scale, 1;
332                         description {
333                                 state, "default" 0.0;
334                                 image.normal, "btn_navigation_down.png";
335                                 rel1 {
336                                         to, "padding.navigation_down";
337                                         relative, 0.5 1.0;
338                                 }
339                                 rel2 {
340                                         to, "padding.navigation_down";
341                                         relative, 0.5 1.0;
342                                 }
343                                 min, 98 34;
344                                 align, 0.5 0.0;
345                                 fixed, 1 1;
346                                 visible, 1;
347                         }
348                 }
349         }
350         programs {
351                 program {
352                         signal, SIGNAL_SHOW;
353                         action, STATE_SET "show" 0.0;
354                         target, "bg";
355                         after, "show_current";
356                         after, "show_other";
357                 }
358                 program {
359                         name, "show_current";
360                         action, STATE_SET "show" 0.0;
361                         target, "clip_current";
362                         transition, CUBIC_BEZIER 0.334 TRANSITION_EASE_IN_OUT;
363                 }
364                 program {
365                         name, "show_other";
366                         action, STATE_SET "show" 0.0;
367                         target, "clip_next";
368                         target, PART_CHANNELINFO_LIST_NEXT;
369                         target, "clip_prev";
370                         target, PART_CHANNELINFO_LIST_PREV;
371                         transition, CUBIC_BEZIER 0.401 TRANSITION_EASE_IN_OUT;
372                 }
373                 program {
374                         signal, SIGNAL_HIDE;
375                         source, SOURCE_ELM;
376                         action, STATE_SET "default" 0.0;
377                         target, "bg";
378                         transition, CUBIC_BEZIER 0.167 TRANSITION_EASE_OUT;
379                         sequence {
380                                 action, STATE_SET "default" 0.0;
381                                 target, "clip_next";
382                                 target, PART_CHANNELINFO_LIST_NEXT;
383                                 target, "clip_prev";
384                                 target, PART_CHANNELINFO_LIST_PREV;
385                                 target, "clip_current";
386
387                                 action, SIGNAL_EMIT SIGNAL_HIDE_FINISHED SOURCE_ELM;
388                         }
389                 }
390         }
391 }
392
393 group {
394         name, GRP_LAYOUT_CHANNELINFO_SEARCH;
395         parts {
396                 part {
397                         name, PART_CONTENT;
398                         type, SWALLOW;
399                         scale, 1;
400                         description {
401                                 state, "default" 0.0;
402                                 rel1.relative, 1.0 0.0;
403                                 rel2.relative, 1.0 1.0;
404                                 min, 536 0;
405                                 align, 1.0 0.0;
406                                 fixed, 1 0;
407                         }
408                 }
409         }
410 }
411
412 group {
413         name, GRP_CHANNELINFO;
414         images {
415                 image, "ic_thumbnail_favorite_01.png" COMP;
416                 image, "ic_thumbnail_lock_01_foc.png" COMP;
417                 image, "ic_thumbnail_lock_01_nor.png" COMP;
418         }
419         script {
420                 public is_locked=0, is_favorite=0, is_focused=0;
421
422                 public set_states() {
423                         new focused;
424                         new locked;
425                         new favorite;
426
427                         focused = get_int(is_focused);
428                         locked = get_int(is_locked);
429                         favorite = get_int(is_favorite);
430
431                         if (locked == 1) {
432                                 if (focused == 1)
433                                         run_program(PROGRAM:"do_focus_locked");
434                                 else
435                                         run_program(PROGRAM:"do_locked");
436                         }
437
438                         if (favorite == 1)
439                                 run_program(PROGRAM:"do_favorite");
440                 }
441         }
442         parts {
443                 part {
444                         name, "bg";
445                         type, RECT;
446                         scale, 1;
447                         description {
448                                 state, "default" 0.0;
449                                 rel1.relative, 0.0 0.5;
450                                 rel2.relative, 0.0 0.5;
451                                 min, 536 174;
452                                 align, 0.0 0.5;
453                         }
454                         description {
455                                 state, "focused" 0.0;
456                                 inherit, "default" 0.0;
457                                 color, COLOR_BG_FOCUSED;
458                         }
459                 }
460                 part {
461                         name, "padding.left_top";
462                         type, SPACER;
463                         scale, 1;
464                         description {
465                                 state, "default" 0.0;
466                                 rel1 {
467                                         to, "bg";
468                                         relative, 0.0 0.0;
469                                 }
470                                 rel2 {
471                                         to, "bg";
472                                         relative, 0.0 0.0;
473                                 }
474                                 min, 28 26;
475                                 align, 0.0 0.0;
476                                 fixed, 1 1;
477                         }
478                 }
479                 part {
480                         name, PART_CHANNELINFO_CHANNEL;
481                         type, TEXT;
482                         scale, 1;
483                         description {
484                                 state, "default" 0.0;
485                                 rel1 {
486                                         to, "padding.left_top";
487                                         relative, 1.0 1.0;
488                                 }
489                                 rel2 {
490                                         to, "padding.left_top";
491                                         relative, 1.0 1.0;
492                                 }
493                                 text {
494                                         font, FONT_LIGHT;
495                                         size, 28;
496                                         align, 0.0 0.5;
497                                 }
498                                 color, COLOR_TEXT_NORMAL;
499                                 min, 344 32;
500                                 align, 0.0 0.0;
501                                 fixed, 1 1;
502                         }
503                         description {
504                                 state, "focused" 0.0;
505                                 inherit, "default" 0.0;
506                                 color, COLOR_TEXT_FOCUSED;
507                         }
508                 }
509                 part {
510                         name, "padding.title";
511                         type, SPACER;
512                         scale, 1;
513                         description {
514                                 state, "default" 0.0;
515                                 rel1 {
516                                         to, PART_CHANNELINFO_CHANNEL;
517                                         relative, 0.0 1.0;
518                                 }
519                                 rel2 {
520                                         to, PART_CHANNELINFO_CHANNEL;
521                                         relative, 0.0 1.0;
522                                 }
523                                 min, 0 6;
524                                 align, 0.0 0.0;
525                                 fixed, 1 1;
526                         }
527                 }
528                 part {
529                         name, PART_CHANNELINFO_TITLE;
530                         type, TEXT;
531                         scale, 1;
532                         description {
533                                 state, "default" 0.0;
534                                 rel1 {
535                                         to, "padding.title";
536                                         relative, 0.0 1.0;
537                                 }
538                                 rel2 {
539                                         to, "padding.title";
540                                         relative, 0.0 1.0;
541                                 }
542                                 text {
543                                         font, FONT_LIGHT;
544                                         size, 28;
545                                         align, 0.0 0.5;
546                                 }
547                                 color, COLOR_TEXT_NORMAL;
548                                 min, 484 32;
549                                 align, 0.0 0.0;
550                                 fixed, 1 1;
551                         }
552                         description {
553                                 state, "focused" 0.0;
554                                 inherit, "default" 0.0;
555                                 color, COLOR_TEXT_FOCUSED;
556                         }
557                 }
558                 part {
559                         name, "padding.time";
560                         type, SPACER;
561                         scale, 1;
562                         description {
563                                 state, "default" 0.0;
564                                 rel1 {
565                                         to, PART_CHANNELINFO_TITLE;
566                                         relative, 0.0 1.0;
567                                 }
568                                 rel2 {
569                                         to, PART_CHANNELINFO_TITLE;
570                                         relative, 0.0 1.0;
571                                 }
572                                 min, 0 24;
573                                 align, 0.0 0.0;
574                                 fixed, 1 1;
575                         }
576                 }
577                 part {
578                         name, PART_CHANNELINFO_TIME;
579                         type, TEXT;
580                         scale, 1;
581                         description {
582                                 state, "default" 0.0;
583                                 rel1 {
584                                         to, "padding.time";
585                                         relative, 0.0 1.0;
586                                 }
587                                 rel2 {
588                                         to, "padding.time";
589                                         relative, 0.0 1.0;
590                                 }
591                                 text {
592                                         font, FONT_LIGHT;
593                                         size, 28;
594                                         align, 0.0 0.5;
595                                 }
596                                 color, 112 112 112 255;
597                                 min, 484 28;
598                                 align, 0.0 0.0;
599                                 fixed, 1 1;
600                         }
601                         description {
602                                 state, "focused" 0.0;
603                                 inherit, "default" 0.0;
604                                 color, COLOR_TEXT_FOCUSED;
605                         }
606                 }
607                 part {
608                         name, "padding.right_top";
609                         type, SPACER;
610                         scale, 1;
611                         description {
612                                 state, "default" 0.0;
613                                 rel1 {
614                                         to, "bg";
615                                         relative, 1.0 0.0;
616                                 }
617                                 rel2 {
618                                         to, "bg";
619                                         relative, 1.0 0.0;
620                                 }
621                                 min, 22 28;
622                                 align, 1.0 0.0;
623                                 fixed, 1 1;
624                         }
625                 }
626                 part {
627                         name, PART_CHANNELINFO_STATUS;
628                         type, SPACER;
629                         scale, 1;
630                         description {
631                                 state, "default" 0.0;
632                                 rel1 {
633                                         to, "padding.right_top";
634                                         relative, 0.0 1.0;
635                                 }
636                                 rel2 {
637                                         to, "padding.right_top";
638                                         relative, 0.0 1.0;
639                                 }
640                                 min, 142 28;
641                                 align, 1.0 0.0;
642                                 fixed, 1 1;
643                         }
644                 }
645
646                 part {
647                         name, PART_CHANNELINFO_LOCKED;
648                         type, IMAGE;
649                         scale, 1;
650                         description {
651                                 state, "default" 0.0;
652                                 image.normal, "ic_thumbnail_lock_01_nor.png";
653                                 rel1 {
654                                         to, PART_CHANNELINFO_STATUS;
655                                         relative, 1.0 0.0;
656                                 }
657                                 rel2 {
658                                         to, PART_CHANNELINFO_STATUS;
659                                         relative, 1.0 0.0;
660                                 }
661                                 min, 0 0;
662                                 align, 1.0 0.0;
663                                 fixed, 1 1;
664                                 visible, 0;
665                         }
666                         description {
667                                 state, "visible" 0.0;
668                                 inherit, "default" 0.0;
669                                 min, 28 28;
670                                 visible, 1;
671                         }
672                         description {
673                                 state, "focused" 0.0;
674                                 inherit, "default" 0.0;
675                                 image.normal, "ic_thumbnail_lock_01_foc.png";
676                                 min, 28 28;
677                                 visible, 1;
678                         }
679                 }
680                 part {
681                         name, "padding.channelinfo.locked";
682                         type, SPACER;
683                         scale, 1;
684                         description {
685                                 state, "default" 0.0;
686                                 rel1 {
687                                         to, PART_CHANNELINFO_LOCKED;
688                                         relative, 0.0 0.0;
689                                 }
690                                 rel2 {
691                                         to, PART_CHANNELINFO_LOCKED;
692                                         relative, 0.0 0.0;
693                                 }
694                                 min, 0 0;
695                                 align, 1.0 0.0;
696                                 fixed, 1 1;
697                         }
698                         description {
699                                 state, "visible" 0.0;
700                                 inherit, "default" 0.0;
701                                 min, 10 0;
702                         }
703                         description {
704                                 state, "focused" 0.0;
705                                 inherit, "default" 0.0;
706                                 min, 10 0;
707                         }
708                 }
709                 part {
710                         name, PART_CHANNELINFO_FAVORITE;
711                         type, IMAGE;
712                         scale, 1;
713                         description {
714                                 state, "default" 0.0;
715                                 image.normal, "ic_thumbnail_favorite_01.png";
716                                 rel1 {
717                                         to, "padding.channelinfo.locked";
718                                         relative, 0.0 0.0;
719                                 }
720                                 rel2 {
721                                         to, "padding.channelinfo.locked";
722                                         relative, 0.0 0.0;
723                                 }
724                                 min, 0 0;
725                                 align, 1.0 0.0;
726                                 fixed, 1 1;
727                                 visible, 0;
728                         }
729                         description {
730                                 state, "visible" 0.0;
731                                 inherit, "default" 0.0;
732                                 min, 28 28;
733                                 visible, 1;
734                         }
735                 }
736                 part {
737                         name, "padding.channelinfo.favorite";
738                         type, SPACER;
739                         scale, 1;
740                         description {
741                                 state, "default" 0.0;
742                                 rel1 {
743                                         to, PART_CHANNELINFO_FAVORITE;
744                                         relative, 0.0 0.0;
745                                 }
746                                 rel2 {
747                                         to, PART_CHANNELINFO_FAVORITE;
748                                         relative, 0.0 0.0;
749                                 }
750                                 min, 0 0;
751                                 align, 1.0 0.0;
752                                 fixed, 1 1;
753                         }
754                         description {
755                                 state, "visible" 0.0;
756                                 inherit, "default" 0.0;
757                                 min, 10 0;
758                         }
759                 }
760         }
761         programs {
762                 program {
763                         name, "focused";
764                         signal, SIGNAL_FOCUSED;
765                         source, SOURCE_ELM;
766                         script {
767                                 set_int(is_focused, 1);
768                                 set_states();
769                                 run_program(PROGRAM:"do_focused");
770                         }
771                 }
772                 program {
773                         name, "do_focused";
774                         action, STATE_SET "focused" 0.0;
775                         target, "bg";
776                         target, PART_CHANNELINFO_CHANNEL;
777                         target, PART_CHANNELINFO_TITLE;
778                         target, PART_CHANNELINFO_TIME;
779                 }
780                 program {
781                         name, "unfocused";
782                         signal, SIGNAL_UNFOCUSED;
783                         source, SOURCE_ELM;
784                         script {
785                                 set_int(is_focused, 0);
786                                 set_states();
787                                 run_program(PROGRAM:"do_unfocused");
788                         }
789                 }
790                 program {
791                         name, "do_unfocused";
792                         action, STATE_SET "default" 0.0;
793                         target, "bg";
794                         target, PART_CHANNELINFO_CHANNEL;
795                         target, PART_CHANNELINFO_TITLE;
796                         target, PART_CHANNELINFO_TIME;
797                 }
798                 program {
799                         name, "reset";
800                         signal, SIGNAL_RESET;
801                         source, SOURCE_PROGRAM;
802                         script {
803                                 set_int(is_locked, 0);
804                                 set_int(is_favorite, 0);
805                                 run_program(PROGRAM:"do_reset");
806                         }
807                 }
808                 program {
809                         name, "do_reset";
810                         action, STATE_SET "default" 0.0;
811                         target, PART_CHANNELINFO_FAVORITE;
812                         target, "padding.channelinfo.favorite";
813                         target, PART_CHANNELINFO_LOCKED;
814                         target, "padding.channelinfo.locked";
815                 }
816                 program {
817                         name, "set_locked";
818                         signal, SIGNAL_LOCKED;
819                         source, SOURCE_PROGRAM;
820                         script {
821                                 set_int(is_locked, 1);
822                                 set_states();
823                         }
824                 }
825                 program {
826                         name, "set_favorite";
827                         signal, SIGNAL_FAVORITE;
828                         source, SOURCE_PROGRAM;
829                         script {
830                                 set_int(is_favorite, 1);
831                                 set_states();
832                         }
833                 }
834                 program {
835                         name, "do_favorite";
836                         action, STATE_SET "visible" 0.0;
837                         target, PART_CHANNELINFO_FAVORITE;
838                         target, "padding.channelinfo.favorite";
839                 }
840                 program {
841                         name, "do_locked";
842                         action, STATE_SET "visible" 0.0;
843                         target, PART_CHANNELINFO_LOCKED;
844                         target, "padding.channelinfo.locked";
845                 }
846                 program {
847                         name, "do_focus_locked";
848                         action, STATE_SET "focused" 0.0;
849                         target, PART_CHANNELINFO_LOCKED;
850                         target, "padding.channelinfo.locked";
851                 }
852         }
853 }
854
855 group {
856         name, GRP_CHANNELINFO_SIMPLE;
857         parts {
858                 part {
859                         name, "bg";
860                         type, RECT;
861                         scale, 1;
862                         description {
863                                 state, "default" 0.0;
864                                 min, 536 70;
865                                 align, 0.0 0.0;
866                                 fixed, 1 1;
867                                 visible, 0;
868                         }
869                 }
870                 part {
871                         name, "padding.left";
872                         type, SPACER;
873                         scale, 1;
874                         description {
875                                 state, "default" 0.0;
876                                 rel1 {
877                                         to, "bg";
878                                         relative, 0.0 0.0;
879                                 }
880                                 rel2 {
881                                         to, "bg";
882                                         relative, 0.0 0.0;
883                                 }
884                                 min, 28 0;
885                                 align, 0.0 0.0;
886                                 fixed, 1 1;
887                         }
888                 }
889                 part {
890                         name, PART_CHANNELINFO_CHANNEL;
891                         type, TEXT;
892                         scale, 1;
893                         description {
894                                 state, "default" 0.0;
895                                 rel1 {
896                                         to, "padding.left";
897                                         relative, 1.0 0.0;
898                                 }
899                                 rel2 {
900                                         to, "padding.left";
901                                         relative, 1.0 0.0;
902                                 }
903                                 text {
904                                         font, FONT_LIGHT;
905                                         size, 32;
906                                         align, 0.0 0.5;
907                                 }
908                                 color, COLOR_TEXT_TRANS;
909                                 min, 480 32;
910                                 align, 0.0 0.0;
911                                 fixed, 1 1;
912                         }
913                 }
914                 part {
915                         name, "padding.title";
916                         type, SPACER;
917                         scale, 1;
918                         description {
919                                 state, "default" 0.0;
920                                 rel1 {
921                                         to, PART_CHANNELINFO_CHANNEL;
922                                         relative, 0.0 1.0;
923                                 }
924                                 rel2 {
925                                         to, PART_CHANNELINFO_CHANNEL;
926                                         relative, 0.0 1.0;
927                                 }
928                                 min, 0 6;
929                                 align, 0.0 0.0;
930                                 fixed, 1 1;
931                         }
932                 }
933                 part {
934                         name, PART_CHANNELINFO_TITLE;
935                         type, TEXT;
936                         scale, 1;
937                         description {
938                                 state, "default" 0.0;
939                                 rel1 {
940                                         to, "padding.title";
941                                         relative, 0.0 1.0;
942                                 }
943                                 rel2 {
944                                         to, "padding.title";
945                                         relative, 0.0 1.0;
946                                 }
947                                 text {
948                                         font, FONT_LIGHT;
949                                         size, 32;
950                                         align, 0.0 0.5;
951                                 }
952                                 color, COLOR_TEXT_TRANS;
953                                 min, 480 32;
954                                 align, 0.0 0.0;
955                                 fixed, 1 1;
956                         }
957                 }
958                 part {
959                         name, PART_CHANNELINFO_TIME;
960                         type, TEXT;
961                         scale, 1;
962                         description {
963                                 state, "default" 0.0;
964                                 visible, 0;
965                         }
966                 }
967         }
968 }