c2fd4b646af0d8bb79fdcdac562835e2b685622a
[profile/tv/apps/native/air_home.git] / edje / view / home.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/defs.h"
18 group {
19         name, GRP_HOME;
20         parts {
21                 part {
22                         name, "clip.up.arrow";
23                         type, RECT;
24                         scale, 1;
25                         description {
26                                 state, "default" 0.0;
27                                 rel2.relative, 1.0 0.0;
28                                 min, 0 98;
29                                 align, 0.5 1.0;
30                                 fixed, 0 1;
31                                 visible, 0;
32                         }
33                         description {
34                                 state, "show" 0.0;
35                                 inherit, "default" 0.0;
36                                 align, 0.5 0.0;
37                                 visible, 1;
38                         }
39                 }
40                 part {
41                         name, PART_HOME_UP_ARROW;
42                         type, SWALLOW;
43                         scale, 1;
44                         clip_to, "clip.up.arrow";
45                         description {
46                                 state, "default" 0.0;
47                                 rel1.to, "clip.up.arrow";
48                                 rel2 {
49                                         to, "clip.up.arrow";
50                                         relative, 1.0 0.0;
51                                 }
52                                 fixed, 1 1;
53                                 align, 0.5 0.0;
54                                 min, 98 98;
55                         }
56                 }
57                 part {
58                         name, "clip.down.arrow";
59                         type, RECT;
60                         scale, 1;
61                         description {
62                                 state, "default" 0.0;
63                                 rel1.relative, 0.0 1.0;
64                                 min, 0 98;
65                                 align, 0.5 0.0;
66                                 fixed, 0 1;
67                                 visible, 0;
68                         }
69                         description {
70                                 state, "show" 0.0;
71                                 inherit, "default" 0.0;
72                                 align, 0.5 1.0;
73                                 visible, 1;
74                         }
75                 }
76                 part {
77                         name, PART_HOME_DOWN_ARROW;
78                         type, SWALLOW;
79                         scale, 1;
80                         clip_to, "clip.down.arrow";
81                         description {
82                                 state, "default" 0.0;
83                                 rel1 {
84                                         to, "clip.down.arrow";
85                                         relative, 0.0 1.0;
86                                 }
87                                 rel2.to, "clip.down.arrow";
88                                 fixed, 1 1;
89                                 align, 0.5 1.0;
90                                 min, 98 98;
91                         }
92                 }
93                 part {
94                         name, "pad.list";
95                         type, RECT;
96                         scale, 1;
97                         description {
98                                 state, "default" 0.0;
99                                 rel1.relative, 0.5 1.0;
100                                 rel2.relative, 0.5 1.0;
101                                 fixed, 1 1;
102                                 align, 0.5 1.0;
103                                 min, 0 188;
104                         }
105                 }
106                 part {
107                         name, "clip";
108                         type, RECT;
109                         scale, 1;
110                         description {
111                                 state, "default" 0.0;
112                                 color, 0 0 0 0;
113                         }
114                         description {
115                                 state, "show" 0.0;
116                                 inherit, "default" 0.0;
117                                 color, 255 255 255 255;
118                         }
119                 }
120                 part {
121                         name, PART_HOME_MENU_BAR;
122                         type, SWALLOW;
123                         clip_to, "clip";
124                         scale, 1;
125                         description {
126                                 state, "default" 0.0;
127                                 rel1 {
128                                         relative, 0.0 0.0;
129                                         to, "pad.list";
130                                 }
131                                 rel2 {
132                                         relative, 0.0 0.0;
133                                         to, "pad.list";
134                                 }
135                                 align, 0.5 1.0;
136                                 fixed, 1 1;
137                                 min, 0 158;
138                         }
139                         description {
140                                 state, "show" 0.0;
141                                 inherit, "default" 0.0;
142                                 min, 948 158;
143                         }
144                 }
145         }
146         programs {
147                 program {
148                         name, "sig,show";
149                         signal, SIG_SHOW;
150                         source, SRC_PROG;
151                         action, STATE_SET "show" 0.0;
152                         transition, TRANSITION_DECEL;
153                         target, "clip";
154                         target, PART_HOME_MENU_BAR;
155                         after, "sig,show,done";
156                 }
157                 program {
158                         name, "sig,show,done";
159                         action, SIGNAL_EMIT SIG_SHOW_DONE SRC_EDJE;
160                 }
161                 program {
162                         name, "sig,hide";
163                         signal, SIG_HIDE;
164                         source, SRC_PROG;
165                         action, STATE_SET "default" 0.0;
166                         transition, TRANSITION_DECEL;
167                         target, "clip";
168                         target, PART_HOME_MENU_BAR;
169                         after, "sig,hide,done";
170                 }
171                 program {
172                         name, "sig,hide,done";
173                         action, SIGNAL_EMIT SIG_HIDE_DONE SRC_EDJE;
174                 }
175                 program {
176                         name, "sig,show,navigation";
177                         signal, SIG_SHOW_NAVIGATION;
178                         source, SRC_PROG;
179                         action, STATE_SET "show" 0.0;
180                         target, "clip.up.arrow";
181                         target, "clip.down.arrow";
182                         transition, TRANSITION_DECEL;
183                 }
184                 program {
185                         name, "sig,hide,navigation";
186                         signal, SIG_HIDE_NAVIGATION;
187                         source, SRC_PROG;
188                         action, STATE_SET "default" 0.0;
189                         target, "clip.up.arrow";
190                         target, "clip.down.arrow";
191                         transition, TRANSITION_DECEL;
192                 }
193         }
194 }
195
196 group {
197         name, GRP_HOME_DOWN_ARROW;
198         images {
199                 image, "btn_navigation_down.png" COMP;
200         }
201         parts {
202                 part {
203                         name, "bg";
204                         type, RECT;
205                         scale, 1;
206                         description {
207                                 state, "default" 0.0;
208                                 min, 98 98;
209                                 visible, 0;
210                         }
211                 }
212                 part {
213                         name, "text";
214                         type, TEXT;
215                         scale, 1;
216                         description {
217                                 state, "default" 0.0;
218                                 min, 98 32;
219                                 rel1.relative, 0.5 0.0;
220                                 rel2.relative, 0.5 0.0;
221                                 align, 0.5 0.0;
222                                 fixed, 1 1;
223                                 text {
224                                         size, 31;
225                                         font, "TizenSans";
226                                         text, "Recent";
227                                 }
228                                 color, 255 255 255 178;
229                         }
230                 }
231                 part {
232                         name, "pad.arrow";
233                         type, RECT;
234                         scale, 1;
235                         description {
236                                 state, "default" 0.0;
237                                 min, 0 10;
238                                 rel1 {
239                                         to, "text";
240                                         relative, 0.0 1.0;
241                                 }
242                                 rel2.to, "text";
243                                 fixed, 0 1;
244                                 align, 0.5 0.0;
245                                 visible, 0;
246                         }
247                 }
248                 part {
249                         name, "focus";
250                         type, RECT;
251                         scale, 1;
252                         description {
253                                 state, "default" 0.0;
254                                 rel1 {
255                                         relative, 0.5 1.0;
256                                         to, "pad.arrow";
257                                 }
258                                 rel2 {
259                                         relative, 0.5 1.0;
260                                         to, "pad.arrow";
261                                 }
262                                 min, 98 56;
263                                 fixed, 1 1;
264                                 align, 0.5 0.0;
265                                 color, 0 0 0 0;
266                         }
267                         description {
268                                 state, "focus" 0.0;
269                                 inherit, "default" 0.0;
270                                 color, 0 119 246 255;
271                         }
272                 }
273                 part {
274                         name, "bounce.arrow";
275                         type, RECT;
276                         scale, 1;
277                         description {
278                                 state, "default" 0.0;
279                                 rel1 {
280                                         relative, 0.5 1.0;
281                                         to, "pad.arrow";
282                                 }
283                                 rel2 {
284                                         relative, 0.5 1.0;
285                                         to, "pad.arrow";
286                                 }
287                                 min, 0 0;
288                                 align, 0.5 0.0;
289                                 fixed, 1 1;
290                         }
291                         description {
292                                 state, "focus" 0.0;
293                                 inherit, "default" 0.0;
294                                 min, 0 5;
295                         }
296                 }
297                 part {
298                         name, "arrow";
299                         type, IMAGE;
300                         scale, 1;
301                         description {
302                                 state, "default" 0.0;
303                                 min, 98 34;
304                                 rel1 {
305                                         relative, 0.5 1.0;
306                                         to, "bounce.arrow";
307                                 }
308                                 rel2 {
309                                         relative, 0.5 1.0;
310                                         to, "bounce.arrow";
311                                 }
312                                 image.normal, "btn_navigation_down.png";
313                                 align, 0.5 0.0;
314                                 fixed, 1 1;
315                         }
316                 }
317         }
318         programs {
319                 program {
320                         name, "sig,focus";
321                         signal, SIG_FOCUS;
322                         source, SRC_PROG;
323                         action, STATE_SET "focus" 0.0;
324                         transition, TRANSITION_DECEL;
325                         target, "focus";
326                         target, "bounce.arrow";
327                 }
328                 program {
329                         name, "sig,unfocus";
330                         signal, SIG_UNFOCUS;
331                         source, SRC_PROG;
332                         action, STATE_SET "default" 0.0;
333                         transition, TRANSITION_DECEL;
334                         target, "focus";
335                         target, "bounce.arrow";
336                 }
337         }
338 }
339
340 group {
341         name, GRP_HOME_UP_ARROW;
342         images {
343                 image, "btn_navigation_up.png" COMP;
344         }
345         parts {
346                 part {
347                         name, "bg";
348                         type, RECT;
349                         scale, 1;
350                         description {
351                                 state, "default" 0.0;
352                                 min, 98 98;
353                                 visible, 0;
354                         }
355                 }
356                 part {
357                         name, "text";
358                         type, TEXT;
359                         scale, 1;
360                         description {
361                                 state, "default" 0.0;
362                                 min, 98 32;
363                                 rel1.relative, 0.5 1.0;
364                                 rel2.relative, 0.5 1.0;
365                                 align, 0.5 1.0;
366                                 fixed, 1 1;
367                                 text {
368                                         size, 31;
369                                         font, "TizenSans";
370                                         text, "ETG";
371                                 }
372                                 color, 255 255 255 178;
373                         }
374                 }
375                 part {
376                         name, "pad.arrow";
377                         type, RECT;
378                         scale, 1;
379                         description {
380                                 state, "default" 0.0;
381                                 min, 0 10;
382                                 rel1 {
383                                         to, "text";
384                                         relative, 0.5 0.0;
385                                 }
386                                 rel2 {
387                                         to, "text";
388                                         relative, 0.5 0.0;
389                                 }
390                                 fixed, 1 1;
391                                 align, 0.5 1.0;
392                                 visible, 0;
393                         }
394                 }
395                 part {
396                         name, "arrow";
397                         type, IMAGE;
398                         scale, 1;
399                         description {
400                                 state, "default" 0.0;
401                                 min, 98 34;
402                                 rel1 {
403                                         relative, 0.0 0.0;
404                                         to, "pad.arrow";
405                                 }
406                                 rel2 {
407                                         relative, 0.0 0.0;
408                                         to, "pad.arrow";
409                                 }
410                                 image.normal, "btn_navigation_up.png";
411                                 align, 0.5 1.0;
412                                 fixed, 1 1;
413                         }
414                 }
415         }
416 }
417
418 group {
419         name, GRP_HOME_ITEM;
420         inherit, GRP_BAR_ITEM;
421         data.item, TITLE_WIDTH "130";
422         parts {
423                 part {
424                         name, "pad.icon";
425                         type, RECT;
426                         scale, 1;
427                         description {
428                                 state, "default" 0.0;
429                                 min, 0 26;
430                                 rel1.relative, 0.5 0.0;
431                                 rel2.relative, 0.5 0.0;
432                                 align, 0.5 0.0;
433                                 fixed, 1 1;
434                                 visible, 0;
435                         }
436                 }
437                 part {
438                         name, PART_BAR_ITEM_ICON;
439                         type, SWALLOW;
440                         scale, 1;
441                         description {
442                                 state, "default" 0.0;
443                                 min, 70 70;
444                                 rel1 {
445                                         to, "pad.icon";
446                                         relative, 1.0 1.0;
447                                 }
448                                 rel2 {
449                                         to, "pad.icon";
450                                         relative, 1.0 1.0;
451                                 }
452                                 align, 0.5 0.0;
453                                 fixed, 1 1;
454                         }
455                 }
456                 part {
457                         name, "pad.text";
458                         type, RECT;
459                         scale, 1;
460                         description {
461                                 state, "default" 0.0;
462                                 min, 0 24;
463                                 rel1.relative, 0.5 1.0;
464                                 rel2.relative, 0.5 1.0;
465                                 align, 0.5 1.0;
466                                 fixed, 1 1;
467                                 visible, 0;
468                         }
469                 }
470                 part {
471                         name, PART_BAR_ITEM_TITLE;
472                         type, SWALLOW;
473                         scale, 1;
474                         description {
475                                 state, "default" 0.0;
476                                 rel1 {
477                                         to, "pad.text";
478                                         relative, 0.0 0.0;
479                                 }
480                                 rel2 {
481                                         to, "pad.text";
482                                         relative, 0.0 0.0;
483                                 }
484                                 align, 0.5 1.0;
485                                 fixed, 1 1;
486                                 min, 130 22;
487                         }
488                 }
489                 part {
490                         name, PART_BAR_ITEM_TITLE_FOCUS;
491                         type, SWALLOW;
492                         scale, 1;
493                         clip_to, "clip";
494                         description {
495                                 state, "default" 0.0;
496                                 rel1.to, PART_BAR_ITEM_TITLE;
497                                 rel2.to, PART_BAR_ITEM_TITLE;
498                         }
499                 }
500                 part {
501                         name, "pad.badge";
502                         type, RECT;
503                         scale, 1;
504                         description {
505                                 state, "default" 0.0;
506                                 min, 40 14;
507                                 rel1.relative, 1.0 0.0;
508                                 rel2.relative, 1.0 0.0;
509                                 align, 1.0 0.0;
510                                 fixed, 1 1;
511                                 visible, 0;
512                         }
513                 }
514                 part {
515                         name, PART_BAR_ITEM_BADGE;
516                         type, SWALLOW;
517                         scale, 1;
518                         description {
519                                 state, "default" 0.0;
520                                 min, 36 36;
521                                 rel1 {
522                                         to, "pad.badge";
523                                         relative, 0.0 1.0;
524                                 }
525                                 rel2 {
526                                         to, "pad.badge";
527                                         relative, 0.0 1.0;
528                                 }
529                                 align, 1.0 0.0;
530                                 fixed, 1 1;
531                         }
532                 }
533                 part {
534                         name, PART_BAR_ITEM_BADGE_COUNT;
535                         type, TEXT;
536                         scale, 1;
537                         description {
538                                 state, "default" 0.0;
539                                 rel1.to, PART_BAR_ITEM_BADGE;
540                                 rel2.to, PART_BAR_ITEM_BADGE;
541                                 fixed, 1 1;
542                                 text {
543                                         size, 24;
544                                         font, "TizenSans";
545                                 }
546                                 color, 255 255 255 255;
547                         }
548                 }
549         }
550 }