2 name: "elm/genlist/item/contacts/default";
5 item: "texts" "text.contacts.name text.contacts.last";
6 item: "contents" "swallow.photo";
17 color_class: "action";
18 min: WIDTH LIST_CONTACT_HEIGHT;
21 state: "selected" 0.0;
22 inherit: "default" 0.0;
23 color: 255 255 255 255;
34 color: 255 255 255 255;
35 color_class: "action";
48 state: "selected" 0.0;
49 inherit: "default" 0.0;
61 color: 255 255 255 255;
75 state: "selected" 0.0;
76 inherit: "default" 0.0;
82 name: "swallow.photo";
88 min: CONTACT_PHOTO_SIZE CONTACT_PHOTO_SIZE;
89 max: CONTACT_PHOTO_SIZE CONTACT_PHOTO_SIZE;
94 offset: BORDER_PADDING 0;
98 offset: BORDER_PADDING -1;
104 name: "text.contacts.name";
109 state: "default" 0.0;
110 color: 255 255 255 255;
111 color_class: "action";
115 offset: ITEM_PADDING 0;
118 to_y: "swallow.photo";
120 offset: (-BORDER_PADDING -1) -1;
130 state: "selected" 0.0;
131 inherit: "default" 0.0;
137 name: "text.contacts.last";
142 state: "default" 0.0;
143 color: 255 255 255 255;
144 color_class: "light";
148 offset: ITEM_PADDING 0;
151 to_y: "swallow.photo";
153 offset: (-BORDER_PADDING -1) -1;
163 state: "selected" 0.0;
164 inherit: "default" 0.0;
172 signal: "elm,state,selected";
174 action: STATE_SET "selected" 0.0;
176 target: "text.contacts.name";
177 target: "text.contacts.last";
178 target: "img.border";
182 signal: "elm,state,unselected";
184 action: STATE_SET "default" 0.0;
186 target: "text.contacts.name";
187 target: "text.contacts.last";
188 target: "img.border";
195 name: "elm/genlist/item/group_contacts/default";
198 item: "texts" "text.group";
208 state: "default" 0.0;
209 color: 255 255 255 255;
210 color_class: "action";
211 min: (BORDER_PADDING + CONTACT_PHOTO_SIZE) GROUP_HEIGHT;
212 max: (BORDER_PADDING + CONTACT_PHOTO_SIZE) GROUP_HEIGHT;
223 state: "default" 0.0;
224 color: 255 255 255 255;
228 offset: -ITEM_PADDING -1;
243 name: "elm/layout/dialer/contacts_details";
253 state: "default" 0.0;
254 color: 255 255 255 255;
255 color_class: "action";
268 state: "selected" 0.0;
269 inherit: "default" 0.0;
280 state: "default" 0.0;
281 color: 255 255 255 255;
295 state: "selected" 0.0;
296 inherit: "default" 0.0;
302 name: "swallow.photo";
307 state: "default" 0.0;
308 min: CONTACT_PHOTO_SIZE CONTACT_PHOTO_SIZE;
309 max: CONTACT_PHOTO_SIZE CONTACT_PHOTO_SIZE;
312 offset: BORDER_PADDING 0;
316 offset: (BORDER_PADDING+CONTACT_PHOTO_SIZE) (CONTACT_PHOTO_SIZE+ITEM_PADDING);
327 state: "default" 0.0;
328 color: 255 255 255 255;
329 color_class: "action";
333 offset: ITEM_PADDING ITEM_PADDING;
336 to_y: "swallow.photo";
338 offset: -BORDER_PADDING -ITEM_PADDING;
351 name: "text.last.name";
356 state: "default" 0.0;
357 color: 255 255 255 128;
358 color_class: "action";
362 offset: 0 ITEM_PADDING;
366 to_y: "swallow.photo";
368 offset: 0 ITEM_PADDING;
386 state: "default" 0.0;
388 layout: "vertical_homogeneous";
391 to_y: "swallow.photo";
393 offset: 0 (ITEM_PADDING+ACTION_HEIGHT);
408 state: "default" 0.0;
410 min: WIDTH ACTION_HEIGHT;
411 max: WIDTH 99999; /* keep it tight centered */
414 offset: 0 -ACTION_HEIGHT;
418 #define BUTTON(id, label, ccls, r1, r2) \
420 name: "button."##id; \
424 state: "default" 0.0; \
425 color: 255 255 255 0; \
426 color_class: "action"; \
437 state: "pressed" 0.0; \
438 inherit: "default" 0.0; \
439 color: 255 255 255 255; \
443 name: "label."##id; \
447 state: "default" 0.0; \
448 color: 255 255 255 255; \
450 rel1.to: "button."##id; \
462 state: "pressed" 0.0; \
463 inherit: "default" 0.0; \
464 color: 16 16 16 255; \
470 signal: "mouse,up,1"; \
471 source: "button."##id; \
472 action: SIGNAL_EMIT "released,"##id "keypad"; \
473 after: "show_up_"##id; \
474 api: id"_released" id" was released"; \
477 name: "show_up_"##id; \
478 action: STATE_SET "default" 0.0; \
479 transition: DECELERATE 0.1; \
480 target: "button."##id; \
481 target: "label."##id; \
484 signal: "mouse,down,1"; \
485 source: "button."##id; \
486 after: "show_down_"##id; \
487 action: SIGNAL_EMIT "pressed,"##id "keypad"; \
488 api: id"_pressed" id" was pressed"; \
491 name: "show_down_"##id; \
492 action: STATE_SET "pressed" 0.0; \
493 transition: ACCELERATE 0.1; \
494 target: "button."##id; \
495 target: "label."##id; \
498 signal: "mouse,clicked,1"; \
499 source: "button."##id; \
500 action: SIGNAL_EMIT "clicked,"##id "gui"; \
501 api: id"_clicked" id" was clicked"; \
505 BUTTON("back", "Back", "action", 0.0 0.0, 1.0 1.0);
512 name: "elm/icon/no-picture/default";
515 image: "ico_person.png" COMP;
523 state: "default" 0.0;
525 aspect_preference: BOTH;
526 image.normal: "ico_person.png";
533 name: "elm/button/base/contacts";
541 state: "default" 0.0;
542 color: 255 255 255 0;
543 color_class: "action";
546 state: "pressed" 0.0;
547 inherit: "default" 0.0;
548 color: 255 255 255 255;
553 name: "elm.text.phone";
557 state: "default" 0.0;
558 color: 255 255 255 255;
559 color_class: "action";
561 offset: BORDER_PADDING 0;
564 to_y: "elm.text.type";
566 offset: (-BORDER_PADDING -1) ITEM_PADDING;
571 size_range: SIZE_SMALL SIZE_HUGE;
578 state: "pressed" 0.0;
579 inherit: "default" 0.0;
585 name: "elm.text.type";
589 state: "default" 0.0;
590 color: 255 255 255 128;
591 color_class: "action";
596 offset: BORDER_PADDING (-ITEM_PADDING - 1);
600 offset: (-BORDER_PADDING -1) (-ITEM_PADDING - 1);
611 state: "pressed" 0.0;
612 inherit: "default" 0.0;
617 #define SEPARATOR(id, rely, offy, relto) \
619 name: "separator.dark."##id; \
623 state: "default" 0.0; \
624 color: 255 255 255 255; \
625 color_class: "dark"; \
627 relative: 0.0 rely; \
632 relative: 1.0 rely; \
633 offset: -1 (offy + SEPARATOR_HEIGHT / 2); \
639 name: "separator.bg."##id; \
643 state: "default" 0.0; \
644 color: 255 255 255 255; \
647 relative: 0.0 rely; \
648 offset: 0 (offy + SEPARATOR_HEIGHT / 2); \
652 relative: 1.0 rely; \
653 offset: -1 (offy + SEPARATOR_HEIGHT); \
659 SEPARATOR("bottom", 1.0, -SEPARATOR_HEIGHT, "");
666 signal: "mouse,clicked,1";
668 action: SIGNAL_EMIT "elm,action,click" "";
672 signal: "mouse,down,1";
674 transition: ACCELERATE 0.3;
675 action: STATE_SET "pressed" 0.0;
677 target: "elm.text.phone";
678 target: "elm.text.type";
682 signal: "mouse,up,1";
684 transition: DECELERATE 0.3;
685 action: STATE_SET "default" 0.0;
687 target: "elm.text.phone";
688 target: "elm.text.type";