3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
\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
9 * http://www.apache.org/licenses/LICENSE-2.0
\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
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
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
35 #define GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE 45
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
47 tag: "b" "+ font=Tizen:style=Bold";
49 #define STYLE_TAG_MATCH_EMAIL \
50 tag: "match" GENLIST_EMAIL_MATCH_TAG_COLOR;
52 #define STYLE_TAG_MATCH_EMAIL_FOCUS \
53 tag: "match" GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE;
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";
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";
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";
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";
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";
80 STYLE_TAG_MATCH_EMAIL_FOCUS
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";
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";
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";
95 STYLE_TAG_MATCH_EMAIL_FOCUS
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";
100 STYLE_TAG_MATCH_EMAIL
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";
105 STYLE_TAG_MATCH_EMAIL
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";
110 STYLE_TAG_MATCH_EMAIL_FOCUS
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";
115 STYLE_TAG_MATCH_EMAIL_FOCUS
120 #define PARAM_EMAIL_MAIN \
124 style: "email_style_main"; \
127 #define DESCRIPTION_EMAIL_MAIN_OTHERS \
128 description { state: "disabled" 0.0; \
129 inherit: "default" 0.0; \
130 text.style: "email_style_main_dim"; \
132 description { state: "read" 0.0; \
133 inherit: "default" 0.0; \
134 text.style: "email_style_main_read"; \
136 description { state: "read,disabled" 0.0; \
137 inherit: "default" 0.0; \
138 text.style: "email_style_main_read_dim"; \
140 description { state: "selected" 0.0; \
141 inherit: "default" 0.0; \
142 text.style: "email_style_main_focus"; \
146 #define PARAM_EMAIL_SUB \
150 style: "email_style_sub_unread"; \
153 #define DESCRIPTION_EMAIL_SUB_OTHERS \
154 description { state: "read" 0.0; \
155 inherit: "default" 0.0; \
156 text.style: "email_style_sub_read"; \
158 description { state: "selected" 0.0; \
159 inherit: "default" 0.0; \
160 text.style: "email_style_sub_focus"; \
163 // email contents text
164 #define PARAM_EMAIL_COUNT \
165 color: GENLIST_EMAIL_COUNT_TEXT_UNREAD_COLOR; \
169 font: "Tizen:style=Bold"; \
170 size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
171 text_class: "tizen"; \
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; \
181 font: "Tizen:style=Regular"; \
182 size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
183 text_class: "tizen"; \
186 description { state: "selected" 0.0; \
187 inherit: "default" 0.0; \
188 color: GENLIST_EMAIL_TEXT_FOCUS_COLOR; \
192 font: "Tizen:style=Regular"; \
193 size: GENLIST_EMAIL_COUNT_TEXT_SIZE; \
194 text_class: "tizen"; \
198 // email contents text
199 #define PARAM_EMAIL_CONTENTS \
203 font: "Tizen:style=Regular"; \
204 style: "email_style_contents"; \
207 #define PARAM_EMAIL_CONTENTS_TIME \
211 font: "Tizen:style=Regular"; \
212 style: "email_style_contents_time"; \
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"; \
221 #define DESCRIPTION_EMAIL_CONTENTS_OTHERS \
222 description { state: "selected" 0.0; \
223 inherit: "default" 0.0; \
224 text.style: "email_style_contents_focus"; \
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", \
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", \
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;
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 \
255 #define HEIGHT_EMAIL_MAIN 54
256 #define HEIGHT_EMAIL_SUB 42
257 #define HEIGHT_EMAIL_CONTENTS 38
260 #define GENLIST_PROGRAMS_EMAIL( TARGET ) \
262 GENLIST_PROGRAM_DEFAULT( TARGET \
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"; \
272 GENLIST_PROGRAM_DISABLED( TARGET \
274 target: "bottom_line"; \
275 target: "bottom_line2"; \
276 target: "bg_reorder"; \
278 GENLIST_PROGRAM_FOCUS_NORMAL \
279 GENLIST_PROGRAM_SELECT( TARGET \
281 target: "bottom_line"; \
282 target: "bottom_line2"; \
283 target: "bg_reorder"; \
285 GENLIST_PROGRAM_SOUND("bg") \
286 GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
288 target: "bg_reorder_clip"; \
289 target: "bottom_line_clip"; \
290 target: "elm.padding.left"; \
291 target: "elm.padding.right"; \
293 program { name: "unselected_target"; \
294 action: STATE_SET "default" 0.0; \
297 program { name: "unselected_read"; \
298 signal: "elm,state,unselected"; \
301 if (get_int(readed) == 1) \
302 run_program(PROGRAM:"go_read_target"); \
304 run_program(PROGRAM:"unselected_target"); \
307 program { name: "go_read"; \
308 signal: "elm,state,read"; \
311 set_int(readed, 1); \
312 run_program(PROGRAM:"go_read_target"); \
315 program { name: "go_unread"; \
316 signal: "elm,state,unread"; \
319 set_int(readed, 0); \
320 run_program(PROGRAM:"go_unread_target"); \
323 program { name: "go_read_target"; \
324 action: STATE_SET "read" 0.0; \
328 program { name: "go_unread_target"; \
329 action: STATE_SET "unread" 0.0; \
336 #define GENLIST_PART_BG_EMAIL_NORMAL \
337 GENLIST_PART_RECT("bg_clip", \
339 description { state: "default" 0.0; \
341 color: 255 255 255 255; \
343 description { state: "decorate" 0.0; \
344 inherit: "default" 0.0; \
347 description { state: "reorder" 0.0; \
348 inherit: "default" 0.0; \
351 description { state: "decorate_reorder" 0.0; \
352 inherit: "default" 0.0; \
356 GENLIST_PART_RECT("bg_reorder_clip", \
358 description { state: "default" 0.0; \
361 description { state: "reorder" 0.0; \
362 inherit: "default" 0.0; \
364 color: 255 255 255 255; \
366 description { state: "decorate_reorder" 0.0; \
367 inherit: "default" 0.0; \
370 description { state: "decorate" 0.0; \
371 inherit: "default" 0.0; \
374 description { state: "reorder_flip" 0.0; \
375 inherit: "default" 0.0; \
379 GENLIST_PART_RECT("bg", \
380 clip_to: "bg_clip"; \
381 description { state: "default" 0.0; \
382 color: GENLIST_LIST_BG_COLOR; \
384 description { state: "selected" 0.0; \
385 inherit: "default" 0.0; \
386 color: GENLIST_LIST_PRESS_COLOR; \
388 description { state: "disabled" 0.0; \
389 inherit: "default" 0.0; \
390 color: GENLIST_LIST_DIM_COLOR; \
392 description { state: "read" 0.0; \
393 inherit: "default" 0.0; \
394 color: GENLIST_LIST_READ_BG_COLOR; \
396 description { state: "unread" 0.0; \
397 inherit: "default" 0.0; \
398 color: GENLIST_LIST_UNREAD_BG_COLOR; \
401 GENLIST_PART_SPACER("bg_reorder_left", \
402 description { state: "default" 0.0; \
407 rel2.relative: 0 1; \
410 GENLIST_PART_SPACER("bg_reorder_right", \
411 description { state: "default" 0.0; \
416 rel1.relative: 1 0; \
419 GENLIST_PART_IMAGE("bg_reorder", \
420 clip_to: "bg_reorder_clip"; \
421 GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
423 normal: "00_list_group_bg.png"; \
428 description { state: "selected" 0.0; \
429 inherit: "default"; \
431 normal: "00_list_group_bg_press.png"; \
436 description { state: "flipped" 0.0; \
437 inherit: "default"; \
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";
452 GENLIST_PART_BG_EMAIL_NORMAL
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
461 GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
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;
486 GENLIST_PART_TEXTBLOCK("elm.text.1",
487 GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
489 min: 0 HEIGHT_EMAIL_MAIN;
490 fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing.
492 DESCRIPTION_EMAIL_MAIN_OTHERS
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",
499 min: 45 HEIGHT_EMAIL_MAIN;
500 max: 45 HEIGHT_EMAIL_MAIN;
502 text.align: 0.5 0.65;
507 // Virtual part for Maxmimum right X axis of TEXT
508 GENLIST_PART_SPACER("elm.text.limit",
509 GENLIST_DESCRIPTION_R("elm.icon.3",
515 GENLIST_PART_ICON("elm.icon.3",
516 GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
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",
524 max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
528 GENLIST_PART_ICON("elm.icon.4.touch",
529 GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
534 GENLIST_PART_ICON("elm.icon.2",
535 GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
539 GENLIST_PART_TEXTBLOCK("elm.text.2",
540 GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
542 min: 0 HEIGHT_EMAIL_SUB;
545 DESCRIPTION_EMAIL_SUB_OTHERS
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;
554 DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS
557 GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
559 GENLIST_PART_TEXTBLOCK("elm.text.3",
560 GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
562 min: 0 HEIGHT_EMAIL_CONTENTS;
564 DESCRIPTION_EMAIL_CONTENTS_OTHERS
566 GENLIST_PART_FOCUS_NORMAL
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";
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")
584 // email list with conversation text
585 group { GENLIST_NAME("email.list.conversation/default")
586 inherit: "elm/genlist/item/email.list/default";
588 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4 elm.text.5";
590 GENLIST_PART_TEXT("elm.text.4",
591 GENLIST_DESCRIPTION_LTB("elm.text.1", "elm.padding.top", "elm.text.2",
594 DESCRIPTION_EMAIL_COUNT_OTHERS
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;
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";
617 GENLIST_PART_BG_EMAIL_NORMAL
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
626 GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
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;
651 GENLIST_PART_TEXTBLOCK("elm.text.1",
652 GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
654 min: 0 HEIGHT_EMAIL_MAIN;
655 fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing.
657 DESCRIPTION_EMAIL_MAIN_OTHERS
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",
663 min: 0 HEIGHT_EMAIL_MAIN;
664 max: 0 HEIGHT_EMAIL_MAIN;
666 text.align: 0.5 0.65;
671 // Virtual part for Maxmimum right X axis of TEXT
672 GENLIST_PART_SPACER("elm.text.limit",
673 GENLIST_DESCRIPTION_R("elm.icon.3",
679 GENLIST_PART_ICON("elm.icon.3",
680 GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
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",
688 max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN;
692 GENLIST_PART_ICON("elm.icon.4.touch",
693 GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
699 GENLIST_PART_ICON("elm.icon.2",
700 GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
704 GENLIST_PART_TEXTBLOCK("elm.text.2",
705 GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.padding.icon5.left", "elm.text.1",
707 min: 0 HEIGHT_EMAIL_SUB;
710 DESCRIPTION_EMAIL_SUB_OTHERS
713 GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
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",
718 min: 0 HEIGHT_EMAIL_CONTENTS;
720 DESCRIPTION_EMAIL_CONTENTS_OTHERS
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",
730 GENLIST_PART_FOCUS_NORMAL
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";
739 // email outbox style with conversation
740 group { GENLIST_NAME("email.outbox.conversation/default")
741 inherit: "elm/genlist/item/email.outbox/default";
743 data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4";
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;
752 DESCRIPTION_EMAIL_COUNT_OTHERS
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;
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";
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;
782 GENLIST_PART_BG_NORMAL
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
791 GENLIST_PART_IMAGE("elm.check.bg",
793 GENLIST_DESCRIPTION_L("elm.padding.left",
794 image.normal: "00_check_bg.png";
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;
801 image.normal: "00_check_bg.png";
804 description { state: "pressed" 0.0;
805 inherit: "default" 0.0;
806 image.normal: "00_check_press_bg.png";
808 description { state: "disabled" 0.0;
809 inherit: "default" 0.0;
810 image.normal: "00_check_dim_bg.png";
813 GENLIST_PART_IMAGE("elm.check",
815 GENLIST_DESCRIPTION_ENVELOP("elm.check.bg",
817 image.normal: "00_check_activated.png";
819 description { state: "visible" 0.0;
820 inherit: "default" 0.0;
823 description { state: "dim" 0.0;
824 inherit: "default" 0.0;
826 image.normal: "00_check_activated_dim.png";
828 description { state: "pressed" 0.0;
829 inherit: "visible" 0.0;
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;
857 GENLIST_PART_TEXTBLOCK("elm.text.1",
858 GENLIST_DESCRIPTION_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top",
860 min: 0 HEIGHT_EMAIL_MAIN;
861 fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing.
863 DESCRIPTION_EMAIL_MAIN_OTHERS
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",
870 min: 45 HEIGHT_EMAIL_MAIN;
871 max: 45 HEIGHT_EMAIL_MAIN;
873 text.align: 0.5 0.65;
878 // Virtual part for Maxmimum right X axis of TEXT
879 GENLIST_PART_SPACER("elm.text.limit",
880 GENLIST_DESCRIPTION_R("elm.icon.3",
886 GENLIST_PART_IMAGE("elm.icon.3",
887 GENLIST_DESCRIPTION_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2",
891 image.normal: "00_icon_favorite_on_45x45.png";
894 description { state: "visible" 0.0;
895 inherit: "default" 0.0;
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;
907 image.normal: "00_icon_favorite_off_45x45.png";
910 description { state: "visible" 0.0;
911 inherit: "default" 0.0;
915 description { state: "enable" 0.0;
916 inherit: "default" 0.0;
917 image.normal: "00_icon_favorite_on_45x45.png";
922 GENLIST_PART_ICON("elm.icon.4.touch",
923 GENLIST_DESCRIPTION_ENVELOP("elm.icon.4",
928 GENLIST_PART_IMAGE("elm.icon.2",
929 GENLIST_DESCRIPTION_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3",
933 image.normal: "00_icon_favorite_off_45x45.png";
936 description { state: "visible" 0.0;
937 inherit: "default" 0.0;
942 GENLIST_PART_TEXTBLOCK("elm.text.2",
943 GENLIST_DESCRIPTION_LRT("elm.icon.2", "elm.text.5", "elm.text.1",
945 min: 0 HEIGHT_EMAIL_SUB;
948 DESCRIPTION_EMAIL_SUB_OTHERS
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;
957 DESCRIPTION_EMAIL_CONTENTS_TIME_FOCUS
960 GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM)
962 GENLIST_PART_TEXTBLOCK("elm.text.3",
963 GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom",
965 min: 0 HEIGHT_EMAIL_CONTENTS;
967 DESCRIPTION_EMAIL_CONTENTS_OTHERS
969 GENLIST_PART_ICON("elm.check.touch",
970 GENLIST_DESCRIPTION_ENVELOP("elm.check",
973 GENLIST_PART_FOCUS_NORMAL
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";
982 program { name: "check_show";
983 signal: "elm,state,check,show";
985 action: STATE_SET "visible" 0.0;
988 program { name: "check_hide";
989 signal: "elm,state,check,hide";
991 action: STATE_SET "default" 0.0;
994 program { name: "icon2_show";
995 signal: "elm,state,icon2,show";
997 action: STATE_SET "visible" 0.0;
998 target: "elm.icon.2";
1000 program { name: "icon3_show";
1001 signal: "elm,state,icon3,show";
1003 action: STATE_SET "visible" 0.0;
1004 target: "elm.icon.3";
1006 program { name: "icon4_show";
1007 signal: "elm,state,icon4,show";
1009 action: STATE_SET "visible" 0.0;
1010 target: "elm.icon.4";
1012 program { name: "icon4_enable";
1013 signal: "elm,state,icon4,enable";
1015 action: STATE_SET "enable" 0.0;
1016 target: "elm.icon.4";
1018 program { name: "icon4_disable";
1019 signal: "elm,state,icon4,disable";
1021 action: STATE_SET "visible" 0.0;
1022 target: "elm.icon.4";
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")