21 color: 123 184 155 255;
31 color: 255 255 255 64;
36 name: "elm/layout/dialer/main";
49 name: "elm.swallow.keypad";
61 name: "elm/layout/dialer/keypad";
66 image: "bg_keypad.jpg" COMP;
67 image: "bt_call_pressed.png" COMP;
68 image: "bt_call_released.png" COMP;
69 image: "bt_backspace_pressed.png" COMP;
70 image: "bt_backspace_released.png" COMP;
71 image: "bt_add_contact_released.png" COMP;
72 image: "bt_add_contact_pressed.png" COMP;
82 color: 255 255 255 255;
86 normal: "bg_keypad.jpg";
94 name: "elm.text.display";
100 color: 255 255 255 255;
101 color_class: "action";
108 text: "+1 (12) 3456-7890";
124 state: "default" 0.0;
127 max: 720 720; /* keep it tight centered */
130 to_y: "elm.text.display";
144 state: "default" 0.0;
147 max: 720 99999; /* keep it tight centered */
155 #define SEPARATOR(id, rely, offy, relto) \
157 name: "separator.dark."##id; \
161 state: "default" 0.0; \
162 color: 255 255 255 255; \
163 color_class: "dark"; \
165 relative: 0.0 rely; \
170 relative: 1.0 rely; \
171 offset: -1 (offy + 4); \
177 name: "separator.bg."##id; \
181 state: "default" 0.0; \
182 color: 255 255 255 255; \
185 relative: 0.0 rely; \
186 offset: 0 (offy + 4); \
190 relative: 1.0 rely; \
191 offset: -1 (offy + 8); \
197 SEPARATOR("number", 1.0, 0, "elm.text.display");
198 SEPARATOR("actions", 0.0, -8, "bg.actions");
202 #define BUTTON(id, label, sub, ccls, r1, r2) \
204 name: "button."##id; \
208 state: "default" 0.0; \
209 color: 255 255 255 0; \
210 color_class: "action"; \
222 state: "pressed" 0.0; \
223 inherit: "default" 0.0; \
224 color: 255 255 255 255; \
228 name: "label."##id; \
232 state: "default" 0.0; \
233 color: 255 255 255 255; \
235 rel1.to: "button."##id; \
248 state: "pressed" 0.0; \
249 inherit: "default" 0.0; \
250 color: 16 16 16 255; \
258 state: "default" 0.0; \
259 color: 255 255 255 255; \
260 color_class: "light"; \
266 rel2.to: "button."##id; \
269 font: "Verdana:style=Bold"; \
275 state: "pressed" 0.0; \
276 inherit: "default" 0.0; \
277 color: 16 16 16 255; \
282 signal: "mouse,up,1"; \
283 source: "button."##id; \
284 action: SIGNAL_EMIT "released,"##id "keypad"; \
285 after: "show_up_"##id; \
288 name: "show_up_"##id; \
289 action: STATE_SET "default" 0.0; \
290 transition: DECELERATE 0.1; \
291 target: "button."##id; \
292 target: "label."##id; \
293 target: "sub."##id; \
296 signal: "mouse,down,1"; \
297 source: "button."##id; \
298 after: "show_down_"##id; \
299 action: SIGNAL_EMIT "pressed,"##id "keypad"; \
302 name: "show_down_"##id; \
303 action: STATE_SET "pressed" 0.0; \
304 transition: ACCELERATE 0.3; \
305 target: "button."##id; \
306 target: "label."##id; \
307 target: "sub."##id; \
310 signal: "mouse,clicked,1"; \
311 source: "button."##id; \
312 action: SIGNAL_EMIT "clicked,"##id "keypad"; \
316 BUTTON("1", "1", "", "action", 0.000 0.0, 0.333 0.25);
317 BUTTON("2", "2", "ABC", "action", 0.333 0.0, 0.666 0.25);
318 BUTTON("3", "3", "DEF", "action", 0.666 0.0, 1.000 0.25);
320 BUTTON("4", "4", "GHI", "action", 0.000 0.25, 0.333 0.50);
321 BUTTON("5", "5", "JKL", "action", 0.333 0.25, 0.666 0.50);
322 BUTTON("6", "6", "MNO", "action", 0.666 0.25, 1.000 0.50);
324 BUTTON("7", "7", "PQRS", "action", 0.000 0.50, 0.333 0.75);
325 BUTTON("8", "8", "TUV", "action", 0.333 0.50, 0.666 0.75);
326 BUTTON("9", "9", "WXYZ", "action", 0.666 0.50, 1.000 0.75);
328 BUTTON("star", "*", "", "light", 0.000 0.75, 0.333 1.00);
329 BUTTON("0", "0", "+", "action", 0.333 0.75, 0.666 1.00);
330 BUTTON("hash", "#", "", "light", 0.666 0.75, 1.000 1.00);
334 #define ACTION_BUTTON(id, img, x0, x1) \
336 name: "button."##id; \
340 state: "default" 0.0; \
341 color: 255 255 255 255; \
342 color_class: "action"; \
355 image.normal: "bt_"##img"_released.png"; \
358 state: "pressed" 0.0; \
359 inherit: "default" 0.0; \
360 color: 255 255 255 0; \
365 name: "button.over."##id; \
369 state: "default" 0.0; \
370 color: 255 255 255 0; \
372 color_class: "action"; \
373 rel1.to: "button."##id; \
374 rel2.to: "button."##id; \
375 image.normal: "bt_"##img"_pressed.png"; \
378 state: "pressed" 0.0; \
379 inherit: "default" 0.0; \
380 color: 255 255 255 255; \
386 signal: "mouse,up,1"; \
387 source: "button."##id; \
388 action: SIGNAL_EMIT "released,"##id "keypad"; \
389 after: "show_up_"##id; \
392 name: "show_up_"##id; \
393 action: STATE_SET "default" 0.0; \
394 transition: DECELERATE 0.1; \
395 target: "button."##id; \
396 target: "button.over."##id; \
399 signal: "mouse,down,1"; \
400 source: "button."##id; \
401 after: "show_down_"##id; \
402 action: SIGNAL_EMIT "pressed,"##id "keypad"; \
405 name: "show_down_"##id; \
406 action: STATE_SET "pressed" 0.0; \
407 transition: ACCELERATE 0.1; \
408 target: "button."##id; \
409 target: "button.over."##id; \
412 signal: "mouse,clicked,1"; \
413 source: "button."##id; \
414 action: SIGNAL_EMIT "clicked,"##id "keypad"; \
418 ACTION_BUTTON("save", "add_contact", 0.000000000, 0.333333333);
419 ACTION_BUTTON("call", "call", 0.333333333, 0.666666666);
420 ACTION_BUTTON("backspace", "backspace", 0.666666666, 1.000000000);
426 name: "elm/layout/dialer/call";
431 image: "bg_call.jpg" COMP;
432 image: "bt_mute_pressed.png" COMP;
433 image: "bt_mute_released.png" COMP;
434 image: "bt_keypad_pressed.png" COMP;
435 image: "bt_keypad_released.png" COMP;
436 image: "bt_speaker_pressed.png" COMP;
437 image: "bt_speaker_released.png" COMP;
438 image: "bt_merge_pressed.png" COMP;
439 image: "bt_merge_released.png" COMP;
440 image: "bt_swap_pressed.png" COMP;
441 image: "bt_swap_released.png" COMP;
442 image: "bt_contacts_pressed.png" COMP;
443 image: "bt_contacts_released.png" COMP;
452 state: "default" 0.0;
453 color: 255 255 255 255;
457 normal: "bg_call.jpg";
465 name: "elm.text.name";
470 state: "default" 0.0;
471 color: 255 255 255 255;
472 color_class: "action";
480 text: "Gustavo Barbieri";
492 name: "elm.text.status";
497 state: "default" 0.0;
498 color: 255 255 255 255;
499 color_class: "light";
522 #define SEPARATOR(id, clip, rely, offy, relto) \
524 name: "separator.dark."##id; \
529 state: "default" 0.0; \
530 color: 255 255 255 255; \
531 color_class: "dark"; \
533 relative: 0.0 rely; \
538 relative: 1.0 rely; \
539 offset: -1 (offy + 4); \
545 name: "separator.bg."##id; \
550 state: "default" 0.0; \
551 color: 255 255 255 255; \
554 relative: 0.0 rely; \
555 offset: 0 (offy + 4); \
559 relative: 1.0 rely; \
560 offset: -1 (offy + 8); \
566 SEPARATOR("actions", "clipper.actions", 0.0, -8, "bg.actions");
572 clip_to: "clipper.keypad-hidden";
574 state: "default" 0.0;
577 max: 720 99999; /* keep it tight centered */
592 name: "clipper.actions";
595 clip_to: "clipper.keypad-hidden";
597 state: "default" 0.0;
598 color: 255 255 255 0;
602 state: "visible" 0.0;
603 inherit: "default" 0.0;
604 color: 255 255 255 255;
610 name: "show,actions";
611 action: STATE_SET "visible" 0.0;
612 transition: DECELERATE 0.3;
613 target: "clipper.actions";
616 name: "hide,actions";
617 action: STATE_SET "default" 0.0;
618 transition: ACCELERATE 0.3;
619 target: "clipper.actions";
623 signal: "state,disconnected";
625 after: "hide,actions";
628 signal: "state,active";
630 after: "show,actions";
633 signal: "state,held";
635 after: "hide,actions";
638 signal: "state,dialing";
640 after: "hide,actions";
643 signal: "state,alerting";
645 after: "hide,actions";
648 signal: "state,incoming";
650 after: "hide,actions";
654 #define ACTION_BUTTON(id, img, r1, r2) \
656 name: "clipper."##id; \
658 clip_to: "clipper.actions"; \
660 state: "default" 0.0; \
661 color: 255 255 255 255; \
662 rel1.to: "button."##id; \
663 rel2.to: "button."##id; \
666 state: "disabled" 0.0; \
667 inherit: "default" 0.0; \
668 color_class: "disabled"; \
671 state: "hidden" 0.0; \
672 inherit: "default" 0.0; \
673 color: 255 255 255 0; \
678 name: "button."##id; \
681 clip_to: "clipper."##id; \
683 state: "default" 0.0; \
684 color: 255 255 255 255; \
685 color_class: "action"; \
698 image.normal: "bt_"##img"_released.png"; \
701 state: "pressed" 0.0; \
702 inherit: "default" 0.0; \
703 color: 255 255 255 0; \
708 name: "button.over."##id; \
710 clip_to: "clipper."##id; \
713 state: "default" 0.0; \
714 color: 255 255 255 0; \
716 color_class: "action"; \
717 rel1.to: "button."##id; \
718 rel2.to: "button."##id; \
719 image.normal: "bt_"##img"_pressed.png"; \
722 state: "pressed" 0.0; \
723 inherit: "default" 0.0; \
724 color: 255 255 255 255; \
729 name: "blocker."##id; \
732 clip_to: "clipper."##id; \
734 state: "default" 0.0; \
739 state: "disabled" 0.0; \
740 inherit: "default" 0.0; \
746 signal: "mouse,up,1"; \
747 source: "button."##id; \
748 action: SIGNAL_EMIT "released,"##id "call"; \
749 after: "show_up_"##id; \
752 name: "show_up_"##id; \
753 action: STATE_SET "default" 0.0; \
754 transition: DECELERATE 0.1; \
755 target: "button."##id; \
756 target: "button.over."##id; \
759 signal: "mouse,down,1"; \
760 source: "button."##id; \
761 after: "show_down_"##id; \
762 action: SIGNAL_EMIT "pressed,"##id "call"; \
765 name: "show_down_"##id; \
766 action: STATE_SET "pressed" 0.0; \
767 transition: ACCELERATE 0.1; \
768 target: "button."##id; \
769 target: "button.over."##id; \
772 signal: "mouse,clicked,1"; \
773 source: "button."##id; \
774 action: SIGNAL_EMIT "clicked,"##id "call"; \
777 signal: "disable,"##id; \
779 action: STATE_SET "disabled" 0.0; \
780 target: "blocker."##id; \
781 target: "clipper."##id; \
784 signal: "enable,"##id; \
786 action: STATE_SET "default" 0.0; \
787 target: "blocker."##id; \
788 target: "clipper."##id; \
792 ACTION_BUTTON("mute", "mute", 0.000000000 0.0, 0.333333333 0.5);
793 ACTION_BUTTON("keypad", "keypad", 0.333333333 0.0, 0.666666666 0.5);
794 ACTION_BUTTON("speaker", "speaker", 0.666666666 0.0, 1.000000000 0.5);
796 ACTION_BUTTON("merge", "merge", 0.000000000 0.5, 0.333333333 1.0);
797 ACTION_BUTTON("swap", "swap", 0.333333333 0.5, 0.666666666 1.0);
798 ACTION_BUTTON("contacts", "contacts",0.666666666 0.5, 1.000000000 1.0);
801 SEPARATOR("answer", "clipper.answer", 0.0, -8, "button.answer");
802 SEPARATOR("hangup", "", 0.0, -8, "button.hangup");
805 name: "clipper.keypad-hidden";
808 state: "default" 0.0;
809 color: 255 255 255 255;
813 state: "alternate" 0.0;
814 inherit: "default" 0.0;
815 color: 255 255 255 0;
820 name: "clipper.keypad-visible";
823 state: "default" 0.0;
824 color: 255 255 255 0;
828 state: "alternate" 0.0;
829 inherit: "default" 0.0;
830 color: 255 255 255 255;
837 SEPARATOR("hide-keypad", "clipper.keypad-visible", 0.0, -8, "button.hide-keypad");
838 SEPARATOR("keypad", "clipper.keypad-visible", 0.0, -8, "bg.keypad");
844 clip_to: "clipper.keypad-visible";
846 state: "default" 0.0;
849 max: 720 680; /* keep it tight centered */
852 offset: 0 -688; /* separator */
853 to_y: "button.hide-keypad";
857 offset: 0 -9; /* separator */
858 to_y: "button.hide-keypad";
862 #define BUTTON(id, label, sub, ccls, r1, r2) \
864 name: "button."##id; \
867 clip_to: "clipper.keypad-visible"; \
869 state: "default" 0.0; \
870 color: 255 255 255 0; \
871 color_class: "action"; \
883 state: "pressed" 0.0; \
884 inherit: "default" 0.0; \
885 color: 255 255 255 255; \
889 name: "label."##id; \
892 clip_to: "clipper.keypad-visible"; \
894 state: "default" 0.0; \
895 color: 255 255 255 255; \
897 rel1.to: "button."##id; \
910 state: "pressed" 0.0; \
911 inherit: "default" 0.0; \
912 color: 16 16 16 255; \
919 clip_to: "clipper.keypad-visible"; \
921 state: "default" 0.0; \
922 color: 255 255 255 255; \
923 color_class: "light"; \
929 rel2.to: "button."##id; \
932 font: "Verdana:style=Bold"; \
938 state: "pressed" 0.0; \
939 inherit: "default" 0.0; \
940 color: 16 16 16 255; \
945 signal: "mouse,up,1"; \
946 source: "button."##id; \
947 action: SIGNAL_EMIT "released,"##id "call"; \
948 after: "show_up_"##id; \
951 name: "show_up_"##id; \
952 action: STATE_SET "default" 0.0; \
953 transition: DECELERATE 0.1; \
954 target: "button."##id; \
955 target: "label."##id; \
956 target: "sub."##id; \
959 signal: "mouse,down,1"; \
960 source: "button."##id; \
961 after: "show_down_"##id; \
962 action: SIGNAL_EMIT "pressed,"##id "call"; \
965 name: "show_down_"##id; \
966 action: STATE_SET "pressed" 0.0; \
967 transition: ACCELERATE 0.3; \
968 target: "button."##id; \
969 target: "label."##id; \
970 target: "sub."##id; \
973 signal: "mouse,clicked,1"; \
974 source: "button."##id; \
975 action: SIGNAL_EMIT "clicked,"##id "call"; \
979 BUTTON("1", "1", "", "action", 0.000 0.0, 0.333 0.25);
980 BUTTON("2", "2", "ABC", "action", 0.333 0.0, 0.666 0.25);
981 BUTTON("3", "3", "DEF", "action", 0.666 0.0, 1.000 0.25);
983 BUTTON("4", "4", "GHI", "action", 0.000 0.25, 0.333 0.50);
984 BUTTON("5", "5", "JKL", "action", 0.333 0.25, 0.666 0.50);
985 BUTTON("6", "6", "MNO", "action", 0.666 0.25, 1.000 0.50);
987 BUTTON("7", "7", "PQRS", "action", 0.000 0.50, 0.333 0.75);
988 BUTTON("8", "8", "TUV", "action", 0.333 0.50, 0.666 0.75);
989 BUTTON("9", "9", "WXYZ", "action", 0.666 0.50, 1.000 0.75);
991 BUTTON("star", "*", "", "light", 0.000 0.75, 0.333 1.00);
992 BUTTON("0", "0", "+", "action", 0.333 0.75, 0.666 1.00);
993 BUTTON("hash", "#", "", "light", 0.666 0.75, 1.000 1.00);
997 name: "area.hide-keypad";
1000 clip_to: "clipper.keypad-visible";
1002 state: "default" 0.0;
1006 to_y: "button.hangup";
1011 to_y: "button.hangup";
1017 state: "alternate" 0.0;
1018 inherit: "default" 0.0;
1021 to_y: "button.hangup";
1023 offset: 0 -8; /* separator */
1026 to_y: "button.hangup";
1028 offset: -1 -9; /* separator */
1033 name: "button.hide-keypad";
1036 clip_to: "clipper.keypad-visible";
1038 state: "default" 0.0;
1039 color: 255 255 255 0;
1040 color_class: "action";
1041 rel1.to_y: "area.hide-keypad";
1042 rel2.to_y: "area.hide-keypad";
1045 state: "pressed" 0.0;
1046 inherit: "default" 0.0;
1047 color: 255 255 255 255;
1051 name: "label.hide-keypad";
1054 clip_to: "clipper.keypad-visible";
1056 state: "default" 0.0;
1057 color: 255 255 255 255;
1058 color_class: "action";
1059 rel1.to: "button.hide-keypad";
1060 rel2.to: "button.hide-keypad";
1062 text: "Hide Keypad";
1069 state: "pressed" 0.0;
1070 inherit: "default" 0.0;
1076 signal: "mouse,up,1";
1077 source: "button.hide-keypad";
1078 action: STATE_SET "default" 0.0;
1079 transition: DECELERATE 0.1;
1080 target: "button.hide-keypad";
1081 target: "label.hide-keypad";
1084 signal: "mouse,down,1";
1085 source: "button.hide-keypad";
1086 action: STATE_SET "pressed" 0.0;
1087 transition: ACCELERATE 0.3;
1088 target: "button.hide-keypad";
1089 target: "label.hide-keypad";
1093 name: "hide-keypad-phase1";
1094 signal: "mouse,clicked,1";
1095 source: "button.hide-keypad";
1096 action: STATE_SET "default" 0.0;
1097 transition: ACCELERATE 0.3;
1098 target: "clipper.keypad-visible";
1099 target: "area.hide-keypad";
1100 after: "hide-keypad-phase2";
1103 name: "hide-keypad-phase2";
1104 action: STATE_SET "default" 0.0;
1105 transition: ACCELERATE 0.3;
1106 target: "clipper.keypad-hidden";
1110 name: "show-keypad-phase1";
1111 signal: "mouse,clicked,1";
1112 source: "button.keypad";
1113 action: STATE_SET "alternate" 0.0;
1114 transition: ACCELERATE 0.3;
1115 target: "clipper.keypad-hidden";
1116 after: "show-keypad-phase2";
1119 name: "show-keypad-phase2";
1120 action: STATE_SET "alternate" 0.0;
1121 transition: ACCELERATE 0.3;
1122 target: "area.hide-keypad";
1123 target: "clipper.keypad-visible";
1132 clip_to: "clipper.keypad-hidden";
1134 state: "default" 0.0;
1136 rel1.to: "area.answer";
1137 rel2.to: "button.hangup";
1142 name: "clipper.answer";
1145 clip_to: "clipper.keypad-hidden";
1147 state: "default" 0.0;
1148 color: 255 255 255 0;
1152 state: "visible" 0.0;
1153 inherit: "default" 0.0;
1154 color: 255 255 255 255;
1159 name: "area.answer";
1162 clip_to: "clipper.answer";
1164 state: "default" 0.0;
1167 rel1.to_y: "button.hangup";
1168 rel2.to_y: "button.hangup";
1171 state: "visible" 0.0;
1172 inherit: "default" 0.0;
1175 to_y: "button.hangup";
1177 offset: 0 -8; /* separator */
1180 to_y: "button.hangup";
1182 offset: -1 -9; /* separator */
1187 name: "button.answer";
1190 clip_to: "clipper.answer";
1192 state: "default" 0.0;
1193 color: 255 255 255 0;
1194 color_class: "action";
1195 rel1.to_y: "area.answer";
1196 rel2.to_y: "area.answer";
1199 state: "pressed" 0.0;
1200 inherit: "default" 0.0;
1201 color: 255 255 255 255;
1205 name: "label.answer";
1208 clip_to: "clipper.answer";
1210 state: "default" 0.0;
1211 color: 255 255 255 255;
1212 color_class: "action";
1213 rel1.to: "button.answer";
1214 rel2.to: "button.answer";
1223 state: "pressed" 0.0;
1224 inherit: "default" 0.0;
1230 signal: "mouse,up,1";
1231 source: "button.answer";
1232 action: SIGNAL_EMIT "released,answer" "call";
1233 after: "show_up_answer";
1236 name: "show_up_answer";
1237 action: STATE_SET "default" 0.0;
1238 transition: DECELERATE 0.1;
1239 target: "button.answer";
1240 target: "label.answer";
1243 signal: "mouse,down,1";
1244 source: "button.answer";
1245 after: "show_down_answer";
1246 action: SIGNAL_EMIT "pressed,answer" "call";
1249 name: "show_down_answer";
1250 action: STATE_SET "pressed" 0.0;
1251 transition: ACCELERATE 0.3;
1252 target: "button.answer";
1253 target: "label.answer";
1256 signal: "mouse,clicked,1";
1257 source: "button.answer";
1258 action: SIGNAL_EMIT "clicked,answer" "call";
1262 signal: "show,answer";
1264 action: STATE_SET "visible" 0.0;
1265 target: "area.answer";
1266 target: "clipper.answer";
1269 signal: "hide,answer";
1271 action: STATE_SET "default" 0.0;
1272 target: "area.answer";
1273 target: "clipper.answer";
1278 name: "button.hangup";
1282 state: "default" 0.0;
1283 color: 255 255 255 255;
1295 state: "pressed" 0.0;
1296 inherit: "default" 0.0;
1297 color_class: "caution";
1301 name: "label.hangup";
1305 state: "default" 0.0;
1306 color: 255 255 255 255;
1307 color_class: "caution";
1308 rel1.to: "button.hangup";
1309 rel2.to: "button.hangup";
1318 state: "pressed" 0.0;
1319 inherit: "default" 0.0;
1325 signal: "mouse,up,1";
1326 source: "button.hangup";
1327 action: SIGNAL_EMIT "released,hangup" "call";
1328 after: "show_up_hangup";
1331 name: "show_up_hangup";
1332 action: STATE_SET "default" 0.0;
1333 transition: DECELERATE 0.1;
1334 target: "button.hangup";
1335 target: "label.hangup";
1338 signal: "mouse,down,1";
1339 source: "button.hangup";
1340 after: "show_down_hangup";
1341 action: SIGNAL_EMIT "pressed,hangup" "call";
1344 name: "show_down_hangup";
1345 action: STATE_SET "pressed" 0.0;
1346 transition: ACCELERATE 0.3;
1347 target: "button.hangup";
1348 target: "label.hangup";
1351 signal: "mouse,clicked,1";
1352 source: "button.hangup";
1353 action: SIGNAL_EMIT "clicked,hangup" "call";