Fixed genlist email style issues 1. Space between checkbox and text. 2. Text get...
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / genlist / genlist_email.edc
1 /*\r
2  * efl-theme-tizen\r
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.\r
4  *\r
5  * Licensed under the Apache License, Version 2.0 (the License);\r
6  * you may not use this file except in compliance with the License.\r
7  * You may obtain a copy of the License at\r
8  *\r
9  *     http://www.apache.org/licenses/LICENSE-2.0\r
10  *\r
11  * Unless required by applicable law or agreed to in writing, software\r
12  * distributed under the License is distributed on an AS IS BASIS,\r
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14  * See the License for the specific language governing permissions and\r
15  * limitations under the License.\r
16  */\r
17 \r
18 // -------------------------------------------------------------------
19 // Email Style -------------------------------------------------------
20 // -------------------------------------------------------------------
21 // For Handling checkbox srolling issue we have increased the size of check box
22 // background to 64*64 though the check image is 45*45 as per GUI. These leaves 
23 // 9 pixel extra space before the check image and 10 pixel after the check image.
24 // So to adjust this extra space the padding is reduced from 19 to 10.
25 // This means padding will be 10 pixel and extra space before the checkbox will be 9
26 // So it will again get to 19 pixel as gap before the checkbox as per GUI
27 #define GENLIST_EMAIL_PADDING_SIZE_LEFT               10
28 #define GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE          8
29 #define GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE       8
30 #define GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM       3
31 #define GENLIST_EMAIL_PADDING_SIZE_DEFAULT            10
32
33 #define GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE     45
34
35 #define GENLIST_EMAIL_TEXT_FOCUS_COLOR                      255 255 255 255
36 #define GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE                "#FFFFFFFF"
37
38 #define GENLIST_EMAIL_MAIN_TEXT_SIZE                        38
39 #define GENLIST_EMAIL_MAIN_TEXT_UNREAD_COLOR_STYLE          "#000000FF"
40 #define GENLIST_EMAIL_MAIN_TEXT_UNREAD_DIM_COLOR_STYLE      "#00000066"
41 #define GENLIST_EMAIL_MAIN_TEXT_READ_COLOR_STYLE            "#808080FF"
42 #define GENLIST_EMAIL_MAIN_TEXT_READ_DIM_COLOR_STYLE      "#808080CC"
43
44 #define GENLIST_EMAIL_SUB_TEXT_SIZE                         30
45 #define GENLIST_EMAIL_SUB_TEXT_COLOR_STYLE                  "#808080FF"
46
47 #define GENLIST_EMAIL_COUNT_TEXT_SIZE                       28
48 #define GENLIST_EMAIL_COUNT_TEXT_UNREAD_COLOR               59 115 182 255
49 #define GENLIST_EMAIL_COUNT_TEXT_UNREAD_COLOR_STYLE         "#3B73B6FF"
50 #define GENLIST_EMAIL_COUNT_TEXT_READ_COLOR                 128 128 128 255
51 #define GENLIST_EMAIL_COUNT_TEXT_READ_COLOR_STYLE           "#808080FF"
52
53 #define GENLIST_EMAIL_CONTENTS_TEXT_SIZE                    26
54 #define GENLIST_EMAIL_CONTENTS_TIME_TEXT_SIZE               24
55  // 128 128 128
56 #define GENLIST_EMAIL_CONTENTS_TEXT_COLOR_STYLE             "#808080FF"
57
58  // 19 130 255
59 #define GENLIST_EMAIL_MATCH_TAG_COLOR                       "+ color=#1382FF"
60
61 #define STYLE_TAG \
62       tag:  "br" "\n";\
63       tag:  "ps" "ps";\
64       tag:  "tab" "\t";\
65       tag:  "b" "+ font=Tizen:style=Bold";
66
67 #define STYLE_TAG_MATCH_EMAIL \
68       tag:  "match" GENLIST_EMAIL_MATCH_TAG_COLOR;
69
70 #define STYLE_TAG_MATCH_EMAIL_FOCUS \
71       tag:  "match" GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE;
72
73
74    styles {
75       style { name: "email_style_main";
76          base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color="GENLIST_EMAIL_MAIN_TEXT_UNREAD_COLOR_STYLE" text_class=list_item ellipsis=1.0";
77          STYLE_TAG
78          STYLE_TAG_MATCH_EMAIL
79       }
80       style { name: "email_style_main_dim";
81          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color="GENLIST_EMAIL_MAIN_TEXT_UNREAD_DIM_COLOR_STYLE" text_class=list_item ellipsis=1.0";
82          STYLE_TAG
83          STYLE_TAG_MATCH_EMAIL
84       }
85       style { name: "email_style_main_read";
86          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color="GENLIST_EMAIL_MAIN_TEXT_READ_COLOR_STYLE" text_class=list_item ellipsis=1.0";
87          STYLE_TAG
88          STYLE_TAG_MATCH_EMAIL
89       }
90       style { name: "email_style_main_read_dim";
91          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color="GENLIST_EMAIL_MAIN_TEXT_READ_DIM_COLOR_STYLE" text_class=list_item ellipsis=1.0";
92          STYLE_TAG
93          STYLE_TAG_MATCH_EMAIL
94       }
95       style { name: "email_style_main_focus";
96          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color="GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE" text_class=list_item ellipsis=1.0";
97          STYLE_TAG
98          STYLE_TAG_MATCH_EMAIL_FOCUS
99       }
100       style { name: "email_style_sub";
101          base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color="GENLIST_EMAIL_SUB_TEXT_COLOR_STYLE" text_class=tizen ellipsis=1.0";
102          STYLE_TAG
103          STYLE_TAG_MATCH_EMAIL
104       }
105       style { name: "email_style_sub_focus";
106          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color="GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE" text_class=tizen ellipsis=1.0";
107          STYLE_TAG
108          STYLE_TAG_MATCH_EMAIL_FOCUS
109       }
110       style { name: "email_style_contents";
111          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color="GENLIST_EMAIL_CONTENTS_TEXT_COLOR_STYLE" text_class=tizen ellipsis=1.0";
112          STYLE_TAG
113          STYLE_TAG_MATCH_EMAIL
114       }
115       style { name: "email_style_contents_time";
116          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TIME_TEXT_SIZE" color="GENLIST_EMAIL_CONTENTS_TEXT_COLOR_STYLE" text_class=tizen ellipsis=1.0";
117          STYLE_TAG
118          STYLE_TAG_MATCH_EMAIL
119       }
120       style { name: "email_style_contents_time_focus";
121          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TIME_TEXT_SIZE" color="GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE" text_class=tizen ellipsis=1.0";
122          STYLE_TAG
123          STYLE_TAG_MATCH_EMAIL_FOCUS
124       }
125       style { name: "email_style_contents_focus";
126          base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color="GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE" text_class=tizen ellipsis=1.0";
127          STYLE_TAG
128          STYLE_TAG_MATCH_EMAIL_FOCUS
129       }
130    }
131
132 // email main text
133 #define PARAM_EMAIL_MAIN \
134    text { \
135       align: 0 0.5; \
136       min: 0 1; \
137       style: "email_style_main"; \
138    }
139
140 #define DESCRIPTION_EMAIL_MAIN_OTHERS \
141    description { state: "disabled" 0.0; \
142       inherit: "default" 0.0; \
143       text.style: "email_style_main_dim"; \
144    } \
145    description { state: "read" 0.0; \
146       inherit: "default" 0.0; \
147       text.style: "email_style_main_read"; \
148    } \
149    description { state: "read,disabled" 0.0; \
150       inherit: "default" 0.0; \
151       text.style: "email_style_main_read_dim"; \
152    } \
153    description { state: "selected" 0.0; \
154       inherit: "default" 0.0; \
155       text.style: "email_style_main_focus"; \
156    }
157
158 // email sub text
159 #define PARAM_EMAIL_SUB \
160    text { \
161       align: 0 0.5; \
162       min: 0 1; \
163       style: "email_style_sub"; \
164    }
165
166 #define DESCRIPTION_EMAIL_SUB_OTHERS \
167    description { state: "selected" 0.0; \
168       inherit: "default" 0.0; \
169       text.style: "email_style_sub_focus"; \
170    }
171
172 // email contents text
173 #define PARAM_EMAIL_COUNT \
174    color: GENLIST_EMAIL_COUNT_TEXT_UNREAD_COLOR; \
175    text { \
176       align: 0 0.5; \
177       min: 0 1; \
178       font: "Tizen:style=Bold"; \
179       size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
180       text_class: "tizen"; \
181    }
182
183 #define DESCRIPTION_EMAIL_COUNT_OTHERS \
184    description { state: "read" 0.0; \
185       inherit: "default" 0.0; \
186       color: GENLIST_EMAIL_COUNT_TEXT_READ_COLOR; \
187       text { \
188          align: 0 0.5; \
189          min: 0 1; \
190          font: "Tizen:style=Regular"; \
191          size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
192          text_class: "tizen"; \
193       } \
194    } \
195    description { state: "selected" 0.0; \
196       inherit: "default" 0.0; \
197       color: GENLIST_EMAIL_TEXT_FOCUS_COLOR; \
198       text { \
199          align: 0 0.5; \
200          min: 0 1; \
201          font: "Tizen:style=Regular"; \
202          size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
203          text_class: "tizen"; \
204       } \
205    }
206
207 // email contents text
208 #define PARAM_EMAIL_CONTENTS \
209    text { \
210       align: 0 0.5; \
211       min: 0 1; \
212       font: "Tizen:style=Regular"; \
213       style: "email_style_contents"; \
214    }
215
216 #define PARAM_EMAIL_CONTENTS_TIME \
217    text { \
218       align: 0 0.5; \
219       min: 0 1; \
220       font: "Tizen:style=Regular"; \
221       style: "email_style_contents_time"; \
222    }
223
224 #define DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS \
225    description { state: "selected" 0.0; \
226       inherit: "default" 0.0; \
227       text.style: "email_style_contents_time_focus"; \
228    }
229
230 #define DESCRIPTION_EMAIL_CONTENTS_OTHERS \
231    description { state: "selected" 0.0; \
232       inherit: "default" 0.0; \
233       text.style: "email_style_contents_focus"; \
234    }
235
236 #define GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( NAME, SIZE ) \
237          GENLIST_PART_SPACER(NAME, \
238             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.2", \
239                min: 0 SIZE; \
240                fixed: 0 1; \
241             )  \
242          )
243
244 #define GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( NAME, SIZE ) \
245          GENLIST_PART_SPACER(NAME, \
246             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.icon.5", "elm.text.2", \
247                min: 0 SIZE; \
248                fixed: 0 1; \
249             )  \
250          )
251
252 #define GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
253          min: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE; \
254          max: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE;
255
256 #define GENLIST_PART_ICON_EMAIL_CHECK_RADIO_L(NAME, LEFT) \
257    GENLIST_PART_ICON(NAME, \
258       GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
259          GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
260          fixed: 1 1; \
261       ) \
262    )
263
264 #define HEIGHT_EMAIL_MAIN         54
265 #define HEIGHT_EMAIL_SUB          42
266 #define HEIGHT_EMAIL_CONTENTS      38
267
268
269 #define GENLIST_PROGRAMS_EMAIL( TARGET ) \
270    programs { \
271       GENLIST_PROGRAM_DEFAULT( TARGET \
272          target: "bg"; \
273          target: "bg_clip"; \
274          target: "bottom_line"; \
275          target: "bottom_line2"; \
276          target: "bottom_line_clip"; \
277          target: "bg_reorder"; \
278          target: "elm.padding.left"; \
279          target: "elm.padding.right"; \
280       ) \
281       GENLIST_PROGRAM_DISABLED( TARGET \
282          target: "bg"; \
283          target: "bottom_line"; \
284          target: "bottom_line2"; \
285          target: "bg_reorder"; \
286       ) \
287       GENLIST_PROGRAM_FOCUS \
288       GENLIST_PROGRAM_SELECT( TARGET \
289          target: "bg"; \
290          target: "bottom_line"; \
291          target: "bottom_line2"; \
292          target: "bg_reorder"; \
293       ) \
294       GENLIST_PROGRAM_SOUND("bg") \
295       GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
296          target: "bg_clip"; \
297          target: "bg_reorder_clip"; \
298          target: "bottom_line_clip"; \
299          target: "elm.padding.left"; \
300          target: "elm.padding.right"; \
301       ) \
302       program { name: "unselected_target"; \
303          action: STATE_SET "default" 0.0; \
304          TARGET \
305       } \
306       program { name: "unselected_read"; \
307          signal: "elm,state,unselected"; \
308          source: "elm"; \
309          script { \
310             if (get_int(readed) == 1) \
311                run_program(PROGRAM:"go_read_target"); \
312             else \
313                run_program(PROGRAM:"unselected_target"); \
314          } \
315       } \
316       program { name: "go_read"; \
317          signal: "elm,state,read"; \
318          source: "*"; \
319          script { \
320            set_int(readed, 1); \
321            run_program(PROGRAM:"go_read_target"); \
322          } \
323       } \
324       program { name: "go_unread"; \
325          signal: "elm,state,unread"; \
326          source: "*"; \
327          script { \
328            set_int(readed, 0); \
329            run_program(PROGRAM:"go_unread_target"); \
330          } \
331       } \
332       program { name: "go_read_target"; \
333          action: STATE_SET "read" 0.0; \
334          TARGET \
335       } \
336       program { name: "go_unread_target"; \
337          action: STATE_SET "unread" 0.0; \
338          TARGET \
339       } \
340    }
341
342 // 2.2.3.5 (Email Style)
343    group { GENLIST_NAME("email.list/default")
344       GENLIST_PROLOG_NORMAL
345       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
346       data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch";
347
348       script {
349          public readed = 0;
350       }
351       parts {
352          GENLIST_PART_BG_NORMAL
353          GENLIST_PART_BASE
354          GENLIST_PART_BOTTOM_LINE
355          GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT)
356          GENLIST_PART_PADDING_RIGHT
357          GENLIST_PART_PADDING_TOP_SIZE( GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE )
358          GENLIST_PART_PADDING_BOTTOM_SIZE( GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE )
359          GENLIST_PART_COLORBAR
360
361          GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
362
363 // For Handling checkbox srolling issue we have increased the size of check box
364 // background to 64*64 though the check image is 45*45 as per GUI. These leaves 
365 // 9 pixel extra space before the check image and 10 pixel after the check image.
366 // So to adjust this extra space the padding is reduced from 16 to 6.
367 // This means padding will be 6 pixel and extra space before the checkbox will be 10
368 // So it will again get to 16 pixel as gap after the checkbox as per GUI
369          GENLIST_PART_SPACER("elm.padding.icon1.right",
370             description { state: "default" 0.0;
371                fixed: 1 0;
372                min: 6 0;
373                max: 6 -1;
374                align: 0 0.5;
375                rel1 {
376                   relative: 1 0;
377                   to_x: "elm.icon.1";
378                }
379                rel2 {
380                   relative: 1 1;
381                   to_x: "elm.icon.1";
382                }
383             }
384          )
385
386          GENLIST_PART_TEXTBLOCK("elm.text.1",
387             GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
388                PARAM_EMAIL_MAIN
389                min: 0 HEIGHT_EMAIL_MAIN;
390                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
391             )
392             DESCRIPTION_EMAIL_MAIN_OTHERS
393          )
394
395          // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
396          GENLIST_PART_TEXT("elm.text.4",
397             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
398                PARAM_EMAIL_COUNT
399                min: 45 HEIGHT_EMAIL_MAIN;
400                max: 45 HEIGHT_EMAIL_MAIN;
401                text.min: 1 0;
402                text.align: 0.5 0.65;
403                fixed: 1 1;
404                visible: 0;
405             )
406          )
407          // Virtual part for Maxmimum right X axis of TEXT
408          GENLIST_PART_SPACER("elm.text.limit",
409             GENLIST_DESCRIPTION_R("elm.icon.3",
410                min: 0 0;
411                max: 0 0;
412                fixed: 1 0;
413             )
414          )
415          GENLIST_PART_ICON("elm.icon.3",
416             GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
417                fixed: 1 0;
418             )
419          )
420          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
421          GENLIST_PART_ICON("elm.icon.4",
422             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
423                min: 45 45;
424                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
425                fixed: 1 0;
426             )
427          )
428          GENLIST_PART_ICON("elm.icon.4.touch",
429             GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
430                rel1.offset: -4 -7;
431                rel2.offset: 26 8;
432             )
433          )
434          GENLIST_PART_ICON("elm.icon.2",
435             GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
436                fixed: 1 0;
437             )
438          )
439          GENLIST_PART_TEXTBLOCK("elm.text.2",
440             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
441                PARAM_EMAIL_SUB
442                min: 0 HEIGHT_EMAIL_SUB;
443                fixed: 0 1;
444             )
445             DESCRIPTION_EMAIL_SUB_OTHERS
446          )
447          GENLIST_PART_TEXTBLOCK("elm.text.5",
448             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
449                PARAM_EMAIL_CONTENTS_TIME
450                GENLIST_PARAM_TEXT_LIMIT_RT
451                min: 0 HEIGHT_EMAIL_SUB;
452                fixed: 1 0;
453             )
454             DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS
455          )
456
457          GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
458
459          GENLIST_PART_TEXTBLOCK("elm.text.3",
460             GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
461                PARAM_EMAIL_CONTENTS
462                min: 0 HEIGHT_EMAIL_CONTENTS;
463             )
464             DESCRIPTION_EMAIL_CONTENTS_OTHERS
465          )
466          GENLIST_PART_FOCUS
467       }
468       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
469          target: "elm.text.2"; target: "elm.text.3";
470          target: "elm.text.4"; target: "elm.text.5";
471          target: "elm.swallow.colorbar";
472          target: "elm.icon.1";
473          target: "elm.icon.2"; target: "elm.icon.3";
474          target: "elm.icon.4"; target: "elm.icon.4.touch";
475       )
476       GENLIST_PROGRAM_SOUND("elm.icon.4.touch")
477       GENLIST_PROGRAM_SOUND("elm.text.1")
478       GENLIST_PROGRAM_SOUND("elm.text.2")
479       GENLIST_PROGRAM_SOUND("elm.text.3")
480       GENLIST_PROGRAM_SOUND("elm.text.4")
481       GENLIST_PROGRAM_SOUND("elm.text.5")
482    }
483
484 // email list with conversation text
485    group { GENLIST_NAME("email.list.conversation/default")
486       inherit: "elm/genlist/item/email.list/default";
487
488       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4 elm.text.5";
489       parts {
490          GENLIST_PART_TEXT("elm.text.4",
491             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
492                visible: 1;
493             )
494             DESCRIPTION_EMAIL_COUNT_OTHERS
495          )
496          // Virtual part for Maxmimum right X axis of TEXT
497          GENLIST_PART_SPACER("elm.text.limit",
498             GENLIST_DESCRIPTION_R("elm.icon.3",
499                min: 45 HEIGHT_EMAIL_MAIN;
500                max: 45 HEIGHT_EMAIL_MAIN;
501             )
502          )
503       }
504    }
505
506    // 2.2.3.13
507    // email outbox style
508    group { GENLIST_NAME("email.outbox/default")
509       GENLIST_PROLOG_NORMAL
510       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3";
511       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";
512
513       script {
514          public readed = 0;
515       }
516       parts {
517          GENLIST_PART_BG_NORMAL
518          GENLIST_PART_BASE
519          GENLIST_PART_BOTTOM_LINE
520          GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT)
521          GENLIST_PART_PADDING_RIGHT_EDIT
522          GENLIST_PART_PADDING_TOP_SIZE( GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE )
523          GENLIST_PART_PADDING_BOTTOM_SIZE( GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE )
524          GENLIST_PART_COLORBAR
525
526          GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
527
528 // For Handling checkbox srolling issue we have increased the size of check box
529 // background to 64*64 though the check image is 45*45 as per GUI. These leaves 
530 // 9 pixel extra space before the check image and 10 pixel after the check image.
531 // So to adjust this extra space the padding is reduced from 16 to 6.
532 // This means padding will be 6 pixel and extra space before the checkbox will be 10
533 // So it will again get to 16 pixel as gap after the checkbox as per GUI
534          GENLIST_PART_SPACER("elm.padding.icon1.right",
535             description { state: "default" 0.0;
536                fixed: 1 0;
537                min: 6 0;
538                max: 6 -1;
539                align: 0 0.5;
540                rel1 {
541                   relative: 1 0;
542                   to_x: "elm.icon.1";
543                }
544                rel2 {
545                   relative: 1 1;
546                   to_x: "elm.icon.1";
547                }
548             }
549          )
550
551          GENLIST_PART_TEXTBLOCK("elm.text.1",
552             GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
553                PARAM_EMAIL_MAIN
554                min: 0 HEIGHT_EMAIL_MAIN;
555                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
556             )
557             DESCRIPTION_EMAIL_MAIN_OTHERS
558          )
559          // FIXME: because script cannot be inherited, text.4 is defined here and can be inherited
560          GENLIST_PART_TEXT("elm.text.4",
561             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
562                PARAM_EMAIL_COUNT
563                min: 0 HEIGHT_EMAIL_MAIN;
564                max: 0 HEIGHT_EMAIL_MAIN;
565                text.min: 1 0;
566                text.align: 0.5 0.65;
567                fixed: 1 0;
568                visible: 0;
569             )
570          )
571          // Virtual part for Maxmimum right X axis of TEXT
572          GENLIST_PART_SPACER("elm.text.limit",
573             GENLIST_DESCRIPTION_R("elm.icon.3",
574                min: 0 0;
575                max: 0 0;
576                fixed: 1 0;
577             )
578          )
579          GENLIST_PART_ICON("elm.icon.3",
580             GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
581                fixed: 1 0;
582             )
583          )
584          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
585          GENLIST_PART_ICON("elm.icon.4",
586             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
587                min: 45 45;
588                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
589                fixed: 1 0;
590             )
591          )
592          GENLIST_PART_ICON("elm.icon.4.touch",
593             GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
594                rel1.offset: -4 -7;
595                rel2.offset: 26 8;
596             )
597          )
598
599          GENLIST_PART_ICON("elm.icon.2",
600             GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
601                fixed: 1 1;
602             )
603          )
604          GENLIST_PART_TEXTBLOCK("elm.text.2",
605             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.padding.icon5.left", "elm.text.1",
606                PARAM_EMAIL_SUB
607                min: 0 HEIGHT_EMAIL_SUB;
608                fixed: 0 1;
609             )
610             DESCRIPTION_EMAIL_SUB_OTHERS
611          )
612
613          GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
614
615          GENLIST_PART_TEXTBLOCK("elm.text.3",
616             GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.icon5.left", "elm.padding.text2.bottom", "elm.padding.bottom",
617                PARAM_EMAIL_CONTENTS
618                min: 0 HEIGHT_EMAIL_CONTENTS;
619             )
620             DESCRIPTION_EMAIL_CONTENTS_OTHERS
621          )
622          GENLIST_PART_PADDING_R("elm.padding.icon5.left", "elm.icon.5")
623          GENLIST_PART_ICON("elm.icon.5",
624             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.text.1", "elm.padding.bottom",
625                min: 180 74;
626                max: 180 74;
627                fixed: 1 1;
628             )
629          )
630          GENLIST_PART_FOCUS
631       }
632       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
633          target: "elm.text.4";
634          target: "elm.swallow.colorbar"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3";
635          target: "elm.icon.4"; target: "elm.icon.5";
636       )
637    }
638
639 // email outbox style with conversation
640    group { GENLIST_NAME("email.outbox.conversation/default")
641       inherit: "elm/genlist/item/email.outbox/default";
642
643       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4";
644
645       parts {
646          GENLIST_PART_TEXT("elm.text.4",
647             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.icon.5",
648                min: 45 HEIGHT_EMAIL_MAIN;
649                max: 45 HEIGHT_EMAIL_MAIN;
650                visible: 1;
651             )
652             DESCRIPTION_EMAIL_COUNT_OTHERS
653          )
654          GENLIST_PART_SPACER("elm.text.limit",
655             GENLIST_DESCRIPTION_R("elm.icon.3",
656                min: 45 HEIGHT_EMAIL_MAIN;
657                max: 45 HEIGHT_EMAIL_MAIN;
658             )
659          )
660       }
661    }
662