Initialize Tizen 2.3
[framework/uifw/elementary.git] / wearable / data / themes / widgets / calendar.edc
1 #define CH(_pos) \
2    part { name: "ch_"#_pos".base"; \
3       type: RECT; \
4       description { state: "default" 0.0; \
5          rel1 { \
6             relative: (_pos % 7 * 7 / 8 / 6) 0; \
7             to: "header"; \
8          } \
9          rel2 { \
10             relative: (_pos % 7 * 7 / 8 / 6 + 1 / 8) 1; \
11             to: "header"; \
12          } \
13          color: 0 0 0 0; \
14          visible: 0; \
15       } \
16    } \
17    part { name: "ch_"#_pos".text"; \
18       type: TEXT; \
19       effect: SOFT_SHADOW; \
20       mouse_events: 0; \
21       scale: 1; \
22       clip_to: "ch_"#_pos".clipper"; \
23       description { \
24          state: "default" 0.0; \
25          rel1.to: "ch_"#_pos".base"; \
26          rel2.to: "ch_"#_pos".base"; \
27          color: 0 0 0 255; \
28          color3: 0 0 0 0; \
29          text { \
30             font: "Sans"; \
31             size: 10; \
32             min: 1 1; \
33             align: 0.5 0.5; \
34          } \
35       } \
36    } \
37    part { name: "ch_"#_pos".clipper"; \
38       type: RECT; \
39       description { state: "default" 0.0; \
40          rel1.to: "ch_"#_pos".base"; \
41          rel2.to: "ch_"#_pos".base"; \
42       } \
43    }
44
45 #define CIT(_pos) \
46    part { name: "cit_"#_pos".rect"; \
47       type: RECT; \
48       description { state: "default" 0.0; \
49          rel1 { \
50             relative: (_pos % 7 * 7 / 8 / 6) \
51             (_pos / 8 / 5 - _pos % 7 / 8 / 5); \
52             to: "base"; \
53          } \
54          rel2 { \
55             relative: (_pos % 7 * 7 / 8 / 6 + 1 / 8) \
56             (_pos / 8 / 5 - _pos % 7 / 8 / 5 + 1 / 8); \
57             to: "base"; \
58          } \
59          color: 0 0 0 0; \
60          visible: 0; \
61       } \
62    } \
63    part { \
64       name: "cit_"#_pos".event"; \
65       type: RECT; \
66       repeat_events: 1; \
67       description { \
68          rel1.to: "cit_"#_pos".rect"; \
69          rel2.to: "cit_"#_pos".rect"; \
70          state: "default" 0.0; \
71          color: 0 0 0 0; \
72       } \
73    } \
74    part { name: "cit_"#_pos".shelf"; \
75       type: RECT; \
76       mouse_events: 0; \
77       description { state: "default" 0.0; \
78          rel1 { \
79             to: "cit_"#_pos".bg"; \
80             offset: -1 -1; \
81          } \
82          rel2 { \
83             to: "cit_"#_pos".bg"; \
84          } \
85          color: 200 200 200 255; \
86       } \
87    } \
88    part { name: "cit_"#_pos".hd"; \
89       type: RECT; \
90       mouse_events: 0; \
91       description { state: "default" 0.0; \
92          rel1 { \
93             to: "cit_"#_pos".bg"; \
94             offset: -1 -1; \
95          } \
96          rel2 { \
97             to: "cit_"#_pos".bg"; \
98          } \
99          visible: 0; \
100          color: 160 0 0 255; \
101       } \
102       description { state: "visible" 0.0; \
103          inherit: "default" 0.0; \
104          visible: 1; \
105       } \
106    } \
107    part { \
108       name: "cit_"#_pos".base_sh"; \
109       mouse_events: 0; \
110       description { \
111          state: "default" 0.0; \
112          align: 0.0 0.0; \
113          min: 0 1; \
114          rel1 { \
115             to: "cit_"#_pos".base"; \
116             relative: 0.0 1.0; \
117             offset: 0 0; \
118          } \
119          rel2 { \
120             to: "cit_"#_pos".base"; \
121             relative: 1.0 1.05; \
122             offset: -1 0; \
123          } \
124          image { \
125             normal: "ilist_item_shadow.png"; \
126          } \
127          fill.smooth: 0; \
128       } \
129    } \
130    part { \
131       name: "cit_"#_pos".base"; \
132       mouse_events: 0; \
133       description { \
134          state: "default" 0.0; \
135          rel1.to: "cit_"#_pos".rect"; \
136          rel2.to: "cit_"#_pos".rect"; \
137          rel2.offset: -1 -1; \
138          image { \
139             normal: "ilist_1.png"; \
140             border: 2 2 2 2; \
141          } \
142          fill.smooth: 0; \
143       } \
144       description { \
145          state: "today" 0.0; \
146          inherit: "default" 0.0; \
147          image.normal: "ilist_2.png"; \
148          color: 240 240 240 255; \
149       } \
150    } \
151    part { name: "cit_"#_pos".bg"; \
152       mouse_events: 0; \
153       description { state: "default" 0.0; \
154          visible: 0; \
155          color: 255 255 255 0; \
156          rel1 { \
157             to: "cit_"#_pos".rect"; \
158             relative: 0.0 0.0; \
159          } \
160          rel2 { \
161             to: "cit_"#_pos".rect"; \
162             relative: 1.0 1.0; \
163             offset: -1 -1; \
164          } \
165          image { \
166             normal: "bt_sm_base1.png"; \
167             border: 6 6 6 6; \
168          } \
169          image.middle: SOLID; \
170       } \
171       description { state: "selected" 0.0; \
172          inherit: "default" 0.0; \
173          visible: 1; \
174          color: 255 255 255 255; \
175       } \
176    } \
177    part { name: "cit_"#_pos".text"; \
178       type: TEXT; \
179       effect: SOFT_SHADOW; \
180       mouse_events: 0; \
181       scale: 1; \
182       description { \
183          state: "default" 0.0; \
184          rel1.to: "cit_"#_pos".bg"; \
185          rel2.to: "cit_"#_pos".bg"; \
186          color: 0 0 0 255; \
187          color3: 0 0 0 0; \
188          text { \
189             font: "Sans"; \
190             size: 10; \
191             min: 1 1; \
192             align: 0.5 0.5; \
193          } \
194       } \
195       description { state: "selected" 0.0; \
196          inherit: "default" 0.0; \
197          color: 224 224 224 255; \
198          color3: 0 0 0 64; \
199       } \
200    } \
201    part { name: "cit_"#_pos".fg1"; \
202       mouse_events: 0; \
203       description { state: "default" 0.0; \
204          visible: 0; \
205          color: 255 255 255 0; \
206          rel1.to: "cit_"#_pos".bg"; \
207          rel2.relative: 1.0 0.5; \
208          rel2.to: "cit_"#_pos".bg"; \
209          image { \
210             normal: "bt_sm_hilight.png"; \
211             border: 6 6 6 0; \
212          } \
213       } \
214       description { state: "selected" 0.0; \
215          inherit: "default" 0.0; \
216          visible: 1; \
217          color: 255 255 255 255; \
218       } \
219    } \
220    part { name: "cit_"#_pos".fg2"; \
221       mouse_events: 0; \
222       description { state: "default" 0.0; \
223          visible: 0; \
224          color: 255 255 255 0; \
225          rel1.to: "cit_"#_pos".bg"; \
226          rel2.to: "cit_"#_pos".bg"; \
227          image { \
228             normal: "bt_sm_shine.png"; \
229             border: 6 6 6 0; \
230          } \
231       } \
232       description { state: "selected" 0.0; \
233          inherit: "default" 0.0; \
234          visible: 1; \
235          color: 255 255 255 255; \
236       } \
237    } \
238    part { name: "cit_"#_pos".check"; \
239       mouse_events: 0; \
240       description { state: "default" 0.0; \
241          rel1 { \
242             to: "cit_"#_pos".bg"; \
243             relative: 0.7 0.6; \
244             offset: 1 1; \
245          } \
246          rel2 { \
247             to: "cit_"#_pos".bg"; \
248             relative: 1.1 1.2; \
249             offset: -2 -2; \
250          } \
251          aspect: 1 1; \
252          visible: 0; \
253          color: 255 0 0 255; \
254          image.normal: "check.png"; \
255       } \
256       description { state: "visible" 0.0; \
257          inherit: "default" 0.0; \
258          visible: 1; \
259       } \
260    } \
261    part { name: "cit_"#_pos".access"; \
262       type: RECT; \
263       repeat_events: 1; \
264       description { state: "default" 0.0; \
265          rel1.to: "cit_"#_pos".event"; \
266          rel2.to: "cit_"#_pos".event"; \
267          visible: 1; \
268          color: 0 0 0 0; \
269       } \
270    } \
271    programs { \
272       program { \
273          name:    "cit_"#_pos".go_active"; \
274          signal:  "cit_"#_pos",selected"; \
275          source:  "elm"; \
276          action:  STATE_SET "selected" 0.0; \
277          target:  "cit_"#_pos".bg"; \
278          target:  "cit_"#_pos".fg1"; \
279          target:  "cit_"#_pos".fg2"; \
280          target:  "cit_"#_pos".text"; \
281       } \
282       program { \
283          name:    "cit_"#_pos".go_passive"; \
284          signal:  "cit_"#_pos",unselected"; \
285          source:  "elm"; \
286          action:  STATE_SET "default" 0.0; \
287          target:  "cit_"#_pos".bg"; \
288          target:  "cit_"#_pos".fg1"; \
289          target:  "cit_"#_pos".fg2"; \
290          target:  "cit_"#_pos".text"; \
291       } \
292       program { \
293          name:    "cit_"#_pos".is_today"; \
294          signal:  "cit_"#_pos",today"; \
295          source:  "elm"; \
296          action:  STATE_SET "today" 0.0; \
297          target: "cit_"#_pos".base"; \
298       } \
299       program { \
300          name:    "cit_"#_pos".not_today"; \
301          signal:  "cit_"#_pos",not_today"; \
302          source:  "elm"; \
303          action:  STATE_SET "default" 0.0; \
304          target: "cit_"#_pos".base"; \
305       } \
306       program { \
307          source: "cit_"#_pos".clicked"; \
308          signal: "mouse,clicked,1"; \
309          source: "cit_"#_pos".event"; \
310          action: SIGNAL_EMIT "elm,action,selected" #_pos; \
311       } \
312       program { \
313          name:    "cit_"#_pos".clear"; \
314          signal:  "cit_"#_pos",clear"; \
315          source:  "elm"; \
316          action:  STATE_SET "default" 0.0; \
317          target: "cit_"#_pos".check"; \
318          target: "cit_"#_pos".hd"; \
319       } \
320       program { \
321          name:    "cit_"#_pos".checked"; \
322          signal:  "cit_"#_pos",checked"; \
323          source:  "elm"; \
324          action:  STATE_SET "visible" 0.0; \
325          target: "cit_"#_pos".check"; \
326       } \
327       program { \
328          name:    "cit_"#_pos".holiday"; \
329          signal:  "cit_"#_pos",holiday"; \
330          source:  "elm"; \
331          action:  STATE_SET "visible" 0.0; \
332          target: "cit_"#_pos".hd"; \
333       } \
334    }
335
336 group { name: "elm/calendar/base/default";
337    images {
338       image: "shelf_inset.png" COMP;
339       image: "bt_base1.png" COMP;
340       image: "bt_hilight.png" COMP;
341       image: "bt_shine.png" COMP;
342       image: "bt_glow.png" COMP;
343       image: "bt_dis_base.png" COMP;
344       image: "bt_dis_hilight.png" COMP;
345       image: "sp_bt_l.png" COMP;
346       image: "sp_bt_r.png" COMP;
347       image: "bt_sm_base1.png" COMP;
348       image: "bt_sm_shine.png" COMP;
349       image: "bt_sm_hilight.png" COMP;
350       image: "ilist_1.png" COMP;
351       image: "ilist_2.png" COMP;
352       image: "ilist_item_shadow.png" COMP;
353       image: "check.png" COMP;
354    }
355    parts {
356       part { name: "bg";
357          type: RECT;
358          description { state: "default" 0.0;
359             min: 0 30;
360             rel1.offset: 1 1;
361             rel2.offset: -2 -2;
362             color: 255 255 255 0;
363             align: 0.0 0.5;
364          }
365       }
366       part { name: "spinner-base";
367          type: RECT;
368          mouse_events: 0;
369          description { state: "default" 0.0;
370             min: 24 24;
371             max: 999999 24;
372             rel1.to: "bg";
373             rel1.offset: 6 6;
374             rel2.to: "bg";
375             rel2.offset: -7 -7;
376             color: 255 255 255 0;
377             align: 0.0 0.0;
378          }
379       }
380       part { name: "conf_over_spinner";
381          mouse_events:  0;
382          description { state: "default" 0.0;
383             rel1.to: "spinner-base";
384             rel1.offset: -3 -3;
385             rel2.to: "spinner-base";
386             rel2.offset: 2 2;
387             image {
388                normal: "shelf_inset.png";
389                border: 7 7 7 7;
390                middle: 0;
391             }
392             fill.smooth : 0;
393          }
394       }
395       part { name: "table-base";
396          type: RECT;
397          mouse_events: 0;
398          description { state: "default" 0.0;
399             min: 256 220;
400             rel1.to_x: "bg";
401             rel1.to_y: "spinner-base";
402             rel1.offset: 6 6;
403             rel1.relative: 0 1;
404             rel2.to: "bg";
405             rel2.offset: -7 -7;
406             color: 255 255 255 0;
407          }
408       }
409       part { name: "conf_over_table";
410          mouse_events:  0;
411          description { state: "default" 0.0;
412             rel1.to: "table-base";
413             rel1.offset: -3 -3;
414             rel2.to: "table-base";
415             rel2.offset: 2 2;
416             image {
417                normal: "shelf_inset.png";
418                border: 7 7 7 7;
419                middle: 0;
420             }
421             fill.smooth : 0;
422          }
423       }
424       part { name: "header";
425          type: RECT;
426          mouse_events: 0;
427          description { state: "default" 0.0;
428             rel1.to: "table-base";
429             rel1.relative: 0 0;
430             rel2.to: "table-base";
431             rel2.relative: 1 0.1;
432             color: 255 255 255 0;
433          }
434       }
435       part { name: "base";
436          type: RECT;
437          mouse_events: 0;
438          description { state: "default" 0.0;
439             rel1.to_x: "table-base";
440             rel1.to_y: "header";
441             rel1.relative: 0 1;
442             rel1.offset: 3 0;
443             rel2.to: "table-base";
444             rel2.offset: -3 0;
445             color: 255 255 255 0;
446          }
447       }
448       part { name: "left_bt";
449          mouse_events:  1;
450          description { state: "default" 0.0;
451             rel1 { to: "spinner-base";
452                offset: 2 2;
453             }
454             rel2 { to: "spinner-base";
455                offset: -3 -3;
456             }
457             align: 0.0 0.5;
458             min: 24 24;
459             max: 24 24;
460             fixed: 1 1;
461             image {
462                normal: "bt_base1.png";
463                border: 6 6 6 6;
464             }
465             fill.smooth : 0;
466          }
467          description { state: "clicked" 0.0;
468             inherit: "default" 0.0;
469             image.normal: "bt_base1.png";
470             image.middle: SOLID;
471          }
472       }
473       part { name: "left_over1";
474          mouse_events: 0;
475          description { state: "default" 0.0;
476             rel1.to: "left_bt";
477             rel2 { to: "left_bt";
478                relative: 1.0 0.5;
479             }
480             image {
481                normal: "bt_hilight.png";
482                border: 7 7 7 0;
483             }
484          }
485       }
486       part { name: "left_over2";
487          mouse_events: 1;
488          repeat_events: 1;
489          description { state: "default" 0.0;
490             rel1.to: "left_bt";
491             rel2.to: "left_bt";
492             image {
493                normal: "bt_shine.png";
494                border: 7 7 7 7;
495             }
496          }
497       }
498       part { name: "left_over3";
499          mouse_events: 1;
500          repeat_events: 1;
501          description { state: "default" 0.0;
502             color: 255 255 255 0;
503             rel1.to: "left_bt";
504             rel2.to: "left_bt";
505             image {
506                normal: "bt_glow.png";
507                border: 12 12 12 12;
508             }
509             fill.smooth : 0;
510          }
511          description { state: "clicked" 0.0;
512             inherit:  "default" 0.0;
513             visible: 1;
514             color: 255 255 255 255;
515          }
516       }
517       part { name: "right_bt";
518          mouse_events:  1;
519          description { state: "default" 0.0;
520             rel1 { to: "spinner-base";
521                offset: -27 3;
522             }
523             rel2 { to: "spinner-base";
524                offset: -3 -3;
525             }
526             align: 1.0 0.5;
527             min: 24 24;
528             max: 24 24;
529             fixed: 1 1;
530             image {
531                normal: "bt_base1.png";
532                border: 5 5 4 12;
533             }
534             fill.smooth : 0;
535          }
536          description { state: "clicked" 0.0;
537             inherit: "default" 0.0;
538             image.normal: "bt_base1.png";
539             image.middle: SOLID;
540          }
541       }
542       part { name: "right_over1";
543          mouse_events: 0;
544          description { state: "default" 0.0;
545             rel1.to: "right_bt";
546             rel2 { to: "right_bt";
547                relative: 1.0 0.5;
548             }
549             image {
550                normal: "bt_hilight.png";
551                border: 7 7 7 0;
552             }
553          }
554       }
555       part { name: "right_over2";
556          mouse_events: 1;
557          repeat_events: 1;
558          description { state: "default" 0.0;
559             rel1.to: "right_bt";
560             rel2.to: "right_bt";
561             image {
562                normal: "bt_shine.png";
563                border: 7 7 7 7;
564             }
565          }
566       }
567       part { name: "right_over3";
568          mouse_events: 1;
569          repeat_events: 1;
570          description { state: "default" 0.0;
571             color: 255 255 255 0;
572             rel1.to: "right_bt";
573             rel2.to: "right_bt";
574             image {
575                normal: "bt_glow.png";
576                border: 12 12 12 12;
577             }
578             fill.smooth : 0;
579          }
580          description { state: "clicked" 0.0;
581             inherit:  "default" 0.0;
582             visible: 1;
583             color: 255 255 255 255;
584          }
585       }
586       part { name: "left_bt_icon";
587          repeat_events: 1;
588          description { state: "default" 0.0;
589             rel1.to: "left_bt";
590             rel2.to: "left_bt";
591             align: 0.5 0.5;
592             min: 16 16;
593             max: 16 16;
594             image.normal: "sp_bt_l.png";
595          }
596          description { state: "rtl" 0.0;
597             inherit: "default" 0.0;
598             image.normal: "sp_bt_r.png";
599          }
600       }
601       part { name: "right_bt_icon";
602          repeat_events: 1;
603          description { state: "default" 0.0;
604             rel1.to: "right_bt";
605             rel2.to: "right_bt";
606             align: 0.5 0.5;
607             min: 16 16;
608             max: 16 16;
609             image.normal: "sp_bt_r.png";
610          }
611          description { state: "rtl" 0.0;
612             inherit: "default" 0.0;
613             image.normal: "sp_bt_l.png";
614          }
615       }
616       part { name: "month_text";
617          type: TEXT;
618          mouse_events: 0;
619          scale: 1;
620          description { state: "default" 0.0;
621             align: 0 0.5;
622             fixed: 1 1;
623             rel1 { relative: 1.0 0.0;
624                offset: 3 2;
625                to: "left_bt";
626                to_y: "spinner-base";
627             }
628             rel2 { relative: 0.0 1.0;
629                offset: -3 -2;
630                to_x: "right_bt";
631                to_y: "spinner-base";
632             }
633             color: 0 0 0 255;
634             text {
635                font: "Sans,Edje-Vera";
636                size: 12;
637                min: 1 1;
638                align: 0.5 0.5;
639             }
640          }
641       }
642       CH(0)   CH(1)   CH(2)   CH(3)   CH(4)   CH(5)   CH(6)
643       CIT(0)  CIT(1)  CIT(2)  CIT(3)  CIT(4)  CIT(5)  CIT(6)
644       CIT(7)  CIT(8)  CIT(9)  CIT(10) CIT(11) CIT(12) CIT(13)
645       CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20)
646       CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27)
647       CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34)
648       CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41)
649    }
650    programs {
651       program { name: "dec_start";
652          signal: "mouse,down,1";
653          source: "left_bt";
654          action: SIGNAL_EMIT "elm,action,decrement,start" "";
655       }
656       program { name: "dec_stop";
657          signal: "mouse,up,1";
658          source: "left_bt";
659          action: SIGNAL_EMIT "elm,action,stop" "";
660       }
661       program { name: "inc_start";
662          signal: "mouse,down,1";
663          source: "right_bt";
664          action: SIGNAL_EMIT "elm,action,increment,start" "";
665       }
666       program { name: "inc_stop";
667          signal: "mouse,up,1";
668          source: "right_bt";
669          action: SIGNAL_EMIT "elm,action,stop" "";
670       }
671       program {
672          name:   "left_bt_click";
673          signal: "mouse,down,1";
674          source: "left_over2";
675          action: STATE_SET "clicked" 0.0;
676          target: "left_bt";
677       }
678       program {
679          name:   "left_bt_unclick";
680          signal: "mouse,up,1";
681          source: "left_over2";
682          action: STATE_SET "default" 0.0;
683          target: "left_bt";
684       }
685       program {
686          name:   "left_bt_click2";
687          signal: "mouse,down,1";
688          source: "left_over3";
689          action: STATE_SET "clicked" 0.0;
690          target: "left_over3";
691       }
692       program {
693          name:   "left_bt_unclick2";
694          signal: "mouse,up,1";
695          source: "left_over3";
696          action: STATE_SET "default" 0.0;
697          transition: DECELERATE 0.5;
698          target: "left_over3";
699       }
700       program {
701          name:   "right_bt_click";
702          signal: "mouse,down,1";
703          source: "right_over2";
704          action: STATE_SET "clicked" 0.0;
705          target: "right_bt";
706       }
707       program {
708          name:   "right_bt_unclick";
709          signal: "mouse,up,1";
710          source: "right_over2";
711          action: STATE_SET "default" 0.0;
712          target: "right_bt";
713       }
714       program {
715          name:   "right_bt_click2";
716          signal: "mouse,down,1";
717          source: "right_over3";
718          action: STATE_SET "clicked" 0.0;
719          target: "right_over3";
720       }
721       program {
722          name:   "right_bt_unclick2";
723          signal: "mouse,up,1";
724          source: "right_over3";
725          action: STATE_SET "default" 0.0;
726          transition: DECELERATE 0.5;
727          target: "right_over3";
728       }
729       program { name: "to_rtl";
730          signal: "edje,state,rtl";
731          source: "edje";
732          action: STATE_SET "rtl" 0.0;
733          target: "right_bt_icon";
734          target: "left_bt_icon";
735       }
736       program { name: "to_ltr";
737          signal: "edje,state,ltr";
738          source: "edje";
739          action: STATE_SET "default" 0.0;
740          target: "right_bt_icon";
741          target: "left_bt_icon";
742       }
743    }
744 }
745
746 #undef CIT
747 #undef CH
748