[Genlist] Fix entry dialouge bg programs
[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 GENLIST_LIST_READ_BG_COLOR                   223 221 215 255
62 #define GENLIST_LIST_UNREAD_BG_COLOR                248 246 239 255
63
64 #define STYLE_TAG \
65       tag:  "br" "\n";\
66       tag:  "ps" "ps";\
67       tag:  "tab" "\t";\
68       tag:  "b" "+ font=Tizen:style=Bold";
69
70 #define STYLE_TAG_MATCH_EMAIL \
71       tag:  "match" GENLIST_EMAIL_MATCH_TAG_COLOR;
72
73 #define STYLE_TAG_MATCH_EMAIL_FOCUS \
74       tag:  "match" GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE;
75
76
77    styles {
78       style { name: "email_style_main";
79          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";
80          STYLE_TAG
81          STYLE_TAG_MATCH_EMAIL
82       }
83       style { name: "email_style_main_dim";
84          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";
85          STYLE_TAG
86          STYLE_TAG_MATCH_EMAIL
87       }
88       style { name: "email_style_main_read";
89          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";
90          STYLE_TAG
91          STYLE_TAG_MATCH_EMAIL
92       }
93       style { name: "email_style_main_read_dim";
94          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";
95          STYLE_TAG
96          STYLE_TAG_MATCH_EMAIL
97       }
98       style { name: "email_style_main_focus";
99          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";
100          STYLE_TAG
101          STYLE_TAG_MATCH_EMAIL_FOCUS
102       }
103       style { name: "email_style_sub";
104          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";
105          STYLE_TAG
106          STYLE_TAG_MATCH_EMAIL
107       }
108       style { name: "email_style_sub_focus";
109          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";
110          STYLE_TAG
111          STYLE_TAG_MATCH_EMAIL_FOCUS
112       }
113       style { name: "email_style_contents";
114          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";
115          STYLE_TAG
116          STYLE_TAG_MATCH_EMAIL
117       }
118       style { name: "email_style_contents_time";
119          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";
120          STYLE_TAG
121          STYLE_TAG_MATCH_EMAIL
122       }
123       style { name: "email_style_contents_time_focus";
124          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";
125          STYLE_TAG
126          STYLE_TAG_MATCH_EMAIL_FOCUS
127       }
128       style { name: "email_style_contents_focus";
129          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";
130          STYLE_TAG
131          STYLE_TAG_MATCH_EMAIL_FOCUS
132       }
133    }
134
135 // email main text
136 #define PARAM_EMAIL_MAIN \
137    text { \
138       align: 0 0.5; \
139       min: 0 1; \
140       style: "email_style_main"; \
141    }
142
143 #define DESCRIPTION_EMAIL_MAIN_OTHERS \
144    description { state: "disabled" 0.0; \
145       inherit: "default" 0.0; \
146       text.style: "email_style_main_dim"; \
147    } \
148    description { state: "read" 0.0; \
149       inherit: "default" 0.0; \
150       text.style: "email_style_main_read"; \
151    } \
152    description { state: "read,disabled" 0.0; \
153       inherit: "default" 0.0; \
154       text.style: "email_style_main_read_dim"; \
155    } \
156    description { state: "selected" 0.0; \
157       inherit: "default" 0.0; \
158       text.style: "email_style_main_focus"; \
159    }
160
161 // email sub text
162 #define PARAM_EMAIL_SUB \
163    text { \
164       align: 0 0.5; \
165       min: 0 1; \
166       style: "email_style_sub"; \
167    }
168
169 #define DESCRIPTION_EMAIL_SUB_OTHERS \
170    description { state: "selected" 0.0; \
171       inherit: "default" 0.0; \
172       text.style: "email_style_sub_focus"; \
173    }
174
175 // email contents text
176 #define PARAM_EMAIL_COUNT \
177    color: GENLIST_EMAIL_COUNT_TEXT_UNREAD_COLOR; \
178    text { \
179       align: 0 0.5; \
180       min: 0 1; \
181       font: "Tizen:style=Bold"; \
182       size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
183       text_class: "tizen"; \
184    }
185
186 #define DESCRIPTION_EMAIL_COUNT_OTHERS \
187    description { state: "read" 0.0; \
188       inherit: "default" 0.0; \
189       color: GENLIST_EMAIL_COUNT_TEXT_READ_COLOR; \
190       text { \
191          align: 0 0.5; \
192          min: 0 1; \
193          font: "Tizen:style=Regular"; \
194          size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
195          text_class: "tizen"; \
196       } \
197    } \
198    description { state: "selected" 0.0; \
199       inherit: "default" 0.0; \
200       color: GENLIST_EMAIL_TEXT_FOCUS_COLOR; \
201       text { \
202          align: 0 0.5; \
203          min: 0 1; \
204          font: "Tizen:style=Regular"; \
205          size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
206          text_class: "tizen"; \
207       } \
208    }
209
210 // email contents text
211 #define PARAM_EMAIL_CONTENTS \
212    text { \
213       align: 0 0.5; \
214       min: 0 1; \
215       font: "Tizen:style=Regular"; \
216       style: "email_style_contents"; \
217    }
218
219 #define PARAM_EMAIL_CONTENTS_TIME \
220    text { \
221       align: 0 0.5; \
222       min: 0 1; \
223       font: "Tizen:style=Regular"; \
224       style: "email_style_contents_time"; \
225    }
226
227 #define DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS \
228    description { state: "selected" 0.0; \
229       inherit: "default" 0.0; \
230       text.style: "email_style_contents_time_focus"; \
231    }
232
233 #define DESCRIPTION_EMAIL_CONTENTS_OTHERS \
234    description { state: "selected" 0.0; \
235       inherit: "default" 0.0; \
236       text.style: "email_style_contents_focus"; \
237    }
238
239 #define GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( NAME, SIZE ) \
240          GENLIST_PART_SPACER(NAME, \
241             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.2", \
242                min: 0 SIZE; \
243                fixed: 0 1; \
244             )  \
245          )
246
247 #define GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( NAME, SIZE ) \
248          GENLIST_PART_SPACER(NAME, \
249             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.icon.5", "elm.text.2", \
250                min: 0 SIZE; \
251                fixed: 0 1; \
252             )  \
253          )
254
255 #define GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
256          min: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE; \
257          max: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE;
258
259 #define GENLIST_PART_ICON_EMAIL_CHECK_RADIO_L(NAME, LEFT) \
260    GENLIST_PART_ICON(NAME, \
261       GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
262          GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
263          fixed: 1 1; \
264       ) \
265    )
266
267 #define HEIGHT_EMAIL_MAIN         54
268 #define HEIGHT_EMAIL_SUB          42
269 #define HEIGHT_EMAIL_CONTENTS      38
270
271
272 #define GENLIST_PROGRAMS_EMAIL( TARGET ) \
273    programs { \
274       GENLIST_PROGRAM_DEFAULT( TARGET \
275          target: "bg"; \
276          target: "bg_clip"; \
277          target: "bottom_line"; \
278          target: "bottom_line2"; \
279          target: "bottom_line_clip"; \
280          target: "bg_reorder"; \
281          target: "elm.padding.left"; \
282          target: "elm.padding.right"; \
283       ) \
284       GENLIST_PROGRAM_DISABLED( TARGET \
285          target: "bg"; \
286          target: "bottom_line"; \
287          target: "bottom_line2"; \
288          target: "bg_reorder"; \
289       ) \
290       GENLIST_PROGRAM_FOCUS \
291       GENLIST_PROGRAM_SELECT( TARGET \
292          target: "bg"; \
293          target: "bottom_line"; \
294          target: "bottom_line2"; \
295          target: "bg_reorder"; \
296       ) \
297       GENLIST_PROGRAM_SOUND("bg") \
298       GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
299          target: "bg_clip"; \
300          target: "bg_reorder_clip"; \
301          target: "bottom_line_clip"; \
302          target: "elm.padding.left"; \
303          target: "elm.padding.right"; \
304       ) \
305       program { name: "unselected_target"; \
306          action: STATE_SET "default" 0.0; \
307          TARGET \
308       } \
309       program { name: "unselected_read"; \
310          signal: "elm,state,unselected"; \
311          source: "elm"; \
312          script { \
313             if (get_int(readed) == 1) \
314                run_program(PROGRAM:"go_read_target"); \
315             else \
316                run_program(PROGRAM:"unselected_target"); \
317          } \
318       } \
319       program { name: "go_read"; \
320          signal: "elm,state,read"; \
321          source: "*"; \
322          script { \
323            set_int(readed, 1); \
324            run_program(PROGRAM:"go_read_target"); \
325          } \
326       } \
327       program { name: "go_unread"; \
328          signal: "elm,state,unread"; \
329          source: "*"; \
330          script { \
331            set_int(readed, 0); \
332            run_program(PROGRAM:"go_unread_target"); \
333          } \
334       } \
335       program { name: "go_read_target"; \
336          action: STATE_SET "read" 0.0; \
337          target: "bg"; \
338          TARGET \
339       } \
340       program { name: "go_unread_target"; \
341          action: STATE_SET "unread" 0.0; \
342          target: "bg"; \
343          TARGET \
344       } \
345    }
346
347
348 #define GENLIST_PART_BG_EMAIL_NORMAL \
349       GENLIST_PART_RECT("bg_clip", \
350          mouse_events: 0; \
351          description { state: "default" 0.0; \
352             visible: 1; \
353             color: 255 255 255 255; \
354          } \
355          description { state: "decorate" 0.0; \
356             inherit: "default" 0.0; \
357             visible: 0; \
358          } \
359          description { state: "reorder" 0.0; \
360             inherit: "default" 0.0; \
361             visible: 0; \
362          } \
363          description { state: "decorate_reorder" 0.0; \
364             inherit: "default" 0.0; \
365             visible: 0; \
366          } \
367       ) \
368       GENLIST_PART_RECT("bg_reorder_clip", \
369          mouse_events: 0; \
370          description { state: "default" 0.0; \
371             visible: 0; \
372          } \
373          description { state: "reorder" 0.0; \
374             inherit: "default" 0.0; \
375             visible: 1; \
376             color: 255 255 255 255; \
377          } \
378          description { state: "decorate_reorder" 0.0; \
379             inherit: "default" 0.0; \
380             visible: 0; \
381          } \
382          description { state: "decorate" 0.0; \
383             inherit: "default" 0.0; \
384             visible: 0; \
385          } \
386          description { state: "reorder_flip" 0.0; \
387             inherit: "default" 0.0; \
388             visible: 0; \
389          } \
390       ) \
391       GENLIST_PART_RECT("bg",  \
392          clip_to: "bg_clip"; \
393          description { state: "default" 0.0; \
394             color: GENLIST_LIST_BG_COLOR; \
395          } \
396          description { state: "selected" 0.0; \
397             inherit: "default" 0.0; \
398             color: GENLIST_LIST_PRESS_COLOR; \
399          } \
400          description { state: "disabled" 0.0; \
401             inherit: "default" 0.0; \
402             color: GENLIST_LIST_DIM_COLOR; \
403          } \
404           description { state: "read" 0.0; \
405             inherit: "default" 0.0; \
406             color: GENLIST_LIST_READ_BG_COLOR; \
407          } \
408           description { state: "unread" 0.0; \
409             inherit: "default" 0.0; \
410             color: GENLIST_LIST_UNREAD_BG_COLOR; \
411          } \
412       ) \
413       GENLIST_PART_SPACER("bg_reorder_left", \
414          description { state: "default" 0.0; \
415             min: 16 0; \
416             max: 16 -1; \
417             fixed: 1 0; \
418             align: 0 0.5; \
419             rel2.relative: 0 1; \
420          } \
421       ) \
422       GENLIST_PART_SPACER("bg_reorder_right", \
423          description { state: "default" 0.0; \
424             min: 16 0; \
425             max: 16 -1; \
426             fixed: 1 0; \
427             align: 1.0 0.5; \
428             rel1.relative: 1 0; \
429          } \
430       ) \
431       GENLIST_PART_IMAGE("bg_reorder", \
432          clip_to: "bg_reorder_clip"; \
433          GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
434             image { \
435                normal: "00_list_group_bg.png"; \
436                border: 17 17 8 8; \
437                border_scale: 1; \
438             } \
439          ) \
440          description { state: "selected" 0.0; \
441             inherit: "default"; \
442             image { \
443                normal: "00_list_group_bg_press.png"; \
444                border: 17 17 8 8; \
445                border_scale: 1; \
446             } \
447          } \
448          description { state: "flipped" 0.0; \
449             inherit: "default"; \
450             visible: 0; \
451          } \
452       )
453
454 // 2.2.3.5 (Email Style)
455    group { GENLIST_NAME("email.list/default")
456       GENLIST_PROLOG_NORMAL
457       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
458       data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch";
459
460       script {
461          public readed = 0;
462       }
463       parts {
464          GENLIST_PART_BG_EMAIL_NORMAL
465          GENLIST_PART_BASE
466          GENLIST_PART_BOTTOM_LINE
467          GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT)
468          GENLIST_PART_PADDING_RIGHT
469          GENLIST_PART_PADDING_TOP_SIZE( GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE )
470          GENLIST_PART_PADDING_BOTTOM_SIZE( GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE )
471          GENLIST_PART_COLORBAR
472
473          GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
474
475 // For Handling checkbox srolling issue we have increased the size of check box
476 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
477 // 9 pixel extra space before the check image and 10 pixel after the check image.
478 // So to adjust this extra space the padding is reduced from 16 to 6.
479 // This means padding will be 6 pixel and extra space before the checkbox will be 10
480 // So it will again get to 16 pixel as gap after the checkbox as per GUI
481          GENLIST_PART_SPACER("elm.padding.icon1.right",
482             description { state: "default" 0.0;
483                fixed: 1 0;
484                min: 6 0;
485                max: 6 -1;
486                align: 0 0.5;
487                rel1 {
488                   relative: 1 0;
489                   to_x: "elm.icon.1";
490                }
491                rel2 {
492                   relative: 1 1;
493                   to_x: "elm.icon.1";
494                }
495             }
496          )
497
498          GENLIST_PART_TEXTBLOCK("elm.text.1",
499             GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
500                PARAM_EMAIL_MAIN
501                min: 0 HEIGHT_EMAIL_MAIN;
502                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
503             )
504             DESCRIPTION_EMAIL_MAIN_OTHERS
505          )
506
507          // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
508          GENLIST_PART_TEXT("elm.text.4",
509             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
510                PARAM_EMAIL_COUNT
511                min: 45 HEIGHT_EMAIL_MAIN;
512                max: 45 HEIGHT_EMAIL_MAIN;
513                text.min: 1 0;
514                text.align: 0.5 0.65;
515                fixed: 1 1;
516                visible: 0;
517             )
518          )
519          // Virtual part for Maxmimum right X axis of TEXT
520          GENLIST_PART_SPACER("elm.text.limit",
521             GENLIST_DESCRIPTION_R("elm.icon.3",
522                min: 0 0;
523                max: 0 0;
524                fixed: 1 0;
525             )
526          )
527          GENLIST_PART_ICON("elm.icon.3",
528             GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
529                fixed: 1 0;
530             )
531          )
532          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
533          GENLIST_PART_ICON("elm.icon.4",
534             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
535                min: 45 45;
536                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
537                fixed: 1 0;
538             )
539          )
540          GENLIST_PART_ICON("elm.icon.4.touch",
541             GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
542                rel1.offset: -4 -7;
543                rel2.offset: 26 8;
544             )
545          )
546          GENLIST_PART_ICON("elm.icon.2",
547             GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
548                fixed: 1 0;
549             )
550          )
551          GENLIST_PART_TEXTBLOCK("elm.text.2",
552             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
553                PARAM_EMAIL_SUB
554                min: 0 HEIGHT_EMAIL_SUB;
555                fixed: 0 1;
556             )
557             DESCRIPTION_EMAIL_SUB_OTHERS
558          )
559          GENLIST_PART_TEXTBLOCK("elm.text.5",
560             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
561                PARAM_EMAIL_CONTENTS_TIME
562                GENLIST_PARAM_TEXT_LIMIT_RT
563                min: 0 HEIGHT_EMAIL_SUB;
564                fixed: 1 0;
565             )
566             DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS
567          )
568
569          GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
570
571          GENLIST_PART_TEXTBLOCK("elm.text.3",
572             GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
573                PARAM_EMAIL_CONTENTS
574                min: 0 HEIGHT_EMAIL_CONTENTS;
575             )
576             DESCRIPTION_EMAIL_CONTENTS_OTHERS
577          )
578          GENLIST_PART_FOCUS
579       }
580       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
581          target: "elm.text.2"; target: "elm.text.3";
582          target: "elm.text.4"; target: "elm.text.5";
583          target: "elm.swallow.colorbar";
584          target: "elm.icon.1";
585          target: "elm.icon.2"; target: "elm.icon.3";
586          target: "elm.icon.4"; target: "elm.icon.4.touch";
587       )
588       GENLIST_PROGRAM_SOUND("elm.icon.4.touch")
589       GENLIST_PROGRAM_SOUND("elm.text.1")
590       GENLIST_PROGRAM_SOUND("elm.text.2")
591       GENLIST_PROGRAM_SOUND("elm.text.3")
592       GENLIST_PROGRAM_SOUND("elm.text.4")
593       GENLIST_PROGRAM_SOUND("elm.text.5")
594    }
595
596 // email list with conversation text
597    group { GENLIST_NAME("email.list.conversation/default")
598       inherit: "elm/genlist/item/email.list/default";
599
600       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4 elm.text.5";
601       parts {
602          GENLIST_PART_TEXT("elm.text.4",
603             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
604                visible: 1;
605             )
606             DESCRIPTION_EMAIL_COUNT_OTHERS
607          )
608          // Virtual part for Maxmimum right X axis of TEXT
609          GENLIST_PART_SPACER("elm.text.limit",
610             GENLIST_DESCRIPTION_R("elm.icon.3",
611                min: 45 HEIGHT_EMAIL_MAIN;
612                max: 45 HEIGHT_EMAIL_MAIN;
613             )
614          )
615       }
616    }
617
618    // 2.2.3.13
619    // email outbox style
620    group { GENLIST_NAME("email.outbox/default")
621       GENLIST_PROLOG_NORMAL
622       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3";
623       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";
624
625       script {
626          public readed = 0;
627       }
628       parts {
629          GENLIST_PART_BG_EMAIL_NORMAL
630          GENLIST_PART_BASE
631          GENLIST_PART_BOTTOM_LINE
632          GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT)
633          GENLIST_PART_PADDING_RIGHT_EDIT
634          GENLIST_PART_PADDING_TOP_SIZE( GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE )
635          GENLIST_PART_PADDING_BOTTOM_SIZE( GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE )
636          GENLIST_PART_COLORBAR
637
638          GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
639
640 // For Handling checkbox srolling issue we have increased the size of check box
641 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
642 // 9 pixel extra space before the check image and 10 pixel after the check image.
643 // So to adjust this extra space the padding is reduced from 16 to 6.
644 // This means padding will be 6 pixel and extra space before the checkbox will be 10
645 // So it will again get to 16 pixel as gap after the checkbox as per GUI
646          GENLIST_PART_SPACER("elm.padding.icon1.right",
647             description { state: "default" 0.0;
648                fixed: 1 0;
649                min: 6 0;
650                max: 6 -1;
651                align: 0 0.5;
652                rel1 {
653                   relative: 1 0;
654                   to_x: "elm.icon.1";
655                }
656                rel2 {
657                   relative: 1 1;
658                   to_x: "elm.icon.1";
659                }
660             }
661          )
662
663          GENLIST_PART_TEXTBLOCK("elm.text.1",
664             GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
665                PARAM_EMAIL_MAIN
666                min: 0 HEIGHT_EMAIL_MAIN;
667                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
668             )
669             DESCRIPTION_EMAIL_MAIN_OTHERS
670          )
671          // FIXME: because script cannot be inherited, text.4 is defined here and can be inherited
672          GENLIST_PART_TEXT("elm.text.4",
673             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
674                PARAM_EMAIL_COUNT
675                min: 0 HEIGHT_EMAIL_MAIN;
676                max: 0 HEIGHT_EMAIL_MAIN;
677                text.min: 1 0;
678                text.align: 0.5 0.65;
679                fixed: 1 0;
680                visible: 0;
681             )
682          )
683          // Virtual part for Maxmimum right X axis of TEXT
684          GENLIST_PART_SPACER("elm.text.limit",
685             GENLIST_DESCRIPTION_R("elm.icon.3",
686                min: 0 0;
687                max: 0 0;
688                fixed: 1 0;
689             )
690          )
691          GENLIST_PART_ICON("elm.icon.3",
692             GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
693                fixed: 1 0;
694             )
695          )
696          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
697          GENLIST_PART_ICON("elm.icon.4",
698             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
699                min: 45 45;
700                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
701                fixed: 1 0;
702             )
703          )
704          GENLIST_PART_ICON("elm.icon.4.touch",
705             GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
706                rel1.offset: -4 -7;
707                rel2.offset: 26 8;
708             )
709          )
710
711          GENLIST_PART_ICON("elm.icon.2",
712             GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
713                fixed: 1 1;
714             )
715          )
716          GENLIST_PART_TEXTBLOCK("elm.text.2",
717             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.padding.icon5.left", "elm.text.1",
718                PARAM_EMAIL_SUB
719                min: 0 HEIGHT_EMAIL_SUB;
720                fixed: 0 1;
721             )
722             DESCRIPTION_EMAIL_SUB_OTHERS
723          )
724
725          GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
726
727          GENLIST_PART_TEXTBLOCK("elm.text.3",
728             GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.icon5.left", "elm.padding.text2.bottom", "elm.padding.bottom",
729                PARAM_EMAIL_CONTENTS
730                min: 0 HEIGHT_EMAIL_CONTENTS;
731             )
732             DESCRIPTION_EMAIL_CONTENTS_OTHERS
733          )
734          GENLIST_PART_PADDING_R("elm.padding.icon5.left", "elm.icon.5")
735          GENLIST_PART_ICON("elm.icon.5",
736             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.text.1", "elm.padding.bottom",
737                min: 180 74;
738                max: 180 74;
739                fixed: 1 1;
740             )
741          )
742          GENLIST_PART_FOCUS
743       }
744       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
745          target: "elm.text.4";
746          target: "elm.swallow.colorbar"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3";
747          target: "elm.icon.4"; target: "elm.icon.5";
748       )
749    }
750
751 // email outbox style with conversation
752    group { GENLIST_NAME("email.outbox.conversation/default")
753       inherit: "elm/genlist/item/email.outbox/default";
754
755       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4";
756
757       parts {
758          GENLIST_PART_TEXT("elm.text.4",
759             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.icon.5",
760                min: 45 HEIGHT_EMAIL_MAIN;
761                max: 45 HEIGHT_EMAIL_MAIN;
762                visible: 1;
763             )
764             DESCRIPTION_EMAIL_COUNT_OTHERS
765          )
766          GENLIST_PART_SPACER("elm.text.limit",
767             GENLIST_DESCRIPTION_R("elm.icon.3",
768                min: 45 HEIGHT_EMAIL_MAIN;
769                max: 45 HEIGHT_EMAIL_MAIN;
770             )
771          )
772       }
773    }
774
775 // FIXME: This is temporary style for test purpose
776 // This style has all widgets by itself
777    group { GENLIST_NAME("email.list.test/default")
778       GENLIST_PROLOG_NORMAL
779       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
780       data.item: "contents" "elm.swallow.colorbar elm.check.touch elm.icon.4.touch";
781
782       images {
783          image: "00_check_bg.png" COMP;
784          image: "00_check_dim_bg.png" COMP;
785          image: "00_check_activated_dim.png" COMP;
786          image: "00_check_activated.png" COMP;
787          image: "00_check_press_bg.png" COMP;
788          image: "00_check_press.png" COMP;
789       }
790
791       script {
792          public readed = 0;
793       }
794       parts {
795          GENLIST_PART_BG_NORMAL
796          GENLIST_PART_BASE
797          GENLIST_PART_BOTTOM_LINE
798          GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT)
799          GENLIST_PART_PADDING_RIGHT
800          GENLIST_PART_PADDING_TOP_SIZE( GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE )
801          GENLIST_PART_PADDING_BOTTOM_SIZE( GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE )
802          GENLIST_PART_COLORBAR
803
804          GENLIST_PART_IMAGE("elm.check.bg",
805             mouse_events: 0;
806             GENLIST_DESCRIPTION_L("elm.padding.left",
807                image.normal: "00_check_bg.png";
808                fill.smooth : 0;
809             )
810             description { state: "default" 0.0;
811                min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
812                max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
813                fixed: 1 1;
814                image.normal: "00_check_bg.png";
815                fill.smooth : 0;
816             }
817             description { state: "pressed" 0.0;
818                inherit: "default" 0.0;
819                image.normal: "00_check_press_bg.png";
820             }
821             description { state: "disabled" 0.0;
822                inherit: "default" 0.0;
823                image.normal: "00_check_dim_bg.png";
824             }
825          )
826          GENLIST_PART_IMAGE("elm.check",
827             mouse_events: 0;
828             GENLIST_DESCRIPTION_ENVELOP("elm.check.bg",
829                visible: 0;
830                image.normal: "00_check_activated.png";
831             )
832             description { state: "visible" 0.0;
833                inherit: "default" 0.0;
834                visible: 1;
835             }
836             description { state: "dim" 0.0;
837                inherit: "default" 0.0;
838                visible: 1;
839                image.normal: "00_check_activated_dim.png";
840             }
841             description { state: "pressed" 0.0;
842                inherit: "default" 0.0;
843                visible: 1;
844                image.normal: "00_check_press.png";
845             }
846          )
847
848
849 // For Handling checkbox srolling issue we have increased the size of check box
850 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
851 // 9 pixel extra space before the check image and 10 pixel after the check image.
852 // So to adjust this extra space the padding is reduced from 16 to 6.
853 // This means padding will be 6 pixel and extra space before the checkbox will be 10
854 // So it will again get to 16 pixel as gap after the checkbox as per GUI
855          GENLIST_PART_SPACER("elm.padding.icon1.right",
856             description { state: "default" 0.0;
857                fixed: 1 0;
858                min: 6 0;
859                max: 6 -1;
860                align: 0 0.5;
861                rel1 {
862                   relative: 1 0;
863                   to_x: "elm.check";
864                }
865                rel2 {
866                   relative: 1 1;
867                   to_x: "elm.check";
868                }
869             }
870          )
871
872          GENLIST_PART_TEXTBLOCK("elm.text.1",
873             GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
874                PARAM_EMAIL_MAIN
875                min: 0 HEIGHT_EMAIL_MAIN;
876                fixed: 1 1; align: 0 0; text.max: 1 0;  // This limits text growing.
877             )
878             DESCRIPTION_EMAIL_MAIN_OTHERS
879          )
880
881          // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
882          GENLIST_PART_TEXT("elm.text.4",
883             GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
884                PARAM_EMAIL_COUNT
885                min: 45 HEIGHT_EMAIL_MAIN;
886                max: 45 HEIGHT_EMAIL_MAIN;
887                text.min: 1 0;
888                text.align: 0.5 0.65;
889                fixed: 1 1;
890                visible: 0;
891             )
892          )
893          // Virtual part for Maxmimum right X axis of TEXT
894          GENLIST_PART_SPACER("elm.text.limit",
895             GENLIST_DESCRIPTION_R("elm.icon.3",
896                min: 0 0;
897                max: 0 0;
898                fixed: 1 0;
899             )
900          )
901          GENLIST_PART_IMAGE("elm.icon.3",
902             GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
903                fixed: 1 0;
904                min: 0 0;
905                max: 0 0;
906                image.normal: "00_icon_favorite_on_45x45.png";
907                visible: 0;
908             )
909             description { state: "visible" 0.0;
910                inherit: "default" 0.0;
911                min: 45 45;
912                visible: 1;
913             }
914          )
915          GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
916          GENLIST_PART_IMAGE("elm.icon.4",
917             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
918                max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
919                min: 0 0;
920                max: 0 0;
921                fixed: 1 0;
922                image.normal: "00_icon_favorite_off_45x45.png";
923                visible: 0;
924             )
925             description { state: "visible" 0.0;
926                inherit: "default" 0.0;
927                min: 45 45;
928                visible: 1;
929             }
930             description { state: "enable" 0.0;
931                inherit: "default" 0.0;
932                image.normal: "00_icon_favorite_on_45x45.png";
933                min: 45 45;
934                visible: 1;
935             }
936          )
937          GENLIST_PART_ICON("elm.icon.4.touch",
938             GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
939                rel1.offset: -4 -7;
940                rel2.offset: 26 8;
941             )
942          )
943          GENLIST_PART_IMAGE("elm.icon.2",
944             GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
945                min: 0 0;
946                max: 0 0;
947                fixed: 1 0;
948                image.normal: "00_icon_favorite_off_45x45.png";
949                visible: 0;
950             )
951             description { state: "visible" 0.0;
952                inherit: "default" 0.0;
953                min: 45 45;
954                visible: 1;
955             }
956          )
957          GENLIST_PART_TEXTBLOCK("elm.text.2",
958             GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
959                PARAM_EMAIL_SUB
960                min: 0 HEIGHT_EMAIL_SUB;
961                fixed: 0 1;
962             )
963             DESCRIPTION_EMAIL_SUB_OTHERS
964          )
965          GENLIST_PART_TEXTBLOCK("elm.text.5",
966             GENLIST_DESCRIPTION_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
967                PARAM_EMAIL_CONTENTS_TIME
968                GENLIST_PARAM_TEXT_LIMIT_RT
969                min: 0 HEIGHT_EMAIL_SUB;
970                fixed: 1 0;
971             )
972             DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS
973          )
974
975          GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
976
977          GENLIST_PART_TEXTBLOCK("elm.text.3",
978             GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
979                PARAM_EMAIL_CONTENTS
980                min: 0 HEIGHT_EMAIL_CONTENTS;
981             )
982             DESCRIPTION_EMAIL_CONTENTS_OTHERS
983          )
984          GENLIST_PART_ICON("elm.check.touch",
985             GENLIST_DESCRIPTION_ENVELOP("elm.check",
986             )
987          )
988          GENLIST_PART_FOCUS
989       }
990       GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
991          target: "elm.text.2"; target: "elm.text.3";
992          target: "elm.text.4"; target: "elm.text.5";
993          target: "elm.swallow.colorbar";
994          target: "elm.icon.4.touch";
995          target: "elm.check.touch";
996       )
997       program { name: "check_show";
998          signal: "elm,state,check,show";
999          source: "*";
1000          action: STATE_SET "visible" 0.0;
1001          target: "elm.check";
1002       }
1003       program { name: "check_hide";
1004          signal: "elm,state,check,hide";
1005          source: "*";
1006          action: STATE_SET "default" 0.0;
1007          target: "elm.check";
1008       }
1009       program { name: "icon2_show";
1010          signal: "elm,state,icon2,show";
1011          source: "*";
1012          action: STATE_SET "visible" 0.0;
1013          target: "elm.icon.2";
1014       }
1015       program { name: "icon3_show";
1016          signal: "elm,state,icon3,show";
1017          source: "*";
1018          action: STATE_SET "visible" 0.0;
1019          target: "elm.icon.3";
1020       }
1021       program { name: "icon4_show";
1022          signal: "elm,state,icon4,show";
1023          source: "*";
1024          action: STATE_SET "visible" 0.0;
1025          target: "elm.icon.4";
1026       }
1027       program { name: "icon4_enable";
1028          signal: "elm,state,icon4,enable";
1029          source: "*";
1030          action: STATE_SET "enable" 0.0;
1031          target: "elm.icon.4";
1032       }
1033       program { name: "icon4_disable";
1034          signal: "elm,state,icon4,disable";
1035          source: "*";
1036          action: STATE_SET "visible" 0.0;
1037          target: "elm.icon.4";
1038       }
1039       GENLIST_PROGRAM_SOUND("elm.icon.4.touch")
1040       GENLIST_PROGRAM_SOUND("elm.check.touch")
1041       GENLIST_PROGRAM_SOUND("elm.text.1")
1042       GENLIST_PROGRAM_SOUND("elm.text.2")
1043       GENLIST_PROGRAM_SOUND("elm.text.3")
1044       GENLIST_PROGRAM_SOUND("elm.text.4")
1045       GENLIST_PROGRAM_SOUND("elm.text.5")
1046    }