tizen 2.3.1 release
[framework/uifw/efl-theme-tizen.git] / 2.2 / widgets / genlist / genlist_email.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *
9  *   1. Redistributions of source code must retain the above copyright notice, this
10  *      list of conditions and the following disclaimer.
11  *   2. Redistributions in binary form must reproduce the above copyright notice,
12  *      this list of conditions and the following disclaimer in the documentation
13  *      and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26
27 // -------------------------------------------------------------------
28 // Email Style -------------------------------------------------------
29 // -------------------------------------------------------------------
30 // For Handling checkbox srolling issue we have increased the size of check box
31 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
32 // 9 pixel extra space before the check image and 10 pixel after the check image.
33 // So to adjust this extra space the padding is reduced from 19 to 10.
34 // This means padding will be 10 pixel and extra space before the checkbox will be 9
35 // So it will again get to 19 pixel as gap before the checkbox as per GUI
36
37
38 #define GENLIST_EMAIL_PADDING_SIZE_LEFT                 10
39 #define GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE            8
40 #define GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE         8
41 #define GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM      3
42 #define GENLIST_EMAIL_PADDING_SIZE_DEFAULT              10
43
44 #define GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE             45
45
46 #define GENLIST_EMAIL_MAIN_TEXT_SIZE                    38
47 #define GENLIST_EMAIL_SUB_TEXT_SIZE                     30
48 #define GENLIST_EMAIL_COUNT_TEXT_SIZE                   28
49 #define GENLIST_EMAIL_CONTENTS_TEXT_SIZE                26
50 #define GENLIST_EMAIL_DATE_TEXT_SIZE                    24
51
52 #define STYLE_TAG \
53       tag:  "br" "\n";\
54       tag:  "ps" "ps";\
55       tag:  "tab" "\t";\
56       tag:  "b" "+ font_weight=Bold";
57
58 #define STYLE_TAG_MATCH_EMAIL \
59       tag:  "match" GENLIST_EMAIL_MATCH_TAG_COLOR;
60
61 #define STYLE_TAG_MATCH_EMAIL_FOCUS \
62       tag:  "match" GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE;
63
64
65    styles {
66       style { name: "email_style_main";
67          base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028 text_class=T028 ellipsis=1.0";
68          STYLE_TAG
69          STYLE_TAG_MATCH_EMAIL
70       }
71       style { name: "email_style_main_dim";
72          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028D text_class=T028D ellipsis=1.0";
73          STYLE_TAG
74          STYLE_TAG_MATCH_EMAIL
75       }
76       style { name: "email_style_main_read";
77          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028R text_class=T028R ellipsis=1.0";
78          STYLE_TAG
79          STYLE_TAG_MATCH_EMAIL
80       }
81       style { name: "email_style_main_read_dim";
82          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028RD text_class=T028RD ellipsis=1.0";
83          STYLE_TAG
84          STYLE_TAG_MATCH_EMAIL
85       }
86       //todo.. text_focus_color_style add....
87       style { name: "email_style_main_press";
88          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028D text_class=T028D text_class=list_item ellipsis=1.0";
89          STYLE_TAG
90          STYLE_TAG_MATCH_EMAIL_FOCUS
91       }
92       style { name: "email_style_sub_dim";
93          base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color=#ffffff color_class=T029D text_class=T029D ellipsis=1.0";
94          STYLE_TAG
95          STYLE_TAG_MATCH_EMAIL
96       }
97       style { name: "email_style_sub";
98          base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color=#ffffff color_class=T029 text_class=T029 ellipsis=1.0";
99          STYLE_TAG
100          STYLE_TAG_MATCH_EMAIL
101       }
102       style { name: "email_style_date";
103          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_DATE_TEXT_SIZE" color=#ffffff color_class=T0211 text_class=T0211 ellipsis=1.0";
104          STYLE_TAG
105          STYLE_TAG_MATCH_EMAIL
106       }
107       style { name: "email_style_date_dim";
108          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_DATE_TIME_TEXT_SIZE" color=#ffffff color_class=T0211D text_class=T0211D ellipsis=1.0";
109          STYLE_TAG
110          STYLE_TAG_MATCH_EMAIL
111       }
112       style { name: " email_style_contents";
113          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color=#ffffff color_class=T030 text_class=T030 ellipsis=1.0";
114          STYLE_TAG
115          STYLE_TAG_MATCH_EMAIL
116       }
117       style { name: " email_style_contents_dim";
118          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color=#ffffff color_class=T030D text_class=T030D  ellipsis=1.0";
119          STYLE_TAG
120          STYLE_TAG_MATCH_EMAIL
121       }
122    }
123
124 // email main text
125 #define PARAM_EMAIL_MAIN \
126    text { \
127       align: 0 0.5; \
128       min: 0 1; \
129       style: "email_style_main"; \
130    }
131
132 #define DESCRIPTION_EMAIL_MAIN_OTHERS \
133    description { state: "disabled" 0.0; \
134       inherit: "default" 0.0; \
135       text.style: "email_style_main_dim"; \
136    } \
137    description { state: "read" 0.0; \
138       inherit: "default" 0.0; \
139       text.style: "email_style_main_read"; \
140    } \
141    description { state: "read,disabled" 0.0; \
142       inherit: "default" 0.0; \
143       text.style: "email_style_main_read_dim"; \
144    } \
145    description { state: "pressed" 0.0; \
146       inherit: "default" 0.0; \
147       text.style: "email_style_main_press"; \
148    }
149
150 // email sub text
151 #define PARAM_EMAIL_SUB \
152    text { \
153       align: 0 0.5; \
154       min: 0 1; \
155       style: "email_style_sub"; \
156    }
157
158 #define DESCRIPTION_EMAIL_SUB_OTHERS \
159    description { state: "disabled" 0.0; \
160       inherit: "default" 0.0; \
161       visible: 0; \
162       text.style: "email_style_sub_dim"; \
163    } \
164
165 // email contents text
166 #define PARAM_EMAIL_CONTENTS \
167       text { \
168       align: 0 0.5; \
169       min: 0 1; \
170       style: " email_style_contents"; \
171    }
172
173 #define DESCRIPTION_EMAIL_CONTENTS \
174    description { state: "disabled" 0.0; \
175       inherit: "default" 0.0; \
176       text.style: " email_style_contents_dim"; \
177    } \
178
179 #define PARAM_EMAIL_COUNT \
180    color_class: "T0210"; \
181    text { \
182       align: 0 0.5; \
183       min: 0 1; \
184       text_class: "T0210"; \
185    }
186
187 //todo..email_text sellected color update.
188 #define DESCRIPTION_EMAIL_COUNT_OTHERS \
189    description { state: "pressed" 0.0; \
190       inherit: "default" 0.0; \
191       color_class: "T0210D"; \
192       text { \
193          align: 0 0.5; \
194          min: 0 1; \
195          text_class: "T0210D"; \
196       } \
197    }
198
199 #define PARAM_EMAIL_DATE \
200    text { \
201       align: 0 0.5; \
202       min: 0 1; \
203       font: "Tizen:style=Regular"; \
204       style: "email_style_datae"; \
205    }
206
207 #define DESCRIPTION_EMAIL_DATE_OTHERS \
208    description { state: "disabled" 0.0; \
209       inherit: "default" 0.0; \
210       text.style: "email_style_date_dim"; \
211    } \
212
213 #define GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( NAME, SIZE ) \
214          PART(SPACER, NAME, \
215             DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.2", \
216                min: 0 SIZE; \
217                fixed: 0 1; \
218             )  \
219          )
220
221 #define GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( NAME, SIZE ) \
222          PART(SPACER, NAME, \
223             DESC_LRT("elm.icon.2", "elm.icon.5", "elm.text.2", \
224                min: 0 SIZE; \
225                fixed: 0 1; \
226             )  \
227          )
228
229 #define GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
230          min: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE; \
231          max: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE;
232
233 #define GENLIST_PART_ICON_EMAIL_CHECK_RADIO_L(NAME, LEFT) \
234    GENLIST_PART_ICON(NAME, \
235       DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
236          GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
237          fixed: 1 1; \
238       ) \
239    )
240
241 #define HEIGHT_EMAIL_MAIN         54
242 #define HEIGHT_EMAIL_SUB          42
243 #define HEIGHT_EMAIL_CONTENTS      38
244
245
246 #define GENLIST_PROGRAMS_EMAIL( TARGET ) \
247    programs { \
248       GENLIST_PROGRAM_DEFAULT( TARGET \
249          target: "bg"; \
250          target: "bg_clip"; \
251          target: "bottom_line"; \
252          target: "bottom_line_clip"; \
253          target: "bg_reorder"; \
254          target: "elm.padding.left"; \
255          target: "elm.padding.right"; \
256          target: "focus_part"; \
257          target: "focus_part_reorder"; \
258       ) \
259       GENLIST_PROGRAM_DISABLED( TARGET \
260          target: "bg"; \
261          target: "bottom_line"; \
262          target: "bg_reorder"; \
263       ) \
264       GENLIST_PROGRAM_BOTTOMLINE \
265       GENLIST_PROGRAM_FOCUS_NORMAL \
266       GENLIST_PROGRAM_SELECT( TARGET \
267          target: "bg"; \
268          target: "bg_reorder"; \
269       ) \
270       PROGRAM_LIST_SOUND \
271       GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
272          target: "bg_clip"; \
273          target: "bg_reorder_clip"; \
274          target: "bottom_line_clip"; \
275          target: "elm.padding.left"; \
276          target: "elm.padding.right"; \
277       ) \
278       program { name: "unselected_target"; \
279          action: STATE_SET "default" 0.0; \
280          TARGET \
281       } \
282       program { name: "unselected_read"; \
283          signal: "elm,state,unselected"; \
284          source: "elm"; \
285          script { \
286             if (get_int(readed) == 1) \
287                run_program(PROGRAM:"go_read_target"); \
288             else \
289                run_program(PROGRAM:"unselected_target"); \
290          } \
291       } \
292       program { name: "go_read"; \
293          signal: "elm,state,read"; \
294          source: "*"; \
295          script { \
296            set_int(readed, 1); \
297            run_program(PROGRAM:"go_read_target"); \
298          } \
299       } \
300       program { name: "go_unread"; \
301          signal: "elm,state,unread"; \
302          source: "*"; \
303          script { \
304            set_int(readed, 0); \
305            run_program(PROGRAM:"go_unread_target"); \
306          } \
307       } \
308       program { name: "go_read_target"; \
309          action: STATE_SET "read" 0.0; \
310          target: "bg"; \
311          TARGET \
312       } \
313       program { name: "go_unread_target"; \
314          action: STATE_SET "unread" 0.0; \
315          target: "bg"; \
316          TARGET \
317       } \
318    }
319
320
321 #define GENLIST_PART_BG_EMAIL_NORMAL \
322       PART(RECT, "bg_clip", \
323          mouse_events: 0; \
324          description { state: "default" 0.0; \
325             visible: 1; \
326             color: 255 255 255 255; \
327          } \
328          description { state: "decorate" 0.0; \
329             inherit: "default" 0.0; \
330             visible: 0; \
331          } \
332          description { state: "reorder" 0.0; \
333             inherit: "default" 0.0; \
334             visible: 0; \
335          } \
336          description { state: "decorate_reorder" 0.0; \
337             inherit: "default" 0.0; \
338             visible: 0; \
339          } \
340       ) \
341       PART(RECT, "bg_reorder_clip", \
342          mouse_events: 0; \
343          description { state: "default" 0.0; \
344             visible: 0; \
345          } \
346          description { state: "reorder" 0.0; \
347             inherit: "default" 0.0; \
348             visible: 1; \
349             color: 255 255 255 255; \
350          } \
351          description { state: "decorate_reorder" 0.0; \
352             inherit: "default" 0.0; \
353             visible: 0; \
354          } \
355          description { state: "decorate" 0.0; \
356             inherit: "default" 0.0; \
357             visible: 0; \
358          } \
359          description { state: "reorder_flip" 0.0; \
360             inherit: "default" 0.0; \
361             visible: 0; \
362          } \
363       ) \
364       PART(RECT, "bg",  \
365          clip_to: "bg_clip"; \
366          description { state: "default" 0.0; \
367             color_class: "B011"; \
368          } \
369          description { state: "pressed" 0.0; \
370             inherit: "default" 0.0; \
371             color_class: "B041P"; \
372          } \
373          description { state: "disabled" 0.0; \
374             inherit: "default" 0.0; \
375             color_class: "B011"; \
376          } \
377           description { state: "read" 0.0; \
378             inherit: "default" 0.0; \
379             color_class: "B0218"; \
380          } \
381           description { state: "unread" 0.0; \
382             inherit: "default" 0.0; \
383             color_class: "B011"; \
384          } \
385       ) \
386       PART(SPACER, "bg_reorder_left", \
387          description { state: "default" 0.0; \
388             min: 16 0; \
389             max: 16 -1; \
390             fixed: 1 0; \
391             align: 0 0.5; \
392             rel2.relative: 0 1; \
393          } \
394       ) \
395       PART(SPACER, "bg_reorder_right", \
396          description { state: "default" 0.0; \
397             min: 16 0; \
398             max: 16 -1; \
399             fixed: 1 0; \
400             align: 1.0 0.5; \
401             rel1.relative: 1 0; \
402          } \
403       ) \
404       PART(SPACER, "bg_reorder_top", \
405          description { state: "default" 0.0; \
406             min: 0 2; \
407             max: -1 2; \
408             fixed: 0 1; \
409             align: 0.5 0; \
410             rel2.relative: 1 0; \
411          } \
412       ) \
413       PART(SPACER, "bg_reorder_bottom", \
414          description { state: "default" 0.0; \
415             min: 0 2; \
416             max: -1 2; \
417             fixed: 0 1; \
418             align: 0.5 1.0; \
419             rel1.relative: 0 1; \
420          } \
421       ) \
422       PART(RECT, "bg_reorder", \
423          clip_to: "bg_reorder_clip"; \
424          description { state: "default" 0.0; \
425             rel1 { \
426                relative: 1 1; \
427                to_x: "bg_reorder_left"; \
428                to_y: "bg_reorder_top"; \
429             } \
430             rel2 { \
431                relative: 0 0; \
432                to_x: "bg_reorder_right"; \
433                to_y: "bg_reorder_bottom"; \
434             } \
435             color_class: "B0217L1"; \
436          } \
437          description { state: "pressed" 0.0; \
438             inherit: "default"; \
439             color_class: "B041P"; \
440          } \
441          description { state: "flipped" 0.0; \
442             inherit: "default"; \
443             visible: 0; \
444          } \
445       )
446
447 // 2.2.3.5 (Email Style)
448    group { GENLIST_NAME("email.list/default")
449       PROLOG_LIST_NORMAL
450       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
451       data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch";
452
453       script {
454          public readed = 0;
455       }
456       parts {
457          GENLIST_PART_BG_EMAIL_NORMAL
458          GENLIST_PART_BASE
459          PART_LIST_BOTTOMLINE
460          PART_LIST_PADDINGS(
461             GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
462             GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE
463          )
464
465          GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
466
467 // For Handling checkbox srolling issue we have increased the size of check box
468 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
469 // 9 pixel extra space before the check image and 10 pixel after the check image.
470 // So to adjust this extra space the padding is reduced from 16 to 6.
471 // This means padding will be 6 pixel and extra space before the checkbox will be 10
472 // So it will again get to 16 pixel as gap after the checkbox as per GUI
473          PART(SPACER, "elm.padding.icon1.right",
474             description { state: "default" 0.0;
475                fixed: 1 0;
476                min: 6 0;
477                max: 6 -1;
478                align: 0 0.5;
479                rel1 {
480                   relative: 1 0;
481                   to_x: "elm.icon.1";
482                }
483                rel2 {
484                   relative: 1 1;
485                   to_x: "elm.icon.1";
486                }
487             }
488          )
489
490          PART(TEXTBLOCK, "elm.text.1",
491             DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
492                PARAM_EMAIL_MAIN
493                min: 0 HEIGHT_EMAIL_MAIN;
494                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
495             )
496             DESCRIPTION_EMAIL_MAIN_OTHERS
497          )
498
499          // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
500          PART(TEXT, "elm.text.4",
501             DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
502                PARAM_EMAIL_COUNT
503                min: 45 HEIGHT_EMAIL_MAIN;
504                max: 45 HEIGHT_EMAIL_MAIN;
505                text.min: 1 0;
506                text.align: 0.5 0.65;
507                fixed: 1 1;
508                visible: 0;
509             )
510          )
511          // Virtual part for Maxmimum right X axis of TEXT
512          PART(SPACER, "elm.text.limit",
513             DESC_R("elm.icon.3",
514                min: 0 0;
515                max: 0 0;
516                fixed: 1 0;
517             )
518          )
519          GENLIST_PART_ICON("elm.icon.3",
520             DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
521                fixed: 1 0;
522             )
523          )
524          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
525          GENLIST_PART_ICON("elm.icon.4",
526             DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
527                min: 45 45;
528                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
529                fixed: 1 0;
530             )
531          )
532          GENLIST_PART_ICON("elm.icon.4.touch",
533             DESC_TO("elm.icon.4",
534                rel1.offset: -4 -7;
535                rel2.offset: 26 8;
536             )
537          )
538          GENLIST_PART_ICON("elm.icon.2",
539             DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
540                fixed: 1 0;
541             )
542          )
543          PART(TEXTBLOCK, "elm.text.2",
544             DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
545                PARAM_EMAIL_SUB
546                min: 0 HEIGHT_EMAIL_SUB;
547                fixed: 0 1;
548             )
549             DESCRIPTION_EMAIL_SUB_OTHERS
550          )
551          PART(TEXTBLOCK, "elm.text.5",
552             DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
553                PARAM_EMAIL_DATE
554                GENLIST_PARAM_TEXT_LIMIT_RT
555                min: 0 HEIGHT_EMAIL_SUB;
556                fixed: 1 0;
557             )
558             DESCRIPTION_EMAIL_DATE_OTHERS
559          )
560
561          GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
562
563          PART(TEXTBLOCK, "elm.text.3",
564             DESC_LRTB("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
565                PARAM_EMAIL_CONTENTS
566                min: 0 HEIGHT_EMAIL_CONTENTS;
567             )
568             DESCRIPTION_EMAIL_CONTENTS
569          )
570          GENLIST_PART_FOCUS_NORMAL
571       }
572       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
573          target: "elm.text.2"; target: "elm.text.3";
574          target: "elm.text.4"; target: "elm.text.5";
575          target: "elm.swallow.colorbar";
576          target: "elm.icon.1";
577          target: "elm.icon.2"; target: "elm.icon.3";
578          target: "elm.icon.4"; target: "elm.icon.4.touch";
579       )
580    }
581
582 // email list with conversation text
583    group { GENLIST_NAME("email.list.conversation/default")
584       inherit: "elm/genlist/item/email.list/default";
585
586       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4 elm.text.5";
587       parts {
588          PART(TEXT, "elm.text.4",
589             DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
590                visible: 1;
591             )
592             DESCRIPTION_EMAIL_COUNT_OTHERS
593          )
594          // Virtual part for Maxmimum right X axis of TEXT
595          PART(SPACER, "elm.text.limit",
596             DESC_R("elm.icon.3",
597                min: 45 HEIGHT_EMAIL_MAIN;
598                max: 45 HEIGHT_EMAIL_MAIN;
599             )
600          )
601       }
602    }
603
604    // 2.2.3.13
605    // email outbox style
606    group { GENLIST_NAME("email.outbox/default")
607       PROLOG_LIST_NORMAL
608       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3";
609       data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch elm.icon.5";
610
611       script {
612          public readed = 0;
613       }
614       parts {
615          GENLIST_PART_BG_EMAIL_NORMAL
616          GENLIST_PART_BASE
617          PART_LIST_BOTTOMLINE
618          PART_LIST_PADDINGS(
619             GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
620             GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE
621          )
622          GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
623
624 // For Handling checkbox srolling issue we have increased the size of check box
625 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
626 // 9 pixel extra space before the check image and 10 pixel after the check image.
627 // So to adjust this extra space the padding is reduced from 16 to 6.
628 // This means padding will be 6 pixel and extra space before the checkbox will be 10
629 // So it will again get to 16 pixel as gap after the checkbox as per GUI
630          PART(SPACER, "elm.padding.icon1.right",
631             description { state: "default" 0.0;
632                fixed: 1 0;
633                min: 6 0;
634                max: 6 -1;
635                align: 0 0.5;
636                rel1 {
637                   relative: 1 0;
638                   to_x: "elm.icon.1";
639                }
640                rel2 {
641                   relative: 1 1;
642                   to_x: "elm.icon.1";
643                }
644             }
645          )
646
647          PART(TEXTBLOCK, "elm.text.1",
648             DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
649                PARAM_EMAIL_MAIN
650                min: 0 HEIGHT_EMAIL_MAIN;
651                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
652             )
653             DESCRIPTION_EMAIL_MAIN_OTHERS
654          )
655          // FIXME: because script cannot be inherited, text.4 is defined here and can be inherited
656          PART(TEXT, "elm.text.4",
657             DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
658                PARAM_EMAIL_COUNT
659                min: 0 HEIGHT_EMAIL_MAIN;
660                max: 0 HEIGHT_EMAIL_MAIN;
661                text.min: 1 0;
662                text.align: 0.5 0.65;
663                fixed: 1 0;
664                visible: 0;
665             )
666          )
667          // Virtual part for Maxmimum right X axis of TEXT
668          PART(SPACER, "elm.text.limit",
669             DESC_R("elm.icon.3",
670                min: 0 0;
671                max: 0 0;
672                fixed: 1 0;
673             )
674          )
675          GENLIST_PART_ICON("elm.icon.3",
676             DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
677                fixed: 1 0;
678             )
679          )
680          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
681          GENLIST_PART_ICON("elm.icon.4",
682             DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
683                min: 45 45;
684                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
685                fixed: 1 0;
686             )
687          )
688          GENLIST_PART_ICON("elm.icon.4.touch",
689             DESC_TO("elm.icon.4",
690                rel1.offset: -4 -7;
691                rel2.offset: 26 8;
692             )
693          )
694
695          GENLIST_PART_ICON("elm.icon.2",
696             DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
697                fixed: 1 1;
698             )
699          )
700          PART(TEXTBLOCK, "elm.text.2",
701             DESC_LRT("elm.icon.2", "elm.padding.icon5.left", "elm.text.1",
702                PARAM_EMAIL_SUB
703                min: 0 HEIGHT_EMAIL_SUB;
704                fixed: 0 1;
705             )
706             DESCRIPTION_EMAIL_SUB_OTHERS
707          )
708
709          GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
710
711          PART(TEXTBLOCK, "elm.text.3",
712             DESC_LRTB("elm.padding.icon1.right", "elm.padding.icon5.left", "elm.padding.text2.bottom", "elm.padding.bottom",
713                PARAM_EMAIL_CONTENTS
714                min: 0 HEIGHT_EMAIL_CONTENTS;
715             )
716             DESCRIPTION_EMAIL_CONTENTS
717          )
718          GENLIST_PART_PADDING_R("elm.padding.icon5.left", "elm.icon.5")
719          GENLIST_PART_ICON("elm.icon.5",
720             DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.bottom",
721                min: 180 74;
722                max: 180 74;
723                fixed: 1 1;
724             )
725          )
726          GENLIST_PART_FOCUS_NORMAL
727       }
728       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
729          target: "elm.text.4";
730          target: "elm.swallow.colorbar"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3";
731          target: "elm.icon.4"; target: "elm.icon.5";
732       )
733    }
734
735 // email outbox style with conversation
736    group { GENLIST_NAME("email.outbox.conversation/default")
737       inherit: "elm/genlist/item/email.outbox/default";
738
739       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4";
740
741       parts {
742          PART(TEXT, "elm.text.4",
743             DESC_LTB("elm.text.1", "elm.padding.top", "elm.icon.5",
744                min: 45 HEIGHT_EMAIL_MAIN;
745                max: 45 HEIGHT_EMAIL_MAIN;
746                visible: 1;
747             )
748             DESCRIPTION_EMAIL_COUNT_OTHERS
749          )
750          PART(SPACER, "elm.text.limit",
751             DESC_R("elm.icon.3",
752                min: 45 HEIGHT_EMAIL_MAIN;
753                max: 45 HEIGHT_EMAIL_MAIN;
754             )
755          )
756       }
757    }
758
759 // FIXME: This is temporary style for test purpose
760 // This style has all widgets by itself
761    group { GENLIST_NAME("email.list.test/default")
762       PROLOG_LIST_NORMAL
763       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
764       data.item: "contents" "elm.swallow.colorbar elm.check.touch elm.icon.4.touch";
765
766       images {
767          image: "00_check_activate.png" COMP;
768          image: "00_check_activate_ef.png" COMP;
769          image: "00_check_bg.png" COMP;
770          image: "00_check_bg_ef.png" COMP;
771          image: "00_check_bg_line.png" COMP;
772       }
773
774       script {
775          public readed = 0;
776       }
777       parts {
778          PART_LIST_BG_NORMAL
779          GENLIST_PART_BASE
780          PART_LIST_BOTTOMLINE
781          PART_LIST_PADDINGS(
782             GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
783             GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE
784          )
785
786          PART(IMAGE, "elm.check.bg",
787             mouse_events: 0;
788             DESC_L("elm.padding.left",
789                image.normal: "00_check_bg.png";
790                fill.smooth : 0;
791             )
792             description { state: "default" 0.0;
793                min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
794                max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
795                fixed: 1 1;
796                image.normal: "00_check_bg.png";
797                fill.smooth : 0;
798                color_class: "W013L1";
799             }
800             description { state: "pressed" 0.0;
801                inherit: "default" 0.0;
802                color_class: "W013L1P";
803             }
804             description { state: "disabled" 0.0;
805                inherit: "default" 0.0;
806                color_class: "W013L1D";
807             }
808          )
809          PART(IMAGE, "elm.check.bg.effect",
810             mouse_events: 0;
811             DESC_L("elm.padding.left",
812                image.normal: "00_check_bg_ef.png";
813                fill.smooth : 0;
814             )
815             description { state: "default" 0.0;
816                min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
817                max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
818                fixed: 1 1;
819                image.normal: "00_check_bg_ef.png";
820                fill.smooth : 0;
821             }
822          )
823          PART(IMAGE, "elm.check.bg.line",
824             mouse_events: 0;
825             DESC_L("elm.padding.left",
826                image.normal: "00_check_bg_line.png";
827                fill.smooth : 0;
828             )
829             description { state: "default" 0.0;
830                min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
831                max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
832                fixed: 1 1;
833                image.normal: "00_check_bg_line.png";
834                fill.smooth : 0;
835                color_class: "W013L2";
836             }
837             description { state: "pressed" 0.0;
838                inherit: "default" 0.0;
839                color_class: "W013L2P";
840             }
841             description { state: "disabled" 0.0;
842                inherit: "default" 0.0;
843                color_class: "W013L2D";
844             }
845          )
846          PART(IMAGE, "elm.check",
847             mouse_events: 0;
848             DESC_TO("elm.check.bg",
849                visible: 0;
850                image.normal: "00_check_activate.png";
851                color_class: "W013L3";
852             )
853             description { state: "visible" 0.0;
854                inherit: "default" 0.0;
855                visible: 1;
856                color_class: "W013L3";
857             }
858             description { state: "dim" 0.0;
859                inherit: "default" 0.0;
860                visible: 1;
861                color_class: "W013L3D";
862             }
863             description { state: "pressed" 0.0;
864                inherit: "visible" 0.0;
865                color_class: "W013L3P";
866             }
867          )
868          PART(IMAGE, "elm.check.effect",
869             mouse_events: 0;
870             DESC_TO("elm.check.bg",
871                visible: 1;
872                image.normal: "00_check_activate_ef.png";
873             )
874          )
875
876
877 // For Handling checkbox srolling issue we have increased the size of check box
878 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
879 // 9 pixel extra space before the check image and 10 pixel after the check image.
880 // So to adjust this extra space the padding is reduced from 16 to 6.
881 // This means padding will be 6 pixel and extra space before the checkbox will be 10
882 // So it will again get to 16 pixel as gap after the checkbox as per GUI
883          PART(SPACER, "elm.padding.icon1.right",
884             description { state: "default" 0.0;
885                fixed: 1 0;
886                min: 6 0;
887                max: 6 -1;
888                align: 0 0.5;
889                rel1 {
890                   relative: 1 0;
891                   to_x: "elm.check";
892                }
893                rel2 {
894                   relative: 1 1;
895                   to_x: "elm.check";
896                }
897             }
898          )
899
900          PART(TEXTBLOCK, "elm.text.1",
901             DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
902                PARAM_EMAIL_MAIN
903                min: 0 HEIGHT_EMAIL_MAIN;
904                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
905             )
906             DESCRIPTION_EMAIL_MAIN_OTHERS
907          )
908
909          // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
910          PART(TEXT, "elm.text.4",
911             DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
912                PARAM_EMAIL_COUNT
913                min: 45 HEIGHT_EMAIL_MAIN;
914                max: 45 HEIGHT_EMAIL_MAIN;
915                text.min: 1 0;
916                text.align: 0.5 0.65;
917                fixed: 1 1;
918                visible: 0;
919             )
920          )
921          // Virtual part for Maxmimum right X axis of TEXT
922          PART(SPACER, "elm.text.limit",
923             DESC_R("elm.icon.3",
924                min: 0 0;
925                max: 0 0;
926                fixed: 1 0;
927             )
928          )
929          PART(IMAGE, "elm.icon.3",
930             DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
931                fixed: 1 0;
932                min: 0 0;
933                max: 0 0;
934                image.normal: "00_icon_favorite_bg_45x45.png";
935                color_class: "F022L2i";
936                visible: 0;
937             )
938             description { state: "visible" 0.0;
939                inherit: "default" 0.0;
940                min: 45 45;
941                visible: 1;
942             }
943          )
944          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
945          PART(IMAGE, "elm.icon.4",
946             DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
947                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
948                min: 0 0;
949                max: 0 0;
950                fixed: 1 0;
951                image.normal: "00_icon_favorite_bg_45x45.png";
952                color_class: "F022L1i";
953                visible: 0;
954             )
955             description { state: "visible" 0.0;
956                inherit: "default" 0.0;
957                min: 45 45;
958                visible: 1;
959             }
960             description { state: "enable" 0.0;
961                inherit: "default" 0.0;
962                image.normal: "00_icon_favorite_bg_45x45.png";
963                color_class: "F022L2i";
964                min: 45 45;
965                visible: 1;
966             }
967          )
968          GENLIST_PART_ICON("elm.icon.4.touch",
969             DESC_TO("elm.icon.4",
970                rel1.offset: -4 -7;
971                rel2.offset: 26 8;
972             )
973          )
974          PART(IMAGE, "elm.icon.2",
975             DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
976                min: 0 0;
977                max: 0 0;
978                fixed: 1 0;
979                image.normal: "00_icon_favorite_bg_45x45.png";
980                color_class: "F022L1i";
981                visible: 0;
982             )
983             description { state: "visible" 0.0;
984                inherit: "default" 0.0;
985                min: 45 45;
986                visible: 1;
987             }
988          )
989          PART(TEXTBLOCK, "elm.text.2",
990             DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
991                PARAM_EMAIL_SUB
992                min: 0 HEIGHT_EMAIL_SUB;
993                fixed: 0 1;
994             )
995             DESCRIPTION_EMAIL_SUB_OTHERS
996          )
997          PART(TEXTBLOCK, "elm.text.5",
998             DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
999                PARAM_EMAIL_DATE
1000                GENLIST_PARAM_TEXT_LIMIT_RT
1001                min: 0 HEIGHT_EMAIL_SUB;
1002                fixed: 1 0;
1003             )
1004             DESCRIPTION_EMAIL_DATE_OTHERS
1005          )
1006
1007          GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
1008
1009          PART(TEXTBLOCK, "elm.text.3",
1010             DESC_LRTB("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
1011                PARAM_EMAIL_CONTENTS
1012                min: 0 HEIGHT_EMAIL_CONTENTS;
1013             )
1014             DESCRIPTION_EMAIL_CONTENTS
1015          )
1016          GENLIST_PART_ICON("elm.check.touch",
1017             DESC_TO("elm.check",
1018             )
1019          )
1020          GENLIST_PART_FOCUS_NORMAL
1021       }
1022       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
1023          target: "elm.text.2"; target: "elm.text.3";
1024          target: "elm.text.4"; target: "elm.text.5";
1025          target: "elm.swallow.colorbar";
1026          target: "elm.icon.4.touch";
1027          target: "elm.check.touch";
1028       )
1029       program { name: "check_show";
1030          signal: "elm,state,check,show";
1031          source: "*";
1032          action: STATE_SET "visible" 0.0;
1033          target: "elm.check";
1034       }
1035       program { name: "check_hide";
1036          signal: "elm,state,check,hide";
1037          source: "*";
1038          action: STATE_SET "default" 0.0;
1039          target: "elm.check";
1040       }
1041       program { name: "icon2_show";
1042          signal: "elm,state,icon2,show";
1043          source: "*";
1044          action: STATE_SET "visible" 0.0;
1045          target: "elm.icon.2";
1046       }
1047       program { name: "icon3_show";
1048          signal: "elm,state,icon3,show";
1049          source: "*";
1050          action: STATE_SET "visible" 0.0;
1051          target: "elm.icon.3";
1052       }
1053       program { name: "icon4_show";
1054          signal: "elm,state,icon4,show";
1055          source: "*";
1056          action: STATE_SET "visible" 0.0;
1057          target: "elm.icon.4";
1058       }
1059       program { name: "icon4_enable";
1060          signal: "elm,state,icon4,enable";
1061          source: "*";
1062          action: STATE_SET "enable" 0.0;
1063          target: "elm.icon.4";
1064       }
1065       program { name: "icon4_disable";
1066          signal: "elm,state,icon4,disable";
1067          source: "*";
1068          action: STATE_SET "visible" 0.0;
1069          target: "elm.icon.4";
1070       }
1071    }