2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
9 * 1. Redistributions of source code must retain the above copyright notice, this
10 * list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 // -------------------------------------------------------------------
28 // Email Style -------------------------------------------------------
29 // -------------------------------------------------------------------
30 // For Handling checkbox srolling issue we have increased the size of check box
31 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
32 // 9 pixel extra space before the check image and 10 pixel after the check image.
33 // So to adjust this extra space the padding is reduced from 19 to 10.
34 // This means padding will be 10 pixel and extra space before the checkbox will be 9
35 // So it will again get to 19 pixel as gap before the checkbox as per GUI
38 #define GENLIST_EMAIL_PADDING_SIZE_LEFT 10
39 #define GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE 8
40 #define GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE 8
41 #define GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM 3
42 #define GENLIST_EMAIL_PADDING_SIZE_DEFAULT 10
44 #define GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE 45
46 #define GENLIST_EMAIL_MAIN_TEXT_SIZE 38
47 #define GENLIST_EMAIL_SUB_TEXT_SIZE 30
48 #define GENLIST_EMAIL_COUNT_TEXT_SIZE 28
49 #define GENLIST_EMAIL_CONTENTS_TEXT_SIZE 26
50 #define GENLIST_EMAIL_DATE_TEXT_SIZE 24
56 tag: "b" "+ font_weight=Bold";
58 #define STYLE_TAG_MATCH_EMAIL \
59 tag: "match" GENLIST_EMAIL_MATCH_TAG_COLOR;
61 #define STYLE_TAG_MATCH_EMAIL_FOCUS \
62 tag: "match" GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE;
66 style { name: "email_style_main";
67 base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028 text_class=T028 ellipsis=1.0";
71 style { name: "email_style_main_dim";
72 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028D text_class=T028D ellipsis=1.0";
76 style { name: "email_style_main_read";
77 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028R text_class=T028R ellipsis=1.0";
81 style { name: "email_style_main_read_dim";
82 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028RD text_class=T028RD ellipsis=1.0";
86 //todo.. text_focus_color_style add....
87 style { name: "email_style_main_press";
88 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028D text_class=T028D text_class=list_item ellipsis=1.0";
90 STYLE_TAG_MATCH_EMAIL_FOCUS
92 style { name: "email_style_sub_dim";
93 base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color=#ffffff color_class=T029D text_class=T029D ellipsis=1.0";
97 style { name: "email_style_sub";
98 base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color=#ffffff color_class=T029 text_class=T029 ellipsis=1.0";
100 STYLE_TAG_MATCH_EMAIL
102 style { name: "email_style_date";
103 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_DATE_TEXT_SIZE" color=#ffffff color_class=T0211 text_class=T0211 ellipsis=1.0";
105 STYLE_TAG_MATCH_EMAIL
107 style { name: "email_style_date_dim";
108 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_DATE_TIME_TEXT_SIZE" color=#ffffff color_class=T0211D text_class=T0211D ellipsis=1.0";
110 STYLE_TAG_MATCH_EMAIL
112 style { name: " email_style_contents";
113 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color=#ffffff color_class=T030 text_class=T030 ellipsis=1.0";
115 STYLE_TAG_MATCH_EMAIL
117 style { name: " email_style_contents_dim";
118 base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color=#ffffff color_class=T030D text_class=T030D ellipsis=1.0";
120 STYLE_TAG_MATCH_EMAIL
125 #define PARAM_EMAIL_MAIN \
129 style: "email_style_main"; \
132 #define DESCRIPTION_EMAIL_MAIN_OTHERS \
133 description { state: "disabled" 0.0; \
134 inherit: "default" 0.0; \
135 text.style: "email_style_main_dim"; \
137 description { state: "read" 0.0; \
138 inherit: "default" 0.0; \
139 text.style: "email_style_main_read"; \
141 description { state: "read,disabled" 0.0; \
142 inherit: "default" 0.0; \
143 text.style: "email_style_main_read_dim"; \
145 description { state: "pressed" 0.0; \
146 inherit: "default" 0.0; \
147 text.style: "email_style_main_press"; \
151 #define PARAM_EMAIL_SUB \
155 style: "email_style_sub"; \
158 #define DESCRIPTION_EMAIL_SUB_OTHERS \
159 description { state: "disabled" 0.0; \
160 inherit: "default" 0.0; \
162 text.style: "email_style_sub_dim"; \
165 // email contents text
166 #define PARAM_EMAIL_CONTENTS \
170 style: " email_style_contents"; \
173 #define DESCRIPTION_EMAIL_CONTENTS \
174 description { state: "disabled" 0.0; \
175 inherit: "default" 0.0; \
176 text.style: " email_style_contents_dim"; \
179 #define PARAM_EMAIL_COUNT \
180 color_class: "T0210"; \
184 text_class: "T0210"; \
187 //todo..email_text sellected color update.
188 #define DESCRIPTION_EMAIL_COUNT_OTHERS \
189 description { state: "pressed" 0.0; \
190 inherit: "default" 0.0; \
191 color_class: "T0210D"; \
195 text_class: "T0210D"; \
199 #define PARAM_EMAIL_DATE \
203 font: "Tizen:style=Regular"; \
204 style: "email_style_datae"; \
207 #define DESCRIPTION_EMAIL_DATE_OTHERS \
208 description { state: "disabled" 0.0; \
209 inherit: "default" 0.0; \
210 text.style: "email_style_date_dim"; \
213 #define GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( NAME, SIZE ) \
215 DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.2", \
221 #define GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( NAME, SIZE ) \
223 DESC_LRT("elm.icon.2", "elm.icon.5", "elm.text.2", \
229 #define GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
230 min: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE; \
231 max: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE;
233 #define GENLIST_PART_ICON_EMAIL_CHECK_RADIO_L(NAME, LEFT) \
234 GENLIST_PART_ICON(NAME, \
235 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
236 GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \
241 #define HEIGHT_EMAIL_MAIN 54
242 #define HEIGHT_EMAIL_SUB 42
243 #define HEIGHT_EMAIL_CONTENTS 38
246 #define GENLIST_PROGRAMS_EMAIL( TARGET ) \
248 GENLIST_PROGRAM_DEFAULT( TARGET \
251 target: "bottom_line"; \
252 target: "bottom_line_clip"; \
253 target: "bg_reorder"; \
254 target: "elm.padding.left"; \
255 target: "elm.padding.right"; \
256 target: "focus_part"; \
257 target: "focus_part_reorder"; \
259 GENLIST_PROGRAM_DISABLED( TARGET \
261 target: "bottom_line"; \
262 target: "bg_reorder"; \
264 GENLIST_PROGRAM_BOTTOMLINE \
265 GENLIST_PROGRAM_FOCUS_NORMAL \
266 GENLIST_PROGRAM_SELECT( TARGET \
268 target: "bg_reorder"; \
271 GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
273 target: "bg_reorder_clip"; \
274 target: "bottom_line_clip"; \
275 target: "elm.padding.left"; \
276 target: "elm.padding.right"; \
278 program { name: "unselected_target"; \
279 action: STATE_SET "default" 0.0; \
282 program { name: "unselected_read"; \
283 signal: "elm,state,unselected"; \
286 if (get_int(readed) == 1) \
287 run_program(PROGRAM:"go_read_target"); \
289 run_program(PROGRAM:"unselected_target"); \
292 program { name: "go_read"; \
293 signal: "elm,state,read"; \
296 set_int(readed, 1); \
297 run_program(PROGRAM:"go_read_target"); \
300 program { name: "go_unread"; \
301 signal: "elm,state,unread"; \
304 set_int(readed, 0); \
305 run_program(PROGRAM:"go_unread_target"); \
308 program { name: "go_read_target"; \
309 action: STATE_SET "read" 0.0; \
313 program { name: "go_unread_target"; \
314 action: STATE_SET "unread" 0.0; \
321 #define GENLIST_PART_BG_EMAIL_NORMAL \
322 PART(RECT, "bg_clip", \
324 description { state: "default" 0.0; \
326 color: 255 255 255 255; \
328 description { state: "decorate" 0.0; \
329 inherit: "default" 0.0; \
332 description { state: "reorder" 0.0; \
333 inherit: "default" 0.0; \
336 description { state: "decorate_reorder" 0.0; \
337 inherit: "default" 0.0; \
341 PART(RECT, "bg_reorder_clip", \
343 description { state: "default" 0.0; \
346 description { state: "reorder" 0.0; \
347 inherit: "default" 0.0; \
349 color: 255 255 255 255; \
351 description { state: "decorate_reorder" 0.0; \
352 inherit: "default" 0.0; \
355 description { state: "decorate" 0.0; \
356 inherit: "default" 0.0; \
359 description { state: "reorder_flip" 0.0; \
360 inherit: "default" 0.0; \
365 clip_to: "bg_clip"; \
366 description { state: "default" 0.0; \
367 color_class: "B011"; \
369 description { state: "pressed" 0.0; \
370 inherit: "default" 0.0; \
371 color_class: "B041P"; \
373 description { state: "disabled" 0.0; \
374 inherit: "default" 0.0; \
375 color_class: "B011"; \
377 description { state: "read" 0.0; \
378 inherit: "default" 0.0; \
379 color_class: "B0218"; \
381 description { state: "unread" 0.0; \
382 inherit: "default" 0.0; \
383 color_class: "B011"; \
386 PART(SPACER, "bg_reorder_left", \
387 description { state: "default" 0.0; \
392 rel2.relative: 0 1; \
395 PART(SPACER, "bg_reorder_right", \
396 description { state: "default" 0.0; \
401 rel1.relative: 1 0; \
404 PART(SPACER, "bg_reorder_top", \
405 description { state: "default" 0.0; \
410 rel2.relative: 1 0; \
413 PART(SPACER, "bg_reorder_bottom", \
414 description { state: "default" 0.0; \
419 rel1.relative: 0 1; \
422 PART(RECT, "bg_reorder", \
423 clip_to: "bg_reorder_clip"; \
424 description { state: "default" 0.0; \
427 to_x: "bg_reorder_left"; \
428 to_y: "bg_reorder_top"; \
432 to_x: "bg_reorder_right"; \
433 to_y: "bg_reorder_bottom"; \
435 color_class: "B0217L1"; \
437 description { state: "pressed" 0.0; \
438 inherit: "default"; \
439 color_class: "B041P"; \
441 description { state: "flipped" 0.0; \
442 inherit: "default"; \
447 // 2.2.3.5 (Email Style)
448 group { GENLIST_NAME("email.list/default")
450 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
451 data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch";
457 GENLIST_PART_BG_EMAIL_NORMAL
461 GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
462 GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE
465 GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
467 // For Handling checkbox srolling issue we have increased the size of check box
468 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
469 // 9 pixel extra space before the check image and 10 pixel after the check image.
470 // So to adjust this extra space the padding is reduced from 16 to 6.
471 // This means padding will be 6 pixel and extra space before the checkbox will be 10
472 // So it will again get to 16 pixel as gap after the checkbox as per GUI
473 PART(SPACER, "elm.padding.icon1.right",
474 description { state: "default" 0.0;
490 PART(TEXTBLOCK, "elm.text.1",
491 DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
493 min: 0 HEIGHT_EMAIL_MAIN;
494 fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing.
496 DESCRIPTION_EMAIL_MAIN_OTHERS
499 // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
500 PART(TEXT, "elm.text.4",
501 DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
503 min: 45 HEIGHT_EMAIL_MAIN;
504 max: 45 HEIGHT_EMAIL_MAIN;
506 text.align: 0.5 0.65;
511 // Virtual part for Maxmimum right X axis of TEXT
512 PART(SPACER, "elm.text.limit",
519 GENLIST_PART_ICON("elm.icon.3",
520 DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
524 GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
525 GENLIST_PART_ICON("elm.icon.4",
526 DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
528 max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
532 GENLIST_PART_ICON("elm.icon.4.touch",
533 DESC_TO("elm.icon.4",
538 GENLIST_PART_ICON("elm.icon.2",
539 DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
543 PART(TEXTBLOCK, "elm.text.2",
544 DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
546 min: 0 HEIGHT_EMAIL_SUB;
549 DESCRIPTION_EMAIL_SUB_OTHERS
551 PART(TEXTBLOCK, "elm.text.5",
552 DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
554 GENLIST_PARAM_TEXT_LIMIT_RT
555 min: 0 HEIGHT_EMAIL_SUB;
558 DESCRIPTION_EMAIL_DATE_OTHERS
561 GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
563 PART(TEXTBLOCK, "elm.text.3",
564 DESC_LRTB("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
566 min: 0 HEIGHT_EMAIL_CONTENTS;
568 DESCRIPTION_EMAIL_CONTENTS
570 GENLIST_PART_FOCUS_NORMAL
572 GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
573 target: "elm.text.2"; target: "elm.text.3";
574 target: "elm.text.4"; target: "elm.text.5";
575 target: "elm.swallow.colorbar";
576 target: "elm.icon.1";
577 target: "elm.icon.2"; target: "elm.icon.3";
578 target: "elm.icon.4"; target: "elm.icon.4.touch";
582 // email list with conversation text
583 group { GENLIST_NAME("email.list.conversation/default")
584 inherit: "elm/genlist/item/email.list/default";
586 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4 elm.text.5";
588 PART(TEXT, "elm.text.4",
589 DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
592 DESCRIPTION_EMAIL_COUNT_OTHERS
594 // Virtual part for Maxmimum right X axis of TEXT
595 PART(SPACER, "elm.text.limit",
597 min: 45 HEIGHT_EMAIL_MAIN;
598 max: 45 HEIGHT_EMAIL_MAIN;
605 // email outbox style
606 group { GENLIST_NAME("email.outbox/default")
608 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3";
609 data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch elm.icon.5";
615 GENLIST_PART_BG_EMAIL_NORMAL
619 GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
620 GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE
622 GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
624 // For Handling checkbox srolling issue we have increased the size of check box
625 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
626 // 9 pixel extra space before the check image and 10 pixel after the check image.
627 // So to adjust this extra space the padding is reduced from 16 to 6.
628 // This means padding will be 6 pixel and extra space before the checkbox will be 10
629 // So it will again get to 16 pixel as gap after the checkbox as per GUI
630 PART(SPACER, "elm.padding.icon1.right",
631 description { state: "default" 0.0;
647 PART(TEXTBLOCK, "elm.text.1",
648 DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
650 min: 0 HEIGHT_EMAIL_MAIN;
651 fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing.
653 DESCRIPTION_EMAIL_MAIN_OTHERS
655 // FIXME: because script cannot be inherited, text.4 is defined here and can be inherited
656 PART(TEXT, "elm.text.4",
657 DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
659 min: 0 HEIGHT_EMAIL_MAIN;
660 max: 0 HEIGHT_EMAIL_MAIN;
662 text.align: 0.5 0.65;
667 // Virtual part for Maxmimum right X axis of TEXT
668 PART(SPACER, "elm.text.limit",
675 GENLIST_PART_ICON("elm.icon.3",
676 DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
680 GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
681 GENLIST_PART_ICON("elm.icon.4",
682 DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
684 max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
688 GENLIST_PART_ICON("elm.icon.4.touch",
689 DESC_TO("elm.icon.4",
695 GENLIST_PART_ICON("elm.icon.2",
696 DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
700 PART(TEXTBLOCK, "elm.text.2",
701 DESC_LRT("elm.icon.2", "elm.padding.icon5.left", "elm.text.1",
703 min: 0 HEIGHT_EMAIL_SUB;
706 DESCRIPTION_EMAIL_SUB_OTHERS
709 GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
711 PART(TEXTBLOCK, "elm.text.3",
712 DESC_LRTB("elm.padding.icon1.right", "elm.padding.icon5.left", "elm.padding.text2.bottom", "elm.padding.bottom",
714 min: 0 HEIGHT_EMAIL_CONTENTS;
716 DESCRIPTION_EMAIL_CONTENTS
718 GENLIST_PART_PADDING_R("elm.padding.icon5.left", "elm.icon.5")
719 GENLIST_PART_ICON("elm.icon.5",
720 DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.bottom",
726 GENLIST_PART_FOCUS_NORMAL
728 GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
729 target: "elm.text.4";
730 target: "elm.swallow.colorbar"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3";
731 target: "elm.icon.4"; target: "elm.icon.5";
735 // email outbox style with conversation
736 group { GENLIST_NAME("email.outbox.conversation/default")
737 inherit: "elm/genlist/item/email.outbox/default";
739 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4";
742 PART(TEXT, "elm.text.4",
743 DESC_LTB("elm.text.1", "elm.padding.top", "elm.icon.5",
744 min: 45 HEIGHT_EMAIL_MAIN;
745 max: 45 HEIGHT_EMAIL_MAIN;
748 DESCRIPTION_EMAIL_COUNT_OTHERS
750 PART(SPACER, "elm.text.limit",
752 min: 45 HEIGHT_EMAIL_MAIN;
753 max: 45 HEIGHT_EMAIL_MAIN;
759 // FIXME: This is temporary style for test purpose
760 // This style has all widgets by itself
761 group { GENLIST_NAME("email.list.test/default")
763 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5";
764 data.item: "contents" "elm.swallow.colorbar elm.check.touch elm.icon.4.touch";
767 image: "00_check_activate.png" COMP;
768 image: "00_check_activate_ef.png" COMP;
769 image: "00_check_bg.png" COMP;
770 image: "00_check_bg_ef.png" COMP;
771 image: "00_check_bg_line.png" COMP;
782 GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
783 GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE
786 PART(IMAGE, "elm.check.bg",
788 DESC_L("elm.padding.left",
789 image.normal: "00_check_bg.png";
792 description { state: "default" 0.0;
793 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
794 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
796 image.normal: "00_check_bg.png";
798 color_class: "W013L1";
800 description { state: "pressed" 0.0;
801 inherit: "default" 0.0;
802 color_class: "W013L1P";
804 description { state: "disabled" 0.0;
805 inherit: "default" 0.0;
806 color_class: "W013L1D";
809 PART(IMAGE, "elm.check.bg.effect",
811 DESC_L("elm.padding.left",
812 image.normal: "00_check_bg_ef.png";
815 description { state: "default" 0.0;
816 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
817 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
819 image.normal: "00_check_bg_ef.png";
823 PART(IMAGE, "elm.check.bg.line",
825 DESC_L("elm.padding.left",
826 image.normal: "00_check_bg_line.png";
829 description { state: "default" 0.0;
830 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
831 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC;
833 image.normal: "00_check_bg_line.png";
835 color_class: "W013L2";
837 description { state: "pressed" 0.0;
838 inherit: "default" 0.0;
839 color_class: "W013L2P";
841 description { state: "disabled" 0.0;
842 inherit: "default" 0.0;
843 color_class: "W013L2D";
846 PART(IMAGE, "elm.check",
848 DESC_TO("elm.check.bg",
850 image.normal: "00_check_activate.png";
851 color_class: "W013L3";
853 description { state: "visible" 0.0;
854 inherit: "default" 0.0;
856 color_class: "W013L3";
858 description { state: "dim" 0.0;
859 inherit: "default" 0.0;
861 color_class: "W013L3D";
863 description { state: "pressed" 0.0;
864 inherit: "visible" 0.0;
865 color_class: "W013L3P";
868 PART(IMAGE, "elm.check.effect",
870 DESC_TO("elm.check.bg",
872 image.normal: "00_check_activate_ef.png";
877 // For Handling checkbox srolling issue we have increased the size of check box
878 // background to 64*64 though the check image is 45*45 as per GUI. These leaves
879 // 9 pixel extra space before the check image and 10 pixel after the check image.
880 // So to adjust this extra space the padding is reduced from 16 to 6.
881 // This means padding will be 6 pixel and extra space before the checkbox will be 10
882 // So it will again get to 16 pixel as gap after the checkbox as per GUI
883 PART(SPACER, "elm.padding.icon1.right",
884 description { state: "default" 0.0;
900 PART(TEXTBLOCK, "elm.text.1",
901 DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
903 min: 0 HEIGHT_EMAIL_MAIN;
904 fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing.
906 DESCRIPTION_EMAIL_MAIN_OTHERS
909 // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited
910 PART(TEXT, "elm.text.4",
911 DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
913 min: 45 HEIGHT_EMAIL_MAIN;
914 max: 45 HEIGHT_EMAIL_MAIN;
916 text.align: 0.5 0.65;
921 // Virtual part for Maxmimum right X axis of TEXT
922 PART(SPACER, "elm.text.limit",
929 PART(IMAGE, "elm.icon.3",
930 DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
934 image.normal: "00_icon_favorite_bg_45x45.png";
935 color_class: "F022L2i";
938 description { state: "visible" 0.0;
939 inherit: "default" 0.0;
944 GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT)
945 PART(IMAGE, "elm.icon.4",
946 DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
947 max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
951 image.normal: "00_icon_favorite_bg_45x45.png";
952 color_class: "F022L1i";
955 description { state: "visible" 0.0;
956 inherit: "default" 0.0;
960 description { state: "enable" 0.0;
961 inherit: "default" 0.0;
962 image.normal: "00_icon_favorite_bg_45x45.png";
963 color_class: "F022L2i";
968 GENLIST_PART_ICON("elm.icon.4.touch",
969 DESC_TO("elm.icon.4",
974 PART(IMAGE, "elm.icon.2",
975 DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
979 image.normal: "00_icon_favorite_bg_45x45.png";
980 color_class: "F022L1i";
983 description { state: "visible" 0.0;
984 inherit: "default" 0.0;
989 PART(TEXTBLOCK, "elm.text.2",
990 DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
992 min: 0 HEIGHT_EMAIL_SUB;
995 DESCRIPTION_EMAIL_SUB_OTHERS
997 PART(TEXTBLOCK, "elm.text.5",
998 DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom",
1000 GENLIST_PARAM_TEXT_LIMIT_RT
1001 min: 0 HEIGHT_EMAIL_SUB;
1004 DESCRIPTION_EMAIL_DATE_OTHERS
1007 GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
1009 PART(TEXTBLOCK, "elm.text.3",
1010 DESC_LRTB("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
1011 PARAM_EMAIL_CONTENTS
1012 min: 0 HEIGHT_EMAIL_CONTENTS;
1014 DESCRIPTION_EMAIL_CONTENTS
1016 GENLIST_PART_ICON("elm.check.touch",
1017 DESC_TO("elm.check",
1020 GENLIST_PART_FOCUS_NORMAL
1022 GENLIST_PROGRAMS_EMAIL( target: "elm.text.1";
1023 target: "elm.text.2"; target: "elm.text.3";
1024 target: "elm.text.4"; target: "elm.text.5";
1025 target: "elm.swallow.colorbar";
1026 target: "elm.icon.4.touch";
1027 target: "elm.check.touch";
1029 program { name: "check_show";
1030 signal: "elm,state,check,show";
1032 action: STATE_SET "visible" 0.0;
1033 target: "elm.check";
1035 program { name: "check_hide";
1036 signal: "elm,state,check,hide";
1038 action: STATE_SET "default" 0.0;
1039 target: "elm.check";
1041 program { name: "icon2_show";
1042 signal: "elm,state,icon2,show";
1044 action: STATE_SET "visible" 0.0;
1045 target: "elm.icon.2";
1047 program { name: "icon3_show";
1048 signal: "elm,state,icon3,show";
1050 action: STATE_SET "visible" 0.0;
1051 target: "elm.icon.3";
1053 program { name: "icon4_show";
1054 signal: "elm,state,icon4,show";
1056 action: STATE_SET "visible" 0.0;
1057 target: "elm.icon.4";
1059 program { name: "icon4_enable";
1060 signal: "elm,state,icon4,enable";
1062 action: STATE_SET "enable" 0.0;
1063 target: "elm.icon.4";
1065 program { name: "icon4_disable";
1066 signal: "elm,state,icon4,disable";
1068 action: STATE_SET "visible" 0.0;
1069 target: "elm.icon.4";