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