2 name: "elm/layout/ofono-efl/messages-overview";
5 * Represents the messages compose layout with actions and swallows.
9 * SWALLOW: elm.swallow.genlist - Where all the conversations will appear
12 * Emit (source is "gui"):
13 * clicked,edit - When the edit button is cliked
14 * clicked,edit,done - When The Button "Done" while editing is clicked
16 * Listens (source is "gui"):
17 * show,genlist - Show the genlist with the current message thread
18 * hidden,genlist - Hide the genlist
19 * toggle,on,edit - User is editing
20 * toggle,off,edit - User finished the editing
22 * Where <ID> is the name of the button
27 image: "bg_keypad.jpg" COMP;
37 color: 255 255 255 255;
40 normal: "bg_keypad.jpg";
49 name: "notification.bar";
55 rel1.relative: 0.0 0.0;
58 offset: -1 NOTIFICATION_BAR_HEIGHT;
64 name: "button.area.clipper";
68 rel1.to: "bg.buttons";
71 offset: -1 SEPARATOR_HEIGHT;
78 name: "button.clipper";
80 clip_to: "button.area.clipper";
83 rel1.to: "button.area.clipper";
84 rel2.to: "button.area.clipper";
87 state: "alternate" 0.0;
94 name: "edit-button.clipper";
96 clip_to: "button.area.clipper";
101 rel1.to: "button.area.clipper";
102 rel2.to: "button.area.clipper";
105 state: "alternate" 0.0;
106 color: 255 255 255 255;
112 name: "edit.clipper";
115 state: "default" 0.0;
119 offset: -1 SEPARATOR_HEIGHT;
128 clip_to: "button.clipper";
130 state: "default" 0.0;
133 min: 0 (ACTION_HEIGHT / 2);
135 to: "notification.bar";
140 to_y: "notification.bar";
142 offset: (-ITEM_PADDING - 1) (ACTION_HEIGHT / 2 - 1);
151 clip_to: "edit.clipper";
153 state: "default" 0.0;
155 min: 0 (ACTION_HEIGHT / 2);
157 to: "notification.bar";
159 offset: (-LIST_ICON_SIZE - ITEM_PADDING - BORDER_PADDING) 0;
162 to: "notification.bar";
164 offset: -1 (ACTION_HEIGHT / 2 - 1);
169 #define SEPARATOR(id, clip, rely, offy, relto) \
171 name: "separator.dark."##id; \
176 state: "default" 0.0; \
177 color: 255 255 255 255; \
178 color_class: "dark"; \
180 relative: 0.0 rely; \
185 relative: 1.0 rely; \
186 offset: -1 (offy + SEPARATOR_HEIGHT / 2); \
192 name: "separator.bg."##id; \
197 state: "default" 0.0; \
198 color: 255 255 255 255; \
201 relative: 0.0 rely; \
202 offset: 0 (offy + SEPARATOR_HEIGHT / 2); \
206 relative: 1.0 rely; \
207 offset: -1 (offy + SEPARATOR_HEIGHT); \
213 SEPARATOR("button", "button.area.clipper", 1.0, 0, "bg.buttons");
214 SEPARATOR("edit-button", "button.area.clipper", 1.0, 0, "bg.buttons");
215 SEPARATOR("edit", "edit.clipper", 1.0, 0, "bg.edit");
219 #define BUTTON(id, label, ccls, clip, r1, r2) \
221 name: "button."##id; \
226 state: "default" 0.0; \
227 color: 255 255 255 0; \
228 color_class: "action"; \
239 state: "pressed" 0.0; \
240 inherit: "default" 0.0; \
241 color: 255 255 255 255; \
245 name: "label."##id; \
250 state: "default" 0.0; \
251 color: 255 255 255 255; \
253 rel1.to: "button."##id; \
265 state: "pressed" 0.0; \
266 inherit: "default" 0.0; \
267 color: 16 16 16 255; \
273 signal: "toggle,on,"##id; \
275 action: STATE_SET "pressed" 0.0; \
276 target: "button."##id; \
277 target: "label."##id; \
280 signal: "toggle,off,"##id; \
282 action: STATE_SET "default" 0.0; \
283 target: "button."##id; \
284 target: "label."##id; \
287 signal: "mouse,clicked,1"; \
288 source: "button."##id; \
289 action: SIGNAL_EMIT "clicked,"##id "gui"; \
290 api: id"_clicked" id" was clicked"; \
294 BUTTON("view", "View", "action", "button.clipper", 0.0 0.0, 0.5 1.0);
295 BUTTON("compose", "Compose", "action", "button.clipper", 0.5 0.0, 1.0 1.0);
297 BUTTON("clear", "Clear", "caution", "edit-button.clipper", 0.0 0.0, 0.5 1.0);
298 BUTTON("edit,done", "Done", "action", "edit-button.clipper", 0.5 0.0, 1.0 1.0);
305 clip_to: "edit.clipper";
307 state: "default" 0.0;
308 color: 255 255 255 0;
309 color_class: "caution";
314 state: "pressed" 0.0;
315 inherit: "default" 0.0;
316 color: 255 255 255 255;
323 clip_to: "edit.clipper";
325 state: "default" 0.0;
326 min: LIST_ICON_SIZE LIST_ICON_SIZE;
327 max: LIST_ICON_SIZE LIST_ICON_SIZE;
329 color: 255 255 255 255;
330 color_class: "caution";
333 offset: ITEM_PADDING 0;
337 offset: (-BORDER_PADDING - 1) -1;
340 normal: "ico_del.png";
345 state: "pressed" 0.0;
346 inherit: "default" 0.0;
351 name: "button.over.edit";
354 clip_to: "edit.clipper";
356 state: "default" 0.0;
363 state: "pressed" 0.0;
364 inherit: "default" 0.0;
370 name: "elm.swallow.genlist";
373 state: "default" 0.0;
375 to_y: "separator.bg.button";
384 signal: "toggle,on,edit";
386 action: STATE_SET "pressed" 0.0;
387 target: "button.edit";
388 target: "button.over.edit";
390 after: "show_edit_buttons";
393 name: "show_edit_buttons";
394 action: STATE_SET "alternate" 0.0;
395 transition: ACCELERATE 0.3;
396 target: "button.clipper";
397 target: "edit-button.clipper";
401 signal: "toggle,off,edit";
403 action: STATE_SET "default" 0.0;
404 target: "button.edit";
405 target: "button.over.edit";
407 after: "hide_edit_buttons";
410 name: "hide_edit_buttons";
411 action: STATE_SET "default" 0.0;
412 transition: ACCELERATE 0.3;
413 target: "button.clipper";
414 target: "edit-button.clipper";
418 signal: "mouse,clicked,1";
419 source: "button.edit";
420 action: SIGNAL_EMIT "clicked,edit" "gui";
421 api: "edit was clicked";
424 signal: "mouse,clicked,1";
425 source: "button.over.edit";
426 action: SIGNAL_EMIT "clicked,edit,done" "gui";
427 api: "edit_done was clicked";