elementary/naviframe - added overlap style and updated test case.
[framework/uifw/elementary.git] / data / themes / widgets / naviframe.edc
1 group { name: "elm/naviframe/base/default";
2    name: "elm/naviframe/base/pager";
3    parts {
4       part { name: "base0";
5          description { state: "default" 0.0;
6          }
7       }
8    }
9 }
10 group { name: "elm/naviframe/item/basic/default";
11    parts {
12       part { name: "title_clip";
13          type: RECT;
14         description { state: "default" 0.0;
15             min: 1 55;
16             align: 0.0 0.0;
17             fixed: 0 1;
18             rel1 { relative: 0.0 0.0; }
19             rel2 { relative: 1.0 0.0; }
20          }
21          description { state: "hide" 0.0;
22             inherit: "default" 0.0;
23             min: 0 0;
24             max: 0 0;
25             fixed: 1 1;
26          }
27       }
28       part { name: "content_clip";
29          type: RECT;
30          mouse_events: 0;
31          description { state: "default" 0.0;
32             rel1.to_y: "title_clip";
33             rel1.relative: 0 1;
34          }
35       }
36       part { name: "content_base";
37          type: RECT;
38          clip_to: "content_clip";
39          description { state: "default" 0.0;
40             rel1 { to: "elm.swallow.content"; }
41             rel2 { to: "elm.swallow.content"; }
42             color: 225 225 225 255;
43          }
44       }
45       part { name: "elm.swallow.content";
46          type: SWALLOW;
47          scale: 1;
48          clip_to: "content_clip";
49          description { state: "default" 0.0;
50             align: 0.0 0.0;
51             rel1.relative: 0.0 1.0;
52             rel1.to_y: "title_clip";
53             rel2.relative: 1.0 1.0;
54          }
55          description { state: "left" 0.0;
56             inherit: "default" 0.0;
57             rel1.relative: -1.0 1.0;
58             rel2.relative: 0.0 1.0;
59          }
60          description { state: "right" 0.0;
61             inherit: "default" 0.0;
62             rel1.relative: 1.0 1.0;
63             rel2.relative: 2.0 1.0;
64          }
65       }
66       part { name: "title_base";
67          type: RECT;
68          description { state: "default" 0.0;
69             rel1 { to: "title_clip"; }
70             rel2 { to: "title_clip"; }
71             color: 225 225 225 255;
72          }
73       }
74       part { name: "title_separator";
75          type: RECT;
76          clip_to: "title_clip";
77          description { state: "default" 0.0;
78             min: 0 5;
79             align: 0.5 1;
80             fixed: 0 1;
81             rel1 { to: "title_clip"; relative: 0 1; }
82             rel2 { to: "title_clip"; }
83             color: 150 150 150 255;
84          }
85       }
86       part { name: "elm.swallow.prev_btn";
87          type: SWALLOW;
88          scale: 1;
89          clip_to: "title_clip";
90          description { state: "default" 0.0;
91             min: 80 40;
92             max: 80 40;
93             align: 0 0;
94             fixed: 1 1;
95             rel1.offset: 5 5;
96             rel1.to: "title_base";
97             rel2.offset: -1 -6;
98             rel2.to: "title_base";
99          }
100       }
101       part { name: "elm.swallow.next_btn";
102          type: SWALLOW;
103          scale: 1;
104          clip_to: "title_clip";
105          description { state: "default" 0.0;
106             min: 80 40;
107             max: 80 40;
108             align: 1 0;
109             fixed: 1 1;
110             rel1.offset: 0 5;
111             rel1.to: "title_base";
112             rel2.offset: -6 -6;
113             rel2.to: "title_base";
114          }
115       }
116       part { name: "elm.swallow.icon";
117          type: SWALLOW;
118          scale: 1;
119          clip_to: "title_clip";
120          description { state: "default" 0.0;
121             min: 40 40;
122             max: 40 40;
123             fixed: 1 1;
124             align: 1 0.5;
125             rel1.to: "elm.text.title";
126             rel1.relative: 0 0;
127             rel2.to: "elm.text.title";
128             rel2.relative: 0 1;
129          }
130       }
131       part { name: "elm.text.title";
132          type: TEXT;
133          scale: 1;
134          repeat_events: 1;
135          clip_to: "title_clip";
136          description { state: "default" 0.0;
137             text { font: "Sans:style=Bold";
138                size: 12;
139                min: 0 0;
140                max: 1 0;
141                align: 0.5 0.5;
142             }
143             color: 0 0 0 255;
144             align: 0.5 0.5;
145             rel1.to: "title_base";
146             rel2.to: "title_base";
147          }
148       }
149       part { name: "elm.text.subtitle";
150          type: TEXT;
151          scale: 1;
152          repeat_events: 1;
153          clip_to: "title_clip";
154          description { state: "default" 0.0;
155             text { font: "Sans,Edje-Vera";
156                size: 10;
157                min: 0 0;
158                max: 1 0;
159                align: 0.5 1;
160             }
161             rel1.to_y: "elm.text.title";
162             rel1.relative: 0 1;
163             rel1.to: "title_base";
164             rel1.offset: 0 -3;
165             rel2.to: "title_base";
166             rel2.offset: -1 -4;
167             color: 50 50 50 255;
168             align: 0.5 0;
169          }
170       }
171    }
172    programs {
173       program { name: "content_new_pusehd";
174          signal: "elm,state,new,pushed,internal";
175          source: "";
176          action: STATE_SET "default" 0.0;
177          transition: DECELERATE 0.5;
178          target: "elm.swallow.content";
179          after: "show_finished";
180       }
181       program { name: "content_cur_pusehd";
182          signal: "elm,state,cur,pushed,internal";
183          source: "";
184          action: STATE_SET "left" 0.0;
185          target: "elm.swallow.content";
186          transition: DECELERATE 0.5;
187          after: "pushed_finished";
188       }
189       program { name: "content_prev_popped";
190          signal: "elm,state,prev,popped,internal";
191          source: "";
192          action: STATE_SET "default" 0.0;
193          target: "elm.swallow.content";
194          transition: DECELERATE 0.5;
195          after: "show_finished";
196       }
197       program { name: "content_cur_popped";
198          signal: "elm,state,cur,popped,internal";
199          source: "";
200          action: STATE_SET "right" 0.0;
201          target: "elm.swallow.content";
202          transition: DECELERATE 0.5;
203          after: "popped_finished";
204       }
205       program { name: "cur_pushed";
206          signal: "elm,state,cur,pushed";
207          source: "elm";
208          script {
209             set_state(PART:"elm.swallow.content", "default", 0.0);
210             emit("elm,state,cur,pushed,internal", "");
211          }
212       }
213       program { name: "new_pushed";
214          signal: "elm,state,new,pushed";
215          source: "elm";
216          script {
217             set_state(PART:"elm.swallow.content", "right", 0.0);
218             emit("elm,state,new,pushed,internal", "");
219          }
220       }
221       program { name: "prev_popped";
222          signal: "elm,state,prev,popped";
223          source: "elm";
224          script {
225             set_state(PART:"elm.swallow.content", "left", 0.0);
226             emit("elm,state,prev,popped,internal", "");
227          }
228       }
229       program { name: "cur_popped";
230          signal: "elm,state,cur,popped";
231          source: "elm";
232          script {
233             set_state(PART:"elm.swallow.content", "default", 0.0);
234             emit("elm,state,cur,popped,internal", "");
235          }
236       }
237       program { name: "visible";
238          signal: "elm,state,visible";
239          source: "elm";
240          action: STATE_SET "default" 0.0;
241          target: "elm.swallow.content";
242       }
243       program { name: "title_show";
244          signal: "elm,state,title,show";
245          source: "elm";
246          action: STATE_SET "default" 0.0;
247          target: "title_clip";
248       }
249       program { name: "title_hide";
250          signal: "elm,state,title,hide";
251          source: "elm";
252          action: STATE_SET "hide" 0.0;
253          target: "title_clip";
254       }
255       program {
256          name: "title_clicked";
257          signal: "mouse,clicked,1";
258          source: "title_base";
259          action: SIGNAL_EMIT "elm,action,title,clicked" "";
260       }
261       program { name: "show_finished";
262          action: SIGNAL_EMIT "elm,action,show,finished" "";
263       }
264       program { name: "pushed_finished";
265          action: SIGNAL_EMIT "elm,action,pushed,finished" "";
266       }
267       program { name: "popped_finished";
268          action: SIGNAL_EMIT "elm,action,popped,finished" "";
269       }
270    }
271 }
272 group { name: "elm/naviframe/item/overlap/default";
273    parts {
274       part { name: "title_clip";
275          type: RECT;
276         description { state: "default" 0.0;
277             min: 1 55;
278             align: 0.0 0.0;
279             fixed: 0 1;
280             rel1 { relative: 0.0 0.0; }
281             rel2 { relative: 1.0 0.0; }
282          }
283          description { state: "hide" 0.0;
284             inherit: "default" 0.0;
285             min: 0 0;
286             max: 0 0;
287             fixed: 1 1;
288          }
289       }
290       part { name: "content_clip";
291          type: RECT;
292          mouse_events: 0;
293          description { state: "default" 0.0;
294             rel1.to_y: "title_clip";
295             rel1.relative: 0 1;
296          }
297       }
298       part { name: "content_base";
299          type: RECT;
300          clip_to: "content_clip";
301          description { state: "default" 0.0;
302             rel1 { to: "elm.swallow.content"; }
303             rel2 { to: "elm.swallow.content"; }
304             color: 225 225 225 255;
305          }
306       }
307       part { name: "elm.swallow.content";
308          type: SWALLOW;
309          scale: 1;
310          clip_to: "content_clip";
311          description { state: "default" 0.0;
312             align: 0.0 0.0;
313             rel1.relative: 0.0 1.0;
314             rel1.to_y: "title_clip";
315             rel2.relative: 1.0 1.0;
316             color: 255 255 255 255;
317          }
318          description { state: "left" 0.0;
319             inherit: "default" 0.0;
320             color: 0 0 0 0;
321          }
322          description { state: "right" 0.0;
323             inherit: "default" 0.0;
324             rel1.relative: 1.0 1.0;
325             rel2.relative: 2.0 1.0;
326             color: 0 0 0 0;
327          }
328       }
329       part { name: "title_base";
330          type: RECT;
331          description { state: "default" 0.0;
332             rel1 { to: "title_clip"; }
333             rel2 { to: "title_clip"; }
334             color: 225 225 225 255;
335          }
336       }
337       part { name: "title_separator";
338          type: RECT;
339          clip_to: "title_clip";
340          description { state: "default" 0.0;
341             min: 0 5;
342             align: 0.5 1;
343             fixed: 0 1;
344             rel1 { to: "title_clip"; relative: 0 1; }
345             rel2 { to: "title_clip"; }
346             color: 150 150 150 255;
347          }
348       }
349       part { name: "elm.swallow.prev_btn";
350          type: SWALLOW;
351          scale: 1;
352          clip_to: "title_clip";
353          description { state: "default" 0.0;
354             min: 80 40;
355             max: 80 40;
356             align: 0 0;
357             fixed: 1 1;
358             rel1.offset: 5 5;
359             rel1.to: "title_base";
360             rel2.offset: -1 -6;
361             rel2.to: "title_base";
362          }
363       }
364       part { name: "elm.swallow.next_btn";
365          type: SWALLOW;
366          scale: 1;
367          clip_to: "title_clip";
368          description { state: "default" 0.0;
369             min: 80 40;
370             max: 80 40;
371             align: 1 0;
372             fixed: 1 1;
373             rel1.offset: 0 5;
374             rel1.to: "title_base";
375             rel2.offset: -6 -6;
376             rel2.to: "title_base";
377          }
378       }
379       part { name: "elm.swallow.icon";
380          type: SWALLOW;
381          scale: 1;
382          clip_to: "title_clip";
383          description { state: "default" 0.0;
384             min: 40 40;
385             max: 40 40;
386             fixed: 1 1;
387             align: 1 0.5;
388             rel1.to: "elm.text.title";
389             rel1.relative: 0 0;
390             rel2.to: "elm.text.title";
391             rel2.relative: 0 1;
392          }
393       }
394       part { name: "elm.text.title";
395          type: TEXT;
396          scale: 1;
397          repeat_events: 1;
398          clip_to: "title_clip";
399          description { state: "default" 0.0;
400             text { font: "Sans:style=Bold";
401                size: 12;
402                min: 0 0;
403                max: 1 0;
404                align: 0.5 0.5;
405             }
406             color: 0 0 0 255;
407             align: 0.5 0.5;
408             rel1.to: "title_base";
409             rel2.to: "title_base";
410          }
411       }
412       part { name: "elm.text.subtitle";
413          type: TEXT;
414          scale: 1;
415          repeat_events: 1;
416          clip_to: "title_clip";
417          description { state: "default" 0.0;
418             text { font: "Sans,Edje-Vera";
419                size: 10;
420                min: 0 0;
421                max: 1 0;
422                align: 0.5 1;
423             }
424             rel1.to_y: "elm.text.title";
425             rel1.relative: 0 1;
426             rel1.to: "title_base";
427             rel1.offset: 0 -3;
428             rel2.to: "title_base";
429             rel2.offset: -1 -4;
430             color: 50 50 50 255;
431             align: 0.5 0;
432          }
433       }
434    }
435    programs {
436       program { name: "content_new_pusehd";
437          signal: "elm,state,new,pushed,internal";
438          source: "";
439          action: STATE_SET "default" 0.0;
440          transition: DECELERATE 0.5;
441          target: "elm.swallow.content";
442          after: "show_finished";
443       }
444       program { name: "content_cur_pusehd";
445          signal: "elm,state,cur,pushed,internal";
446          source: "";
447          action: STATE_SET "left" 0.0;
448          target: "elm.swallow.content";
449          transition: DECELERATE 0.5;
450          after: "pushed_finished";
451       }
452       program { name: "content_prev_popped";
453          signal: "elm,state,prev,popped,internal";
454          source: "";
455          action: STATE_SET "default" 0.0;
456          target: "elm.swallow.content";
457          transition: DECELERATE 0.5;
458          after: "show_finished";
459       }
460       program { name: "content_cur_popped";
461          signal: "elm,state,cur,popped,internal";
462          source: "";
463          action: STATE_SET "right" 0.0;
464          target: "elm.swallow.content";
465          transition: DECELERATE 0.5;
466          after: "popped_finished";
467       }
468       program { name: "cur_pushed";
469          signal: "elm,state,cur,pushed";
470          source: "elm";
471          script {
472             set_state(PART:"elm.swallow.content", "default", 0.0);
473             emit("elm,state,cur,pushed,internal", "");
474          }
475       }
476       program { name: "new_pushed";
477          signal: "elm,state,new,pushed";
478          source: "elm";
479          script {
480             set_state(PART:"elm.swallow.content", "right", 0.0);
481             emit("elm,state,new,pushed,internal", "");
482          }
483       }
484       program { name: "prev_popped";
485          signal: "elm,state,prev,popped";
486          source: "elm";
487          script {
488             set_state(PART:"elm.swallow.content", "left", 0.0);
489             emit("elm,state,prev,popped,internal", "");
490          }
491       }
492       program { name: "cur_popped";
493          signal: "elm,state,cur,popped";
494          source: "elm";
495          script {
496             set_state(PART:"elm.swallow.content", "default", 0.0);
497             emit("elm,state,cur,popped,internal", "");
498          }
499       }
500       program { name: "visible";
501          signal: "elm,state,visible";
502          source: "elm";
503          action: STATE_SET "default" 0.0;
504          target: "elm.swallow.content";
505       }
506       program { name: "title_show";
507          signal: "elm,state,title,show";
508          source: "elm";
509          action: STATE_SET "default" 0.0;
510          target: "title_clip";
511       }
512       program { name: "title_hide";
513          signal: "elm,state,title,hide";
514          source: "elm";
515          action: STATE_SET "hide" 0.0;
516          target: "title_clip";
517       }
518       program {
519          name: "title_clicked";
520          signal: "mouse,clicked,1";
521          source: "title_base";
522          action: SIGNAL_EMIT "elm,action,title,clicked" "";
523       }
524       program { name: "show_finished";
525          action: SIGNAL_EMIT "elm,action,show,finished" "";
526       }
527       program { name: "pushed_finished";
528          action: SIGNAL_EMIT "elm,action,pushed,finished" "";
529       }
530       program { name: "popped_finished";
531          action: SIGNAL_EMIT "elm,action,popped,finished" "";
532       }
533    }
534 }