[Progressbar] issue image getting invisible for list progressbar. fixed.
[profile/ivi/efl-theme-tizen.git] / themes / groups / navigationbar.edc
1 /*
2  *  nBeat-theme
3  *
4  * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, 
7  *       Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, 
8  *    Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
9  * 
10  * This library is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU Lesser General Public License as published by the
12  * Free Software Foundation; either version 2.1 of the License, or (at your option)
13  * any later version.
14  * 
15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this library; if not, write to the Free Software Foundation, Inc., 51
22  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25
26 #define PADDING      5
27 #define ITEM_HEIGHT  60
28 #define ITEM_WIDTH   0
29 #define MAX_ITEM_WIDTH 112
30 #define NAVI_BAR_EXTENDED_FNBTN_TOP_HEIGHT 110
31 #define NAVI_BAR_EXTENDED_HEIGHT 115
32
33 ////////////////////////////////////////////////////////////////////////////////////////
34 // NavigationBar
35 ////////////////////////////////////////////////////////////////////////////////////////
36
37 group {
38    name: "elm/navigationbar/base/default";
39
40    images {
41       image: "00_winset_title_bg.png" COMP;
42       image: "00_winset_control_top_arrow.png" COMP;
43    }
44    
45    parts {
46         part { name: "base";
47          type: RECT;
48          scale : 1;
49          mouse_events: 0;
50          repeat_events: 1;
51          description { state: "default" 0.0;
52             min: 1 NAVI_BAR_H;
53             fixed: 1 1;
54             color: 0 0 0 0;
55             rel1.relative: 0.0 0.0;
56             rel2.relative: 1.0 0.0;
57             align: 0.0 0.0;
58          }
59          description {
60             state: "top" 0.0;
61             inherit: "default" 0.0;
62             min: 1 0;
63          }
64          description {
65             state: "extended" 0.0;
66             inherit: "default" 0.0;
67             min: 1 NAVI_BAR_EXTENDED_HEIGHT;
68          }
69       }
70       part {
71          name: "clip_title";
72          type: RECT;
73          mouse_events: 0;
74          scale: 1;
75          description {
76             state: "default" 0.0;
77             align: 0.0 0.0;
78             rel1.to: "base";
79             rel2.to: "base";
80          }
81       }
82       part {
83          name: "navigationitem";
84          type: IMAGE;
85          mouse_events: 0;
86          clip_to: "clip_title";
87          scale: 1;
88          description {
89             state: "default" 0.0;
90             min: 1 NAVI_BAR_H;
91             fixed: 0 1;
92             rel1 { relative: 0.0 0.0; to:"base"; }
93             rel2 { relative: 1.0 0.0; to:"base"; }
94             align: 0.0 0.0;
95             image {
96                normal: "00_winset_title_bg.png";
97             }
98          }
99       }
100       part {
101          name: "elm.swallow.btn1";
102          type: SWALLOW;
103          clip_to: "clip_title";
104          scale: 1;
105          description {
106             fixed: 1 1;
107             state: "default" 0.0;
108             rel1 { relative: 0.0 0.0; to: "navigationitem"; }
109             rel2 { relative: 0.0 1.0; to: "navigationitem"; }
110             align: 0.0 0.5;
111          }
112       }
113       part {
114          name: "elm.rect.pada";
115          type: RECT;
116          mouse_events: 0;
117          clip_to: "clip_title";
118          scale: 1;
119          description {
120             state: "default" 0.0;
121             min: 67 0;
122             fixed: 1 0;
123             rel1 { relative: 0.0 0.0; to: "navigationitem"; }
124             rel2 { relative: 0.0 1.0; to: "navigationitem"; }
125             align: 0.0 0.5;
126             color: 0 0 0 0;
127          }
128       }
129       part {
130          name: "elm.rect.padb";
131          type: RECT;
132          mouse_events: 0;
133          clip_to: "clip_title";
134          scale: 1;
135          description {
136             state: "default" 0.0;
137             min: 82 0;
138             fixed: 1 0;
139             rel1 { relative: 1.0 0.0; to: "navigationitem"; }
140             rel2 { relative: 1.0 1.0; to: "navigationitem"; }
141             align: 1.0 0.5;
142             color: 0 0 0 0;
143          }
144       }
145       part {
146          name: "elm.text";
147          type: TEXT;
148          scale:1;
149          clip_to: "clip_title";
150          description {
151             state: "default" 0.0;
152             text {
153                font: "SLP:style=Medium";
154                size: 22;
155                min: 0 0;
156                align: 0.5 0.5;
157                max: 1 0;
158             }
159             color: NAVIGATIONBAR_TITLE_TEXT_COLOR;
160             rel1 { relative: 1.0 0.0; to: "elm.rect.pada"; }
161             rel2 { relative: 0.0 1.0; to: "elm.rect.padb"; }
162             align: 0.5 0.5;
163          }
164       }
165      part {
166           name: "events";
167           type: RECT;
168           clip_to: "clip_title";
169           ignore_flags: ON_HOLD;
170           description {
171              state: "default" 0.0;
172              rel1 { to: "elm.rect.pada"; relative: 1.0 0.0; }
173              rel2 { to: "elm.rect.padb"; relative: 0.0 1.0; }
174              color: 0 0 0 0;
175             }
176          }
177      part {
178          name: "naviarrow";
179          type: IMAGE;
180          mouse_events: 1;
181          clip_to: "clip_title";
182          scale: 1;
183          description {
184             state: "default" 0.0;
185             min: 15 11;
186             max: 15 11;
187             visible: 0;
188             fixed: 1 1;
189             rel1 { relative: 0.0 0.0; to: "elm.text"; }
190             rel2 { relative: 1.0 1.0; to: "elm.text"; }
191             align: 0.5 1.0;
192             image {
193                normal: "00_winset_control_top_arrow.png";
194             }
195          }
196          description {
197             state: "extended" 0.0;
198             inherit: "default" 0.0;
199             visible:1;
200          }
201       }
202       part {
203          name: "elm.swallow.title";
204          type: SWALLOW;
205          scale:1;
206          clip_to: "clip_title";
207          description {
208             fixed: 0 1;
209             min: 0 ITEM_HEIGHT;
210             visible: 0;
211             state: "default" 0.0;
212             rel1 { relative: 0.0 1.0; to_y: "navigationitem"; to_x: "base";}
213             rel2 { relative: 1.0 1.0; to: "base"; }
214             align: 0.0 0.0;
215          }
216          description {
217             state: "extended" 0.0;
218             inherit: "default" 0.0;
219             visible:1;
220          }
221       }
222       part {
223          name: "elm.swallow.content";
224          type: SWALLOW;
225          scale: 1;
226          description {
227             state: "default" 0.0;
228             align: 0.0 0.0;
229             rel1 { relative: 0.0 1.0; to_y: "base"; }
230             rel2 { relative: 1.0 1.0; }
231          }
232          description {
233             state: "top" 0.0;
234             rel1 { relative: 0.0 0.0; }
235             rel2 { relative: 1.0 1.0; }
236          }
237       }
238       part {
239          name: "elm.rect.blocker";
240          type: RECT;
241          description {
242             state: "default" 0.0;
243             visible: 0;
244          }
245          description {
246             state: "enabled" 0.0;
247             color: 0 0 0 0;
248             visible: 1;
249          }
250       }
251    } /* end of parts */
252
253    programs {
254       program {
255          name: "moveup";
256          signal: "elm,state,item,moveup";
257          source: "elm";
258          action: STATE_SET "top" 0.0;
259          target: "base";
260          target: "elm.swallow.content";
261       }
262       program {
263          name: "movedown";
264          signal: "elm,state,item,movedown";
265          source: "elm";
266          action: STATE_SET "default" 0.0;
267          target: "base";
268          target: "elm.swallow.content";
269       }
270       program {
271          name: "click";
272          signal: "mouse,up,1";
273          source: "events";
274          action: SIGNAL_EMIT "elm,action,clicked" "elm";
275       }
276       program {
277          name: "extended_titlearea";
278          signal: "elm,state,show,title";
279          source: "elm";
280          action: STATE_SET "extended" 0.0;
281          target: "base";
282          target: "elm.swallow.title";
283          transition: LINEAR 0.2;
284       }
285       program {
286          name: "show_extended";
287          signal: "elm,state,show,extended";
288          source: "elm";
289          action: STATE_SET "extended" 0.0;
290          target: "naviarrow";
291       }
292       program {
293          name: "hide_extended";
294          signal: "elm,state,hide,extended";
295          source: "elm";
296          action: STATE_SET "default" 0.0;
297          target: "naviarrow";
298       }
299       program {
300          name: "default_titlearea";
301          signal: "elm,state,hide,title";
302          source: "elm";
303          action: STATE_SET "default" 0.0;
304          target: "base";
305          target: "elm.swallow.title";
306          transition: LINEAR 0.2;
307       }
308       program {
309          name: "default_titlearea_noanimate";
310          signal: "elm,state,hide,noanimate,title";
311          source: "elm";
312          action: STATE_SET "default" 0.0;
313          target: "base";
314          target: "elm.swallow.title";
315       }
316       program {
317          name: "enable_rect";
318          signal: "elm,state,rect,enabled";
319          source: "elm";
320          action: STATE_SET "enabled" 0.0;
321          target: "elm.rect.blocker";
322       }
323       program {
324          name: "disable_rect";
325          signal: "elm,state,rect,disabled";
326          source: "elm";
327          action: STATE_SET "default" 0.0;
328          target: "elm.rect.blocker";
329       }
330    } /* end of programs */
331 } /* end of group "navigationbar" */
332
333 group {
334    name: "elm/navigationbar/title/default";
335
336    parts {
337       part {
338          name: "elm.swallow.title1";
339          type: SWALLOW;
340          scale: 1;
341          description {
342             fixed: 1 1;
343             min: 0 ITEM_HEIGHT;
344             state: "default" 0.0;
345             rel1 { relative: 0.0 0.0; }
346             rel2 { relative: 0.0 1.0; }
347             align: 0.0 0.5;
348          }
349       } 
350       part {
351          name: "elm.rect.pad1";
352          type: RECT;
353          mouse_events: 0;
354          scale: 1;
355          description {
356             state: "default" 0.0;
357             min: 0 0;
358             rel1 { relative: 1.0 0.0; to: "elm.swallow.title1"; }
359             rel2 { relative: 1.0 1.0; to: "elm.swallow.title1"; }
360          }
361          description {
362             state: "visible" 0.0;
363             min: PADDING 0;
364             fixed: 1 0;
365             rel1 { relative: 1.0 0.0; to: "elm.swallow.title1"; }
366             rel2 { relative: 1.0 1.0; to: "elm.swallow.title1"; }
367             align: 0.0 0.0;
368             color: 0 0 0 0;
369          }
370       }
371       part {
372          name: "elm.swallow.title2";
373          type: SWALLOW;
374          scale: 1;
375          description {
376             fixed: 1 1;
377             min: 0 ITEM_HEIGHT;
378             state: "default" 0.0;
379             rel1 { relative: 1.0 0.0; to: "elm.rect.pad1"; }
380             rel2 { relative: 1.0 1.0; to: "elm.rect.pad1"; }
381             align: 0.0 0.5;
382          }     
383       }
384       part {
385          name: "elm.rect.pad2";
386          type: RECT;
387          mouse_events: 0;
388          scale: 1;
389          description {
390             state: "default" 0.0;
391             min: 0 0;
392             rel1 { relative: 1.0 0.0; to: "elm.swallow.title2"; }
393             rel2 { relative: 1.0 1.0; to: "elm.swallow.title2"; }
394          }
395          description {
396             state: "visible" 0.0;
397             min: PADDING 0;
398             fixed: 1 0;
399             rel1 { relative: 1.0 0.0; to: "elm.swallow.title2"; }
400             rel2 { relative: 1.0 1.0; to: "elm.swallow.title2"; }
401             align: 0.0 0.0;
402             color: 0 0 0 0;
403          }
404       }
405       part {
406          name: "elm.swallow.title3";
407          type: SWALLOW;
408          scale: 1;
409          description {
410             fixed: 1 1;
411             min: 0 ITEM_HEIGHT;
412             state: "default" 0.0;
413             rel1 { relative: 1.0 0.0; to: "elm.rect.pad2"; }
414             rel2 { relative: 1.0 1.0; to: "elm.rect.pad2"; }
415             align: 0.0 0.5;
416          }
417       }  
418       part {
419          name: "elm.rect.pad3";
420          type: RECT;
421          mouse_events: 0;
422          scale: 1;
423          description {
424             state: "default" 0.0;
425             min: 0 0;
426             rel1 { relative: 1.0 0.0; to: "elm.swallow.title3"; }
427             rel2 { relative: 1.0 1.0; to: "elm.swallow.title3"; }
428          }
429          description {
430             state: "visible" 0.0;
431             min: PADDING 0;
432             fixed: 1 0;
433             rel1 { relative: 1.0 0.0; to: "elm.swallow.title3"; }
434             rel2 { relative: 1.0 1.0; to: "elm.swallow.title3"; }
435             align: 0.0 0.0;
436             color: 0 0 0 0;
437          }
438       }
439       part {
440          name: "elm.swallow.title4";
441          type: SWALLOW;
442          scale: 1;
443          description {
444             fixed: 1 1;
445             min: 0 ITEM_HEIGHT;
446             state: "default" 0.0;
447             rel1 { relative: 1.0 0.0; to: "elm.rect.pad3"; }
448             rel2 { relative: 1.0 1.0; to: "elm.rect.pad3"; }
449             align: 0.0 0.5;
450          }
451       }
452       part {
453          name: "elm.rect.pad4";
454          type: RECT;
455          mouse_events: 0;
456          scale: 1;
457          description {
458             state: "default" 0.0;
459             min: 0 0;
460             rel1 { relative: 1.0 0.0; to: "elm.swallow.title4"; }
461             rel2 { relative: 1.0 1.0; to: "elm.swallow.title4"; }
462          }
463          description {
464             state: "visible" 0.0;
465             min: PADDING 0;
466             fixed: 1 0;
467             rel1 { relative: 1.0 0.0; to: "elm.swallow.title4"; }
468             rel2 { relative: 1.0 1.0; to: "elm.swallow.title4"; }
469             align: 0.0 0.0;
470             color: 0 0 0 0;
471          }
472       }
473       part {
474          name: "elm.swallow.title5";
475          type: SWALLOW;
476          scale: 1;
477          description {
478             fixed: 1 1;
479             min: 0 ITEM_HEIGHT;
480             state: "default" 0.0;
481             rel1 { relative: 1.0 0.0; to: "elm.rect.pad4"; }
482             rel2 { relative: 1.0 1.0; to: "elm.rect.pad4"; }
483             align: 0.0 0.5;
484          }
485       }  
486    } /* end of parts */
487
488    programs {
489       program {
490          name: "seconditem";
491          signal: "elm,state,item,add,2";
492          source: "elm";
493          action: STATE_SET "visible" 0.0;
494          target: "elm.rect.pad1";
495       }
496       program {
497          name: "thirditem";
498          signal: "elm,state,item,add,3";
499          source: "elm";
500          action: STATE_SET "visible" 0.0;
501          target: "elm.rect.pad2";
502       }
503       program {
504          name: "fourthitem";
505          signal: "elm,state,item,add,4";
506          source: "elm";
507          action: STATE_SET "visible" 0.0;
508          target: "elm.rect.pad3";
509       }
510       program {
511          name: "fifthitem";
512          signal: "elm,state,item,add,5";
513          source: "elm";
514          action: STATE_SET "visible" 0.0;
515          target: "elm.rect.pad4";
516       }
517    } /* end of programs */
518 } /* end of group "navigationbar" */
519
520
521 ///////////////////////////////////////////////////////////////////////////////
522    group { name: "elm/pager/base/navigationbar";
523       parts {
524          part { 
525             name: "clip";
526             type: RECT;
527             mouse_events: 0;
528             description { 
529                state: "default" 0.0;
530                rel1 { 
531                   to: "base";
532                   offset: -9999 -9999;
533                }
534                rel2 { 
535                   to: "base";
536                   offset: 9999 9999;
537                }
538                color: 255 255 255 255;
539             }
540             description { 
541                state: "visible" 0.0;
542                inherit: "default" 0.0;
543             }
544             description { 
545                state: "hidden" 0.0;
546                inherit: "default" 0.0;
547                color: 255 255 255 0;
548                visible: 0;
549             }
550             description { 
551                state: "hidden2" 0.0;
552                inherit: "default" 0.0;
553                color: 255 255 255 0;
554                visible: 0;
555             }
556          }
557          part { 
558             name: "base";
559             type: RECT;
560             mouse_events:  0;
561             clip_to: "clip";
562             description { 
563                state: "default" 0.0;
564                color: 0 0 0 0;
565             }
566             description { 
567                state: "hidden" 0.0;
568                color: 0 0 0 0;
569                rel1.relative: -1.0 0.0;
570                rel2.relative: 0.0 1.0;
571             }
572             description {
573                state: "hidden2" 0.0;
574                color: 0 0 0 0;
575                rel1.relative: 1.0 0.0;
576                rel2.relative: 2.0 1.0;
577             }
578             description { 
579                state: "visible" 0.0;
580                color: 0 0 0 0;
581                rel1.relative: 0.0 0.0;
582                rel2.relative: 1.0 1.0;
583             }
584          }
585          part { 
586             name: "elm.swallow.content";
587             type: SWALLOW;
588             clip_to: "clip";
589             description { 
590                state: "default" 0.0;
591                rel1.to: "base";
592                rel2.to: "base";
593             }
594          }
595       }
596       programs {
597          program { 
598             name: "push_start";
599             signal: "elm,action,push";
600             source: "elm";
601             action:  STATE_SET "hidden2" 0.0;
602             target: "base";
603             target: "clip";
604             after: "show_start2";
605          }
606          program { 
607             name: "show_start";
608             signal: "elm,action,show";
609             source: "elm";
610             action:  STATE_SET "hidden" 0.0;
611             target: "base";
612             target: "clip";
613             after: "show_start2";
614          }
615          program { 
616             name: "show_start2";
617             action:  STATE_SET "visible" 0.0;
618             transition: DECELERATE 0.5;
619             target: "base";
620             target: "clip";
621             after: "show_end";
622          }
623          program { 
624             name: "show_end";
625             action: SIGNAL_EMIT "elm,action,show,finished" "";
626          }
627          program { 
628             name: "pop_start";
629             signal: "elm,action,pop";
630             source: "elm";
631             action:  STATE_SET "visible" 0.0;
632             target: "base";
633             target: "clip";
634             after: "pop_start2";
635          }
636          program { 
637             name: "pop_start2";
638             action:  STATE_SET "hidden2" 0.0;
639             transition: DECELERATE 0.5;
640             target: "base";
641             target: "clip";
642             after: "hide_end";
643          }
644          program { 
645             name: "hide_start";
646             signal: "elm,action,hide";
647             source: "elm";
648             action:  STATE_SET "visible" 0.0;
649             target: "base";
650             target: "clip";
651             after: "hide_start2";
652          }
653          program { 
654             name: "hide_start2";
655             action:  STATE_SET "hidden" 0.0;
656             transition: DECELERATE 0.5;
657             target: "base";
658             target: "clip";
659             after: "hide_end";
660          }
661          program { 
662             name: "hide_end";
663             action: SIGNAL_EMIT "elm,action,hide,finished" "";
664          }
665          program { 
666             name: "reset";
667             signal: "elm,action,reset";
668             source: "elm";
669             action:  STATE_SET "default" 0.0;
670             target: "base";
671             target: "clip";
672          }
673          program { 
674             name: "show_firstpage"; /*avoid effect in first page*/
675             signal: "elm,action,show,noanimate";
676             source: "elm";
677             action: STATE_SET "visible" 0.0;
678             target: "base";
679             target: "clip";
680             after: "show_end";
681          }
682          program { 
683             name: "hide_firstpage"; /*avoid effect in first page*/
684             signal: "elm,action,hide,noanimate";
685             source: "elm";
686             action: STATE_SET "hidden" 0.0;
687             target: "base";
688             target: "clip";
689             after: "hide_end";
690          }
691       }
692    }