aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/elementary/data/themes/widgets/clock.edc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/elementary/data/themes/widgets/clock.edc1216
1 files changed, 1216 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/clock.edc b/libraries/elementary/data/themes/widgets/clock.edc
new file mode 100644
index 0000000..41390b1
--- /dev/null
+++ b/libraries/elementary/data/themes/widgets/clock.edc
@@ -0,0 +1,1216 @@
1group { name: "elm/clock/flipdigit/default";
2 images {
3 image: "flip_base.png" COMP;
4 image: "flip_base_shad.png" COMP;
5 image: "flip_shad.png" COMP;
6 image: "flip_0t.png" COMP;
7 image: "flip_0b.png" COMP;
8 image: "flip_1t.png" COMP;
9 image: "flip_1b.png" COMP;
10 image: "flip_2t.png" COMP;
11 image: "flip_2b.png" COMP;
12 image: "flip_3t.png" COMP;
13 image: "flip_3b.png" COMP;
14 image: "flip_4t.png" COMP;
15 image: "flip_4b.png" COMP;
16 image: "flip_5t.png" COMP;
17 image: "flip_5b.png" COMP;
18 image: "flip_6t.png" COMP;
19 image: "flip_6b.png" COMP;
20 image: "flip_7t.png" COMP;
21 image: "flip_7b.png" COMP;
22 image: "flip_8t.png" COMP;
23 image: "flip_8b.png" COMP;
24 image: "flip_9t.png" COMP;
25 image: "flip_9b.png" COMP;
26 image: "arrow_up.png" COMP;
27 image: "arrow_down.png" COMP;
28 }
29 script {
30 public v0_cur, v0_pre, v0_lock, v0_next;
31
32 public animator2(val, Float:pos) {
33 new st1[11], st2[11], v;
34
35 v = get_int(v0_cur);
36 snprintf(st1, 10, "%ih", v);
37 snprintf(st2, 10, "%i", v);
38 set_tween_state(PART:"bot", pos, st1, 0.0, st2, 0.0);
39 set_tween_state(PART:"sh", pos, "half", 0.0, "full", 0.0);
40 if (pos >= 1.0) {
41 set_state(PART:"sh", "default", 0.0);
42 set_int(v0_lock, 0);
43 v = get_int(v0_next);
44 if (v >= 0) {
45 set_int(v0_next, -1);
46 message(MSG_INT, 1, v);
47 }
48 }
49 }
50 public animator1(val, Float:pos) {
51 new st1[11], st2[11], v;
52
53 v = get_int(v0_pre);
54 snprintf(st1, 10, "%i", v);
55 snprintf(st2, 10, "%ih", v);
56 set_tween_state(PART:"top", pos, st1, 0.0, st2, 0.0);
57 set_tween_state(PART:"sh", pos, "default", 0.0, "half", 0.0);
58 if (pos >= 1.0) anim(0.2, "animator2", val);
59 }
60 public message(Msg_Type:type, id, ...) {
61 if ((type == MSG_INT) && (id == 1)) {
62 new value, v, buf[11];
63
64 value = getarg(2);
65 if (get_int(v0_lock) == 1) {
66 set_int(v0_next, value);
67 return;
68 }
69 v = get_int(v0_cur);
70 set_int(v0_pre, v);
71 set_int(v0_cur, value);
72 set_int(v0_lock, 1);
73 snprintf(buf, 10, "%i", get_int(v0_pre));
74 set_state(PART:"bot0", buf, 0.0);
75 snprintf(buf, 10, "%ih", get_int(v0_cur));
76 set_state(PART:"bot", buf, 0.0);
77 snprintf(buf, 10, "%i", get_int(v0_cur));
78 set_state(PART:"top0", buf, 0.0);
79 snprintf(buf, 10, "%i", get_int(v0_pre));
80 set_state(PART:"top", buf, 0.0);
81 set_state(PART:"sh", "default", 0.0);
82 anim(0.2, "animator1", 1);
83 }
84 }
85 }
86 parts {
87 part { name: "shad";
88 mouse_events: 0;
89 description { state: "default" 0.0;
90 rel1.offset: -4 -4;
91 rel1.to: "base";
92 rel2.offset: 3 3;
93 rel2.to: "base";
94 image {
95 normal: "flip_base_shad.png";
96 border: 8 8 8 8;
97 }
98 }
99 }
100 part { name: "base";
101 scale: 1;
102 description { state: "default" 0.0;
103 rel1.offset: 4 4;
104 rel2.offset: -5 -5;
105 // FIXME 48x96 should be the native pixel design, right now
106 // its 80x160. fix int he artwork later
107 min: 24 48;
108 aspect: 0.5 0.5;
109 // max: 24 48;
110 image.normal: "flip_base.png";
111 }
112 }
113 part { name: "b";
114 type: RECT;
115 mouse_events: 1;
116 description { state: "default" 0.0;
117 visible: 0;
118 rel1.to: "base";
119 rel1.relative: 0.0 0.5;
120 rel2.to: "base";
121 color: 0 0 0 0;
122 }
123 description { state: "visible" 0.0;
124 inherit: "default" 0.0;
125 visible: 1;
126 }
127 }
128 part { name: "t";
129 type: RECT;
130 mouse_events: 1;
131 description { state: "default" 0.0;
132 visible: 0;
133 rel1.to: "base";
134 rel2.to: "base";
135 rel2.relative: 1.0 0.5;
136 color: 0 0 0 0;
137 }
138 description { state: "visible" 0.0;
139 inherit: "default" 0.0;
140 visible: 1;
141 }
142 }
143 part { name: "bot0";
144 mouse_events: 0;
145 description { state: "default" 0.0;
146 rel1.to: "b";
147 rel2.to: "b";
148 image.normal: "flip_0b.png";
149 }
150 description { state: "0" 0.0;
151 inherit: "default" 0.0;
152 image.normal: "flip_0b.png";
153 }
154 description { state: "1" 0.0;
155 inherit: "default" 0.0;
156 image.normal: "flip_1b.png";
157 }
158 description { state: "2" 0.0;
159 inherit: "default" 0.0;
160 image.normal: "flip_2b.png";
161 }
162 description { state: "3" 0.0;
163 inherit: "default" 0.0;
164 image.normal: "flip_3b.png";
165 }
166 description { state: "4" 0.0;
167 inherit: "default" 0.0;
168 image.normal: "flip_4b.png";
169 }
170 description { state: "5" 0.0;
171 inherit: "default" 0.0;
172 image.normal: "flip_5b.png";
173 }
174 description { state: "6" 0.0;
175 inherit: "default" 0.0;
176 image.normal: "flip_6b.png";
177 }
178 description { state: "7" 0.0;
179 inherit: "default" 0.0;
180 image.normal: "flip_7b.png";
181 }
182 description { state: "8" 0.0;
183 inherit: "default" 0.0;
184 image.normal: "flip_8b.png";
185 }
186 description { state: "9" 0.0;
187 inherit: "default" 0.0;
188 image.normal: "flip_9b.png";
189 }
190 }
191 part { name: "sh";
192 mouse_events: 0;
193 description { state: "default" 0.0;
194 rel1.to: "b";
195 rel2.to: "b";
196 rel2.relative: 1.0 0.0;
197 image.normal: "flip_shad.png";
198 }
199 description { state: "half" 0.0;
200 inherit: "default" 0.0;
201 rel2.relative: 1.0 0.5;
202 }
203 description { state: "full" 0.0;
204 inherit: "default" 0.0;
205 rel2.relative: 1.0 1.0;
206 }
207 }
208 part { name: "bot";
209 mouse_events: 0;
210 description { state: "default" 0.0;
211 visible: 1;
212 rel1.to: "b";
213 rel2.to: "b";
214 image.normal: "flip_0b.png";
215 }
216 description { state: "0" 0.0;
217 inherit: "default" 0.0;
218 visible: 1;
219 rel2.relative: 1.0 1.0;
220 image.normal: "flip_0b.png";
221 }
222 description { state: "0h" 0.0;
223 inherit: "default" 0.0;
224 visible: 0;
225 rel2.relative: 1.0 0.0;
226 image.normal: "flip_0b.png";
227 }
228 description { state: "1" 0.0;
229 inherit: "default" 0.0;
230 visible: 1;
231 rel2.relative: 1.0 1.0;
232 image.normal: "flip_1b.png";
233 }
234 description { state: "1h" 0.0;
235 inherit: "default" 0.0;
236 visible: 0;
237 rel2.relative: 1.0 0.0;
238 image.normal: "flip_1b.png";
239 }
240 description { state: "2" 0.0;
241 inherit: "default" 0.0;
242 visible: 1;
243 rel2.relative: 1.0 1.0;
244 image.normal: "flip_2b.png";
245 }
246 description { state: "2h" 0.0;
247 inherit: "default" 0.0;
248 visible: 0;
249 rel2.relative: 1.0 0.0;
250 image.normal: "flip_2b.png";
251 }
252 description { state: "3" 0.0;
253 inherit: "default" 0.0;
254 visible: 1;
255 rel2.relative: 1.0 1.0;
256 image.normal: "flip_3b.png";
257 }
258 description { state: "3h" 0.0;
259 inherit: "default" 0.0;
260 visible: 0;
261 rel2.relative: 1.0 0.0;
262 image.normal: "flip_3b.png";
263 }
264 description { state: "4" 0.0;
265 inherit: "default" 0.0;
266 visible: 1;
267 rel2.relative: 1.0 1.0;
268 image.normal: "flip_4b.png";
269 }
270 description { state: "4h" 0.0;
271 inherit: "default" 0.0;
272 visible: 0;
273 rel2.relative: 1.0 0.0;
274 image.normal: "flip_4b.png";
275 }
276 description { state: "5" 0.0;
277 inherit: "default" 0.0;
278 visible: 1;
279 rel2.relative: 1.0 1.0;
280 image.normal: "flip_5b.png";
281 }
282 description { state: "5h" 0.0;
283 inherit: "default" 0.0;
284 visible: 0;
285 rel2.relative: 1.0 0.0;
286 image.normal: "flip_5b.png";
287 }
288 description { state: "6" 0.0;
289 inherit: "default" 0.0;
290 visible: 1;
291 rel2.relative: 1.0 1.0;
292 image.normal: "flip_6b.png";
293 }
294 description { state: "6h" 0.0;
295 inherit: "default" 0.0;
296 visible: 0;
297 rel2.relative: 1.0 0.0;
298 image.normal: "flip_6b.png";
299 }
300 description { state: "7" 0.0;
301 inherit: "default" 0.0;
302 visible: 1;
303 rel2.relative: 1.0 1.0;
304 image.normal: "flip_7b.png";
305 }
306 description { state: "7h" 0.0;
307 inherit: "default" 0.0;
308 visible: 0;
309 rel2.relative: 1.0 0.0;
310 image.normal: "flip_7b.png";
311 }
312 description { state: "8" 0.0;
313 inherit: "default" 0.0;
314 visible: 1;
315 rel2.relative: 1.0 1.0;
316 image.normal: "flip_8b.png";
317 }
318 description { state: "8h" 0.0;
319 inherit: "default" 0.0;
320 visible: 0;
321 rel2.relative: 1.0 0.0;
322 image.normal: "flip_8b.png";
323 }
324 description { state: "9" 0.0;
325 inherit: "default" 0.0;
326 visible: 1;
327 rel2.relative: 1.0 1.0;
328 image.normal: "flip_9b.png";
329 }
330 description { state: "9h" 0.0;
331 inherit: "default" 0.0;
332 visible: 0;
333 rel2.relative: 1.0 0.0;
334 image.normal: "flip_9b.png";
335 }
336 }
337 part { name: "top0";
338 mouse_events: 0;
339 description { state: "default" 0.0;
340 rel1.to: "t";
341 rel2.to: "t";
342 image.normal: "flip_0t.png";
343 }
344 description { state: "0" 0.0;
345 inherit: "default" 0.0;
346 image.normal: "flip_0t.png";
347 }
348 description { state: "1" 0.0;
349 inherit: "default" 0.0;
350 image.normal: "flip_1t.png";
351 }
352 description { state: "2" 0.0;
353 inherit: "default" 0.0;
354 image.normal: "flip_2t.png";
355 }
356 description { state: "3" 0.0;
357 inherit: "default" 0.0;
358 image.normal: "flip_3t.png";
359 }
360 description { state: "4" 0.0;
361 inherit: "default" 0.0;
362 image.normal: "flip_4t.png";
363 }
364 description { state: "5" 0.0;
365 inherit: "default" 0.0;
366 image.normal: "flip_5t.png";
367 }
368 description { state: "6" 0.0;
369 inherit: "default" 0.0;
370 image.normal: "flip_6t.png";
371 }
372 description { state: "7" 0.0;
373 inherit: "default" 0.0;
374 image.normal: "flip_7t.png";
375 }
376 description { state: "8" 0.0;
377 inherit: "default" 0.0;
378 image.normal: "flip_8t.png";
379 }
380 description { state: "9" 0.0;
381 inherit: "default" 0.0;
382 image.normal: "flip_9t.png";
383 }
384 }
385 part { name: "top";
386 mouse_events: 0;
387 description { state: "default" 0.0;
388 visible: 1;
389 rel1.to: "t";
390 rel2.to: "t";
391 image.normal: "flip_0t.png";
392 }
393 description { state: "0" 0.0;
394 inherit: "default" 0.0;
395 visible: 1;
396 rel1.relative: 0.0 0.0;
397 image.normal: "flip_0t.png";
398 }
399 description { state: "0h" 0.0;
400 inherit: "default" 0.0;
401 color: 128 128 128 255;
402 visible: 0;
403 rel1.relative: 0.0 1.0;
404 image.normal: "flip_0t.png";
405 }
406 description { state: "1" 0.0;
407 inherit: "default" 0.0;
408 visible: 1;
409 rel1.relative: 0.0 0.0;
410 image.normal: "flip_1t.png";
411 }
412 description { state: "1h" 0.0;
413 inherit: "default" 0.0;
414 color: 128 128 128 255;
415 visible: 0;
416 rel1.relative: 0.0 1.0;
417 image.normal: "flip_1t.png";
418 }
419 description { state: "2" 0.0;
420 inherit: "default" 0.0;
421 visible: 1;
422 rel1.relative: 0.0 0.0;
423 image.normal: "flip_2t.png";
424 }
425 description { state: "2h" 0.0;
426 inherit: "default" 0.0;
427 color: 128 128 128 255;
428 visible: 0;
429 rel1.relative: 0.0 1.0;
430 image.normal: "flip_2t.png";
431 }
432 description { state: "3" 0.0;
433 inherit: "default" 0.0;
434 visible: 1;
435 rel1.relative: 0.0 0.0;
436 image.normal: "flip_3t.png";
437 }
438 description { state: "3h" 0.0;
439 inherit: "default" 0.0;
440 color: 128 128 128 255;
441 visible: 0;
442 rel1.relative: 0.0 1.0;
443 image.normal: "flip_3t.png";
444 }
445 description { state: "4" 0.0;
446 inherit: "default" 0.0;
447 visible: 1;
448 rel1.relative: 0.0 0.0;
449 image.normal: "flip_4t.png";
450 }
451 description { state: "4h" 0.0;
452 inherit: "default" 0.0;
453 color: 128 128 128 255;
454 visible: 0;
455 rel1.relative: 0.0 1.0;
456 image.normal: "flip_4t.png";
457 }
458 description { state: "5" 0.0;
459 inherit: "default" 0.0;
460 visible: 1;
461 rel1.relative: 0.0 0.0;
462 image.normal: "flip_5t.png";
463 }
464 description { state: "5h" 0.0;
465 inherit: "default" 0.0;
466 color: 128 128 128 255;
467 visible: 0;
468 rel1.relative: 0.0 1.0;
469 image.normal: "flip_5t.png";
470 }
471 description { state: "6" 0.0;
472 inherit: "default" 0.0;
473 visible: 1;
474 rel1.relative: 0.0 0.0;
475 image.normal: "flip_6t.png";
476 }
477 description { state: "6h" 0.0;
478 inherit: "default" 0.0;
479 color: 128 128 128 255;
480 visible: 0;
481 rel1.relative: 0.0 1.0;
482 image.normal: "flip_6t.png";
483 }
484 description { state: "7" 0.0;
485 inherit: "default" 0.0;
486 visible: 1;
487 rel1.relative: 0.0 0.0;
488 image.normal: "flip_7t.png";
489 }
490 description { state: "7h" 0.0;
491 inherit: "default" 0.0;
492 color: 128 128 128 255;
493 visible: 0;
494 rel1.relative: 0.0 1.0;
495 image.normal: "flip_7t.png";
496 }
497 description { state: "8" 0.0;
498 inherit: "default" 0.0;
499 visible: 1;
500 rel1.relative: 0.0 0.0;
501 image.normal: "flip_8t.png";
502 }
503 description { state: "8h" 0.0;
504 inherit: "default" 0.0;
505 color: 128 128 128 255;
506 visible: 0;
507 rel1.relative: 0.0 1.0;
508 image.normal: "flip_8t.png";
509 }
510 description { state: "9" 0.0;
511 inherit: "default" 0.0;
512 visible: 1;
513 rel1.relative: 0.0 0.0;
514 image.normal: "flip_9t.png";
515 }
516 description { state: "9h" 0.0;
517 inherit: "default" 0.0;
518 color: 128 128 128 255;
519 visible: 0;
520 rel1.relative: 0.0 1.0;
521 image.normal: "flip_9t.png";
522 }
523 }
524 part { name: "atop";
525 mouse_events: 0;
526 scale: 1;
527 description { state: "default" 0.0;
528 visible: 0;
529 min: 15 15;
530 max: 15 15;
531 align: 0.5 0.0;
532 rel1.to: "t";
533 rel2.to: "t";
534 image.normal: "arrow_up.png";
535 }
536 description { state: "visible" 0.0;
537 inherit: "default" 0.0;
538 visible: 1;
539 }
540 }
541 part { name: "abot";
542 mouse_events: 0;
543 scale: 1;
544 description { state: "default" 0.0;
545 visible: 0;
546 min: 15 15;
547 max: 15 15;
548 align: 0.5 1.0;
549 rel1.to: "b";
550 rel2.to: "b";
551 image.normal: "arrow_down.png";
552 }
553 description { state: "visible" 0.0;
554 inherit: "default" 0.0;
555 visible: 1;
556 }
557 }
558 }
559 programs {
560 program { name: "load";
561 signal: "load";
562 source: "";
563 script {
564 set_int(v0_cur, 0);
565 set_int(v0_pre, 0);
566 set_int(v0_lock, 0);
567 set_int(v0_next, -1);
568 }
569 }
570 program { name: "edit_on";
571 signal: "elm,state,edit,on";
572 source: "elm";
573 action: STATE_SET "visible" 0.0;
574 target: "atop";
575 target: "abot";
576 target: "t";
577 target: "b";
578 }
579 program { name: "edit_off";
580 signal: "elm,state,edit,off";
581 source: "elm";
582 action: STATE_SET "default" 0.0;
583 target: "atop";
584 target: "abot";
585 target: "t";
586 target: "b";
587 }
588 program { name: "up";
589 signal: "mouse,down,1";
590 source: "t";
591 action: SIGNAL_EMIT "elm,action,up,start" "";
592 }
593 program { name: "up,stop";
594 signal: "mouse,up,1";
595 source: "t";
596 action: SIGNAL_EMIT "elm,action,up,stop" "";
597 }
598 program { name: "down";
599 signal: "mouse,down,1";
600 source: "b";
601 action: SIGNAL_EMIT "elm,action,down,start" "";
602 }
603 program { name: "down,stop";
604 signal: "mouse,up,1";
605 source: "b";
606 action: SIGNAL_EMIT "elm,action,down,stop" "";
607 }
608 }
609}
610
611group { name: "elm/clock/flipampm/default";
612 images {
613 image: "flip_base.png" COMP;
614 image: "flip_base_shad.png" COMP;
615 image: "flip_shad.png" COMP;
616 image: "flip_amt.png" COMP;
617 image: "flip_amb.png" COMP;
618 image: "flip_pmt.png" COMP;
619 image: "flip_pmb.png" COMP;
620 image: "arrow_up.png" COMP;
621 image: "arrow_down.png" COMP;
622 }
623 script {
624 public v0_cur, v0_pre, v0_lock, v0_next;
625
626 public animator2(val, Float:pos) {
627 new st1[11], st2[11], v;
628
629 v = get_int(v0_cur);
630 snprintf(st1, 10, "%ih", v);
631 snprintf(st2, 10, "%i", v);
632 set_tween_state(PART:"bot", pos, st1, 0.0, st2, 0.0);
633 set_tween_state(PART:"sh", pos, "half", 0.0, "full", 0.0);
634 if (pos >= 1.0) {
635 set_state(PART:"sh", "default", 0.0);
636 set_int(v0_lock, 0);
637 v = get_int(v0_next);
638 if (v >= 0) {
639 set_int(v0_next, -1);
640 message(MSG_INT, 1, v);
641 }
642 }
643 }
644 public animator1(val, Float:pos) {
645 new st1[11], st2[11], v;
646
647 v = get_int(v0_pre);
648 snprintf(st1, 10, "%i", v);
649 snprintf(st2, 10, "%ih", v);
650 set_tween_state(PART:"top", pos, st1, 0.0, st2, 0.0);
651 set_tween_state(PART:"sh", pos, "default", 0.0, "half", 0.0);
652 if (pos >= 1.0) anim(0.2, "animator2", val);
653 }
654 public message(Msg_Type:type, id, ...) {
655 if ((type == MSG_INT) && (id == 1)) {
656 new value, v, buf[11];
657
658 value = getarg(2);
659 if (get_int(v0_lock) == 1) {
660 set_int(v0_next, value);
661 return;
662 }
663 v = get_int(v0_cur);
664 set_int(v0_pre, v);
665 set_int(v0_cur, value);
666 set_int(v0_lock, 1);
667 snprintf(buf, 10, "%i", get_int(v0_pre));
668 set_state(PART:"bot0", buf, 0.0);
669 snprintf(buf, 10, "%ih", get_int(v0_cur));
670 set_state(PART:"bot", buf, 0.0);
671 snprintf(buf, 10, "%i", get_int(v0_cur));
672 set_state(PART:"top0", buf, 0.0);
673 snprintf(buf, 10, "%i", get_int(v0_pre));
674 set_state(PART:"top", buf, 0.0);
675 set_state(PART:"sh", "default", 0.0);
676 anim(0.2, "animator1", 1);
677 }
678 }
679 }
680 parts {
681 part { name: "shad";
682 mouse_events: 0;
683 description { state: "default" 0.0;
684 rel1.offset: -4 -4;
685 rel1.to: "base";
686 rel2.offset: 3 3;
687 rel2.to: "base";
688 image {
689 normal: "flip_base_shad.png";
690 border: 8 8 8 8;
691 }
692 }
693 }
694 part { name: "base";
695 mouse_events: 0;
696 scale: 1;
697 description { state: "default" 0.0;
698 rel1.offset: 4 4;
699 rel2.offset: -5 -5;
700 // FIXME 48x96 should be the native pixel design, right now
701 // its 80x160. fix int he artwork later
702 aspect: 0.5 0.5;
703 min: 24 48;
704 // max: 24 48;
705 image.normal: "flip_base.png";
706 }
707 }
708 part { name: "b";
709 type: RECT;
710 mouse_events: 1;
711 description { state: "default" 0.0;
712 rel1.to: "base";
713 rel1.relative: 0.0 0.5;
714 rel2.to: "base";
715 color: 0 0 0 0;
716 }
717 }
718 part { name: "t";
719 type: RECT;
720 mouse_events: 1;
721 description { state: "default" 0.0;
722 rel1.to: "base";
723 rel2.to: "base";
724 rel2.relative: 1.0 0.5;
725 color: 0 0 0 0;
726 }
727 }
728 part { name: "bot0";
729 mouse_events: 0;
730 description { state: "default" 0.0;
731 rel1.to: "b";
732 rel2.to: "b";
733 image.normal: "flip_amb.png";
734 }
735 description { state: "0" 0.0;
736 inherit: "default" 0.0;
737 image.normal: "flip_amb.png";
738 }
739 description { state: "1" 0.0;
740 inherit: "default" 0.0;
741 image.normal: "flip_pmb.png";
742 }
743 }
744 part { name: "sh";
745 mouse_events: 0;
746 description { state: "default" 0.0;
747 rel1.to: "b";
748 rel2.to: "b";
749 rel2.relative: 1.0 0.0;
750 image.normal: "flip_shad.png";
751 }
752 description { state: "half" 0.0;
753 inherit: "default" 0.0;
754 rel2.relative: 1.0 0.5;
755 }
756 description { state: "full" 0.0;
757 inherit: "default" 0.0;
758 rel2.relative: 1.0 1.0;
759 }
760 }
761 part { name: "bot";
762 mouse_events: 0;
763 description { state: "default" 0.0;
764 visible: 1;
765 rel1.to: "b";
766 rel2.to: "b";
767 image.normal: "flip_amb.png";
768 }
769 description { state: "0" 0.0;
770 inherit: "default" 0.0;
771 visible: 1;
772 rel2.relative: 1.0 1.0;
773 image.normal: "flip_amb.png";
774 }
775 description { state: "0h" 0.0;
776 inherit: "default" 0.0;
777 visible: 0;
778 rel2.relative: 1.0 0.0;
779 image.normal: "flip_amb.png";
780 }
781 description { state: "1" 0.0;
782 inherit: "default" 0.0;
783 visible: 1;
784 rel2.relative: 1.0 1.0;
785 image.normal: "flip_pmb.png";
786 }
787 description { state: "1h" 0.0;
788 inherit: "default" 0.0;
789 visible: 0;
790 rel2.relative: 1.0 0.0;
791 image.normal: "flip_pmb.png";
792 }
793 }
794 part { name: "top0";
795 mouse_events: 0;
796 description { state: "default" 0.0;
797 rel1.to: "t";
798 rel2.to: "t";
799 image.normal: "flip_amt.png";
800 }
801 description { state: "0" 0.0;
802 inherit: "default" 0.0;
803 image.normal: "flip_amt.png";
804 }
805 description { state: "1" 0.0;
806 inherit: "default" 0.0;
807 image.normal: "flip_pmt.png";
808 }
809 }
810 part { name: "top";
811 mouse_events: 0;
812 description { state: "default" 0.0;
813 visible: 1;
814 rel1.to: "t";
815 rel2.to: "t";
816 image.normal: "flip_amt.png";
817 }
818 description { state: "0" 0.0;
819 inherit: "default" 0.0;
820 visible: 1;
821 rel1.relative: 0.0 0.0;
822 image.normal: "flip_amt.png";
823 }
824 description { state: "0h" 0.0;
825 inherit: "default" 0.0;
826 color: 128 128 128 255;
827 visible: 0;
828 rel1.relative: 0.0 1.0;
829 image.normal: "flip_amt.png";
830 }
831 description { state: "1" 0.0;
832 inherit: "default" 0.0;
833 visible: 1;
834 rel1.relative: 0.0 0.0;
835 image.normal: "flip_pmt.png";
836 }
837 description { state: "1h" 0.0;
838 inherit: "default" 0.0;
839 color: 128 128 128 255;
840 visible: 0;
841 rel1.relative: 0.0 1.0;
842 image.normal: "flip_pmt.png";
843 }
844 }
845 part { name: "atop";
846 mouse_events: 0;
847 scale: 1;
848 description { state: "default" 0.0;
849 visible: 0;
850 min: 15 15;
851 max: 15 15;
852 align: 0.5 0.0;
853 rel1.to: "t";
854 rel2.to: "t";
855 image.normal: "arrow_up.png";
856 }
857 description { state: "visible" 0.0;
858 inherit: "default" 0.0;
859 visible: 1;
860 }
861 }
862 part { name: "abot";
863 mouse_events: 0;
864 scale: 1;
865 description { state: "default" 0.0;
866 visible: 0;
867 min: 15 15;
868 max: 15 15;
869 align: 0.5 1.0;
870 rel1.to: "b";
871 rel2.to: "b";
872 image.normal: "arrow_down.png";
873 }
874 description { state: "visible" 0.0;
875 inherit: "default" 0.0;
876 visible: 1;
877 }
878 }
879 }
880 programs {
881 program { name: "load";
882 signal: "load";
883 source: "";
884 script {
885 set_int(v0_cur, 0);
886 set_int(v0_pre, 0);
887 set_int(v0_lock, 0);
888 set_int(v0_next, -1);
889 }
890 }
891 program { name: "edit_on";
892 signal: "elm,state,edit,on";
893 source: "elm";
894 action: STATE_SET "visible" 0.0;
895 target: "atop";
896 target: "abot";
897 }
898 /*
899 program { name: "edit_off";
900 signal: "elm,state,edit,off";
901 source: "elm";
902 action: STATE_SET "default" 0.0;
903 target: "atop";
904 target: "abot";
905 }
906 */
907 program { name: "up";
908 signal: "mouse,down,1";
909 source: "t";
910 action: SIGNAL_EMIT "elm,action,up,start" "";
911 }
912 program { name: "up,stop";
913 signal: "mouse,up,1";
914 source: "t";
915 action: SIGNAL_EMIT "elm,action,up,stop" "";
916 }
917 program { name: "down";
918 signal: "mouse,down,1";
919 source: "b";
920 action: SIGNAL_EMIT "elm,action,down,start" "";
921 }
922 program { name: "down,stop";
923 signal: "mouse,up,1";
924 source: "b";
925 action: SIGNAL_EMIT "elm,action,down,stop" "";
926 }
927 }
928}
929
930group { name: "elm/clock/base-all/default";
931 parts {
932 part { name: "d0";
933 type: SWALLOW;
934 description { state: "default" 0.0;
935 rel1.relative: 0.0000000 0.0;
936 rel2.relative: 0.1250000 1.0;
937 }
938 }
939 part { name: "d1";
940 type: SWALLOW;
941 description { state: "default" 0.0;
942 rel1.relative: 0.1250000 0.0;
943 rel2.relative: 0.2500000 1.0;
944 }
945 }
946 part { name: "c0";
947 type: TEXT;
948 mouse_events: 0;
949 scale: 1;
950 description { state: "default" 0.0;
951 rel1.relative: 0.2500000 0.0;
952 rel2.relative: 0.3125000 1.0;
953 color: 0 0 0 255;
954 text {
955 font: "Sans,Edje-Vera";
956 text: ":";
957 size: 10;
958 min: 1 1;
959 align: 0.5 0.5;
960 }
961 }
962 }
963 part { name: "d2";
964 type: SWALLOW;
965 description { state: "default" 0.0;
966 rel1.relative: 0.3125000 0.0;
967 rel2.relative: 0.4375000 1.0;
968 }
969 }
970 part { name: "d3";
971 type: SWALLOW;
972 description { state: "default" 0.0;
973 rel1.relative: 0.4375000 0.0;
974 rel2.relative: 0.5625000 1.0;
975 }
976 }
977 // (if seconds)
978 part { name: "c1";
979 type: TEXT;
980 mouse_events: 0;
981 scale: 1;
982 description { state: "default" 0.0;
983 rel1.relative: 0.5625000 0.0;
984 rel2.relative: 0.6250000 1.0;
985 color: 0 0 0 255;
986 text {
987 font: "Sans,Edje-Vera";
988 text: ":";
989 size: 10;
990 min: 1 1;
991 align: 0.5 0.5;
992 }
993 }
994 }
995 // (if seconds)
996 part { name: "d4";
997 type: SWALLOW;
998 description { state: "default" 0.0;
999 rel1.relative: 0.6250000 0.0;
1000 rel2.relative: 0.7500000 1.0;
1001 }
1002 }
1003 // (if seconds)
1004 part { name: "d5";
1005 type: SWALLOW;
1006 description { state: "default" 0.0;
1007 rel1.relative: 0.7500000 0.0;
1008 rel2.relative: 0.8750000 1.0;
1009 }
1010 }
1011 // (if am_pm)
1012 part { name: "ampm";
1013 type: SWALLOW;
1014 description { state: "default" 0.0;
1015 rel1.relative: 0.8750000 0.0;
1016 rel2.relative: 1.0 1.0;
1017 }
1018 }
1019 }
1020}
1021
1022///////////////////////////////////////////////////////////////////////////////
1023group { name: "elm/clock/base-seconds/default";
1024 parts {
1025 part { name: "d0";
1026 type: SWALLOW;
1027 description { state: "default" 0.0;
1028 rel1.relative: 0.000000000 0.0;
1029 rel2.relative: 0.142857143 1.0;
1030 }
1031 }
1032 part { name: "d1";
1033 type: SWALLOW;
1034 description { state: "default" 0.0;
1035 rel1.relative: 0.142857143 0.0;
1036 rel2.relative: 0.285714286 1.0;
1037 }
1038 }
1039 part { name: "c0";
1040 type: TEXT;
1041 mouse_events: 0;
1042 scale: 1;
1043 description { state: "default" 0.0;
1044 rel1.relative: 0.285714286 0.0;
1045 rel2.relative: 0.357142857 1.0;
1046 color: 0 0 0 255;
1047 text {
1048 font: "Sans,Edje-Vera";
1049 text: ":";
1050 size: 10;
1051 min: 1 1;
1052 align: 0.5 0.5;
1053 }
1054 }
1055 }
1056 part { name: "d2";
1057 type: SWALLOW;
1058 description { state: "default" 0.0;
1059 rel1.relative: 0.357142857 0.0;
1060 rel2.relative: 0.500000000 1.0;
1061 }
1062 }
1063 part { name: "d3";
1064 type: SWALLOW;
1065 description { state: "default" 0.0;
1066 rel1.relative: 0.500000000 0.0;
1067 rel2.relative: 0.642857143 1.0;
1068 }
1069 }
1070 // (if seconds)
1071 part { name: "c1";
1072 type: TEXT;
1073 mouse_events: 0;
1074 scale: 1;
1075 description { state: "default" 0.0;
1076 rel1.relative: 0.642857143 0.0;
1077 rel2.relative: 0.714285714 1.0;
1078 color: 0 0 0 255;
1079 text {
1080 font: "Sans,Edje-Vera";
1081 text: ":";
1082 size: 10;
1083 min: 1 1;
1084 align: 0.5 0.5;
1085 }
1086 }
1087 }
1088 // (if seconds)
1089 part { name: "d4";
1090 type: SWALLOW;
1091 description { state: "default" 0.0;
1092 rel1.relative: 0.714285714 0.0;
1093 rel2.relative: 0.857142857 1.0;
1094 }
1095 }
1096 // (if seconds)
1097 part { name: "d5";
1098 type: SWALLOW;
1099 description { state: "default" 0.0;
1100 rel1.relative: 0.857142857 0.0;
1101 rel2.relative: 1.000000000 1.0;
1102 }
1103 }
1104 }
1105}
1106
1107///////////////////////////////////////////////////////////////////////////////
1108group { name: "elm/clock/base-am_pm/default";
1109 parts {
1110 part { name: "d0";
1111 type: SWALLOW;
1112 description { state: "default" 0.0;
1113 rel1.relative: 0.000000000 0.0;
1114 rel2.relative: 0.181818182 1.0;
1115 }
1116 }
1117 part { name: "d1";
1118 type: SWALLOW;
1119 description { state: "default" 0.0;
1120 rel1.relative: 0.181818182 0.0;
1121 rel2.relative: 0.363636364 1.0;
1122 }
1123 }
1124 part { name: "c0";
1125 type: TEXT;
1126 mouse_events: 0;
1127 scale: 1;
1128 description { state: "default" 0.0;
1129 rel1.relative: 0.363636364 0.0;
1130 rel2.relative: 0.454545455 1.0;
1131 color: 0 0 0 255;
1132 text {
1133 font: "Sans,Edje-Vera";
1134 text: ":";
1135 size: 10;
1136 min: 1 1;
1137 align: 0.5 0.5;
1138 }
1139 }
1140 }
1141 part { name: "d2";
1142 type: SWALLOW;
1143 description { state: "default" 0.0;
1144 rel1.relative: 0.454545455 0.0;
1145 rel2.relative: 0.636363636 1.0;
1146 }
1147 }
1148 part { name: "d3";
1149 type: SWALLOW;
1150 description { state: "default" 0.0;
1151 rel1.relative: 0.636363636 0.0;
1152 rel2.relative: 0.818181818 1.0;
1153 }
1154 }
1155 // (if am_pm)
1156 part { name: "ampm";
1157 type: SWALLOW;
1158 description { state: "default" 0.0;
1159 rel1.relative: 0.818181818 0.0;
1160 rel2.relative: 1.0 1.0;
1161 }
1162 }
1163 }
1164}
1165
1166///////////////////////////////////////////////////////////////////////////////
1167group { name: "elm/clock/base/default";
1168 parts {
1169 part { name: "d0";
1170 type: SWALLOW;
1171 description { state: "default" 0.0;
1172 rel1.relative: 0.000000000 0.0;
1173 rel2.relative: 0.222222222 1.0;
1174 }
1175 }
1176 part { name: "d1";
1177 type: SWALLOW;
1178 description { state: "default" 0.0;
1179 rel1.relative: 0.222222222 0.0;
1180 rel2.relative: 0.444444444 1.0;
1181 }
1182 }
1183 part { name: "c0";
1184 type: TEXT;
1185 mouse_events: 0;
1186 scale: 1;
1187 description { state: "default" 0.0;
1188 rel1.relative: 0.444444444 0.0;
1189 rel2.relative: 0.555555556 1.0;
1190 color: 0 0 0 255;
1191 text {
1192 font: "Sans,Edje-Vera";
1193 text: ":";
1194 size: 10;
1195 min: 1 1;
1196 align: 0.5 0.5;
1197 }
1198 }
1199 }
1200 part { name: "d2";
1201 type: SWALLOW;
1202 description { state: "default" 0.0;
1203 rel1.relative: 0.555555556 0.0;
1204 rel2.relative: 0.777777778 1.0;
1205 }
1206 }
1207 part { name: "d3";
1208 type: SWALLOW;
1209 description { state: "default" 0.0;
1210 rel1.relative: 0.777777778 0.0;
1211 rel2.relative: 1.000000000 1.0;
1212 }
1213 }
1214 }
1215}
1216