/* * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved * * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // ------------------------------------------------------------------- // Email Style ------------------------------------------------------- // ------------------------------------------------------------------- // For Handling checkbox srolling issue we have increased the size of check box // background to 64*64 though the check image is 45*45 as per GUI. These leaves // 9 pixel extra space before the check image and 10 pixel after the check image. // So to adjust this extra space the padding is reduced from 19 to 10. // This means padding will be 10 pixel and extra space before the checkbox will be 9 // So it will again get to 19 pixel as gap before the checkbox as per GUI #define GENLIST_EMAIL_PADDING_SIZE_LEFT 10 #define GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE 8 #define GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE 8 #define GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM 3 #define GENLIST_EMAIL_PADDING_SIZE_DEFAULT 10 #define GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE 45 #define GENLIST_EMAIL_MAIN_TEXT_SIZE 38 #define GENLIST_EMAIL_SUB_TEXT_SIZE 30 #define GENLIST_EMAIL_COUNT_TEXT_SIZE 28 #define GENLIST_EMAIL_CONTENTS_TEXT_SIZE 26 #define GENLIST_EMAIL_DATE_TEXT_SIZE 24 #define STYLE_TAG \ tag: "br" "\n";\ tag: "ps" "ps";\ tag: "tab" "\t";\ tag: "b" "+ font_weight=Bold"; #define STYLE_TAG_MATCH_EMAIL \ tag: "match" GENLIST_EMAIL_MATCH_TAG_COLOR; #define STYLE_TAG_MATCH_EMAIL_FOCUS \ tag: "match" GENLIST_EMAIL_TEXT_FOCUS_COLOR_STYLE; styles { style { name: "email_style_main"; base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028 text_class=T028 ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: "email_style_main_dim"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028D text_class=T028D ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: "email_style_main_read"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028R text_class=T028R ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: "email_style_main_read_dim"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_MAIN_TEXT_SIZE" color=#ffffff color_class=T028RD text_class=T028RD ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } //todo.. text_focus_color_style add.... style { name: "email_style_main_press"; 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"; STYLE_TAG STYLE_TAG_MATCH_EMAIL_FOCUS } style { name: "email_style_sub_dim"; base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color=#ffffff color_class=T029D text_class=T029D ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: "email_style_sub"; base: "font=Tizen:style=Bold font_size="GENLIST_EMAIL_SUB_TEXT_SIZE" color=#ffffff color_class=T029 text_class=T029 ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: "email_style_date"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_DATE_TEXT_SIZE" color=#ffffff color_class=T0211 text_class=T0211 ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: "email_style_date_dim"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_DATE_TIME_TEXT_SIZE" color=#ffffff color_class=T0211D text_class=T0211D ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: " email_style_contents"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color=#ffffff color_class=T030 text_class=T030 ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } style { name: " email_style_contents_dim"; base: "font=Tizen:style=Regular font_size="GENLIST_EMAIL_CONTENTS_TEXT_SIZE" color=#ffffff color_class=T030D text_class=T030D ellipsis=1.0"; STYLE_TAG STYLE_TAG_MATCH_EMAIL } } // email main text #define PARAM_EMAIL_MAIN \ text { \ align: 0 0.5; \ min: 0 1; \ style: "email_style_main"; \ } #define DESCRIPTION_EMAIL_MAIN_OTHERS \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ text.style: "email_style_main_dim"; \ } \ description { state: "read" 0.0; \ inherit: "default" 0.0; \ text.style: "email_style_main_read"; \ } \ description { state: "read,disabled" 0.0; \ inherit: "default" 0.0; \ text.style: "email_style_main_read_dim"; \ } \ description { state: "pressed" 0.0; \ inherit: "default" 0.0; \ text.style: "email_style_main_press"; \ } // email sub text #define PARAM_EMAIL_SUB \ text { \ align: 0 0.5; \ min: 0 1; \ style: "email_style_sub"; \ } #define DESCRIPTION_EMAIL_SUB_OTHERS \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ text.style: "email_style_sub_dim"; \ } \ // email contents text #define PARAM_EMAIL_CONTENTS \ text { \ align: 0 0.5; \ min: 0 1; \ style: " email_style_contents"; \ } #define DESCRIPTION_EMAIL_CONTENTS \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ text.style: " email_style_contents_dim"; \ } \ #define PARAM_EMAIL_COUNT \ color_class: "T0210"; \ text { \ align: 0 0.5; \ min: 0 1; \ text_class: "T0210"; \ } //todo..email_text sellected color update. #define DESCRIPTION_EMAIL_COUNT_OTHERS \ description { state: "pressed" 0.0; \ inherit: "default" 0.0; \ color_class: "T0210D"; \ text { \ align: 0 0.5; \ min: 0 1; \ text_class: "T0210D"; \ } \ } #define PARAM_EMAIL_DATE \ text { \ align: 0 0.5; \ min: 0 1; \ font: "Tizen:style=Regular"; \ style: "email_style_datae"; \ } #define DESCRIPTION_EMAIL_DATE_OTHERS \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ text.style: "email_style_date_dim"; \ } \ #define GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( NAME, SIZE ) \ PART(SPACER, NAME, \ DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.2", \ min: 0 SIZE; \ fixed: 0 1; \ ) \ ) #define GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( NAME, SIZE ) \ PART(SPACER, NAME, \ DESC_LRT("elm.icon.2", "elm.icon.5", "elm.text.2", \ min: 0 SIZE; \ fixed: 0 1; \ ) \ ) #define GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \ min: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE; \ max: GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE GENLIST_EMAIL_ICON_CHECK_RADIO_SIZE; #define GENLIST_PART_ICON_EMAIL_CHECK_RADIO_L(NAME, LEFT) \ GENLIST_PART_ICON(NAME, \ DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \ GENLIST_PARAM_ICON_EMAIL_CHECK_RADIO \ fixed: 1 1; \ ) \ ) #define HEIGHT_EMAIL_MAIN 54 #define HEIGHT_EMAIL_SUB 42 #define HEIGHT_EMAIL_CONTENTS 38 #define GENLIST_PROGRAMS_EMAIL( TARGET ) \ programs { \ GENLIST_PROGRAM_DEFAULT( TARGET \ target: "bg"; \ target: "bg_clip"; \ target: "bottom_line"; \ target: "bottom_line_clip"; \ target: "bg_reorder"; \ target: "elm.padding.left"; \ target: "elm.padding.right"; \ target: "focus_part"; \ target: "focus_part_reorder"; \ ) \ GENLIST_PROGRAM_DISABLED( TARGET \ target: "bg"; \ target: "bottom_line"; \ target: "bg_reorder"; \ ) \ GENLIST_PROGRAM_BOTTOMLINE \ GENLIST_PROGRAM_FOCUS_NORMAL \ GENLIST_PROGRAM_SELECT( TARGET \ target: "bg"; \ target: "bg_reorder"; \ ) \ PROGRAM_LIST_SOUND \ GENLIST_PROGRAM_DECORATE_REORDER( "normal", \ target: "bg_clip"; \ target: "bg_reorder_clip"; \ target: "bottom_line_clip"; \ target: "elm.padding.left"; \ target: "elm.padding.right"; \ ) \ program { name: "unselected_target"; \ action: STATE_SET "default" 0.0; \ TARGET \ } \ program { name: "unselected_read"; \ signal: "elm,state,unselected"; \ source: "elm"; \ script { \ if (get_int(readed) == 1) \ run_program(PROGRAM:"go_read_target"); \ else \ run_program(PROGRAM:"unselected_target"); \ } \ } \ program { name: "go_read"; \ signal: "elm,state,read"; \ source: "*"; \ script { \ set_int(readed, 1); \ run_program(PROGRAM:"go_read_target"); \ } \ } \ program { name: "go_unread"; \ signal: "elm,state,unread"; \ source: "*"; \ script { \ set_int(readed, 0); \ run_program(PROGRAM:"go_unread_target"); \ } \ } \ program { name: "go_read_target"; \ action: STATE_SET "read" 0.0; \ target: "bg"; \ TARGET \ } \ program { name: "go_unread_target"; \ action: STATE_SET "unread" 0.0; \ target: "bg"; \ TARGET \ } \ } #define GENLIST_PART_BG_EMAIL_NORMAL \ PART(RECT, "bg_clip", \ mouse_events: 0; \ description { state: "default" 0.0; \ visible: 1; \ color: 255 255 255 255; \ } \ description { state: "decorate" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ } \ description { state: "reorder" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ } \ description { state: "decorate_reorder" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ } \ ) \ PART(RECT, "bg_reorder_clip", \ mouse_events: 0; \ description { state: "default" 0.0; \ visible: 0; \ } \ description { state: "reorder" 0.0; \ inherit: "default" 0.0; \ visible: 1; \ color: 255 255 255 255; \ } \ description { state: "decorate_reorder" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ } \ description { state: "decorate" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ } \ description { state: "reorder_flip" 0.0; \ inherit: "default" 0.0; \ visible: 0; \ } \ ) \ PART(RECT, "bg", \ clip_to: "bg_clip"; \ description { state: "default" 0.0; \ color_class: "B011"; \ } \ description { state: "pressed" 0.0; \ inherit: "default" 0.0; \ color_class: "B041P"; \ } \ description { state: "disabled" 0.0; \ inherit: "default" 0.0; \ color_class: "B011"; \ } \ description { state: "read" 0.0; \ inherit: "default" 0.0; \ color_class: "B0218"; \ } \ description { state: "unread" 0.0; \ inherit: "default" 0.0; \ color_class: "B011"; \ } \ ) \ PART(SPACER, "bg_reorder_left", \ description { state: "default" 0.0; \ min: 16 0; \ max: 16 -1; \ fixed: 1 0; \ align: 0 0.5; \ rel2.relative: 0 1; \ } \ ) \ PART(SPACER, "bg_reorder_right", \ description { state: "default" 0.0; \ min: 16 0; \ max: 16 -1; \ fixed: 1 0; \ align: 1.0 0.5; \ rel1.relative: 1 0; \ } \ ) \ PART(SPACER, "bg_reorder_top", \ description { state: "default" 0.0; \ min: 0 2; \ max: -1 2; \ fixed: 0 1; \ align: 0.5 0; \ rel2.relative: 1 0; \ } \ ) \ PART(SPACER, "bg_reorder_bottom", \ description { state: "default" 0.0; \ min: 0 2; \ max: -1 2; \ fixed: 0 1; \ align: 0.5 1.0; \ rel1.relative: 0 1; \ } \ ) \ PART(RECT, "bg_reorder", \ clip_to: "bg_reorder_clip"; \ description { state: "default" 0.0; \ rel1 { \ relative: 1 1; \ to_x: "bg_reorder_left"; \ to_y: "bg_reorder_top"; \ } \ rel2 { \ relative: 0 0; \ to_x: "bg_reorder_right"; \ to_y: "bg_reorder_bottom"; \ } \ color_class: "B0217L1"; \ } \ description { state: "pressed" 0.0; \ inherit: "default"; \ color_class: "B041P"; \ } \ description { state: "flipped" 0.0; \ inherit: "default"; \ visible: 0; \ } \ ) // 2.2.3.5 (Email Style) group { GENLIST_NAME("email.list/default") PROLOG_LIST_NORMAL data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5"; data.item: "contents" "elm.swallow.colorbar elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.4 elm.icon.4.touch"; script { public readed = 0; } parts { GENLIST_PART_BG_EMAIL_NORMAL GENLIST_PART_BASE PART_LIST_BOTTOMLINE PART_LIST_PADDINGS( GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT, GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE ) GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left") // For Handling checkbox srolling issue we have increased the size of check box // background to 64*64 though the check image is 45*45 as per GUI. These leaves // 9 pixel extra space before the check image and 10 pixel after the check image. // So to adjust this extra space the padding is reduced from 16 to 6. // This means padding will be 6 pixel and extra space before the checkbox will be 10 // So it will again get to 16 pixel as gap after the checkbox as per GUI PART(SPACER, "elm.padding.icon1.right", description { state: "default" 0.0; fixed: 1 0; min: 6 0; max: 6 -1; align: 0 0.5; rel1 { relative: 1 0; to_x: "elm.icon.1"; } rel2 { relative: 1 1; to_x: "elm.icon.1"; } } ) PART(TEXTBLOCK, "elm.text.1", DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top", PARAM_EMAIL_MAIN min: 0 HEIGHT_EMAIL_MAIN; fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing. ) DESCRIPTION_EMAIL_MAIN_OTHERS ) // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited PART(TEXT, "elm.text.4", DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2", PARAM_EMAIL_COUNT min: 45 HEIGHT_EMAIL_MAIN; max: 45 HEIGHT_EMAIL_MAIN; text.min: 1 0; text.align: 0.5 0.65; fixed: 1 1; visible: 0; ) ) // Virtual part for Maxmimum right X axis of TEXT PART(SPACER, "elm.text.limit", DESC_R("elm.icon.3", min: 0 0; max: 0 0; fixed: 1 0; ) ) GENLIST_PART_ICON("elm.icon.3", DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2", fixed: 1 0; ) ) GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT) GENLIST_PART_ICON("elm.icon.4", DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2", min: 45 45; max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN; fixed: 1 0; ) ) GENLIST_PART_ICON("elm.icon.4.touch", DESC_TO("elm.icon.4", rel1.offset: -4 -7; rel2.offset: 26 8; ) ) GENLIST_PART_ICON("elm.icon.2", DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3", fixed: 1 0; ) ) PART(TEXTBLOCK, "elm.text.2", DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.1", PARAM_EMAIL_SUB min: 0 HEIGHT_EMAIL_SUB; fixed: 0 1; ) DESCRIPTION_EMAIL_SUB_OTHERS ) PART(TEXTBLOCK, "elm.text.5", DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom", PARAM_EMAIL_DATE GENLIST_PARAM_TEXT_LIMIT_RT min: 0 HEIGHT_EMAIL_SUB; fixed: 1 0; ) DESCRIPTION_EMAIL_DATE_OTHERS ) GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM) PART(TEXTBLOCK, "elm.text.3", DESC_LRTB("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom", PARAM_EMAIL_CONTENTS min: 0 HEIGHT_EMAIL_CONTENTS; ) DESCRIPTION_EMAIL_CONTENTS ) GENLIST_PART_FOCUS_NORMAL } GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3"; target: "elm.text.4"; target: "elm.text.5"; target: "elm.swallow.colorbar"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3"; target: "elm.icon.4"; target: "elm.icon.4.touch"; ) } // email list with conversation text group { GENLIST_NAME("email.list.conversation/default") inherit: "elm/genlist/item/email.list/default"; data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4 elm.text.5"; parts { PART(TEXT, "elm.text.4", DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2", visible: 1; ) DESCRIPTION_EMAIL_COUNT_OTHERS ) // Virtual part for Maxmimum right X axis of TEXT PART(SPACER, "elm.text.limit", DESC_R("elm.icon.3", min: 45 HEIGHT_EMAIL_MAIN; max: 45 HEIGHT_EMAIL_MAIN; ) ) } } // 2.2.3.13 // email outbox style group { GENLIST_NAME("email.outbox/default") PROLOG_LIST_NORMAL data.item: "texts" "elm.text.1 elm.text.2 elm.text.3"; 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"; script { public readed = 0; } parts { GENLIST_PART_BG_EMAIL_NORMAL GENLIST_PART_BASE PART_LIST_BOTTOMLINE PART_LIST_PADDINGS( GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT, GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE ) GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left") // For Handling checkbox srolling issue we have increased the size of check box // background to 64*64 though the check image is 45*45 as per GUI. These leaves // 9 pixel extra space before the check image and 10 pixel after the check image. // So to adjust this extra space the padding is reduced from 16 to 6. // This means padding will be 6 pixel and extra space before the checkbox will be 10 // So it will again get to 16 pixel as gap after the checkbox as per GUI PART(SPACER, "elm.padding.icon1.right", description { state: "default" 0.0; fixed: 1 0; min: 6 0; max: 6 -1; align: 0 0.5; rel1 { relative: 1 0; to_x: "elm.icon.1"; } rel2 { relative: 1 1; to_x: "elm.icon.1"; } } ) PART(TEXTBLOCK, "elm.text.1", DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top", PARAM_EMAIL_MAIN min: 0 HEIGHT_EMAIL_MAIN; fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing. ) DESCRIPTION_EMAIL_MAIN_OTHERS ) // FIXME: because script cannot be inherited, text.4 is defined here and can be inherited PART(TEXT, "elm.text.4", DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2", PARAM_EMAIL_COUNT min: 0 HEIGHT_EMAIL_MAIN; max: 0 HEIGHT_EMAIL_MAIN; text.min: 1 0; text.align: 0.5 0.65; fixed: 1 0; visible: 0; ) ) // Virtual part for Maxmimum right X axis of TEXT PART(SPACER, "elm.text.limit", DESC_R("elm.icon.3", min: 0 0; max: 0 0; fixed: 1 0; ) ) GENLIST_PART_ICON("elm.icon.3", DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2", fixed: 1 0; ) ) GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT) GENLIST_PART_ICON("elm.icon.4", DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2", min: 45 45; max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN; fixed: 1 0; ) ) GENLIST_PART_ICON("elm.icon.4.touch", DESC_TO("elm.icon.4", rel1.offset: -4 -7; rel2.offset: 26 8; ) ) GENLIST_PART_ICON("elm.icon.2", DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3", fixed: 1 1; ) ) PART(TEXTBLOCK, "elm.text.2", DESC_LRT("elm.icon.2", "elm.padding.icon5.left", "elm.text.1", PARAM_EMAIL_SUB min: 0 HEIGHT_EMAIL_SUB; fixed: 0 1; ) DESCRIPTION_EMAIL_SUB_OTHERS ) GENLIST_PART_PADDING_EMAIL_OUTBOX_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM) PART(TEXTBLOCK, "elm.text.3", DESC_LRTB("elm.padding.icon1.right", "elm.padding.icon5.left", "elm.padding.text2.bottom", "elm.padding.bottom", PARAM_EMAIL_CONTENTS min: 0 HEIGHT_EMAIL_CONTENTS; ) DESCRIPTION_EMAIL_CONTENTS ) GENLIST_PART_PADDING_R("elm.padding.icon5.left", "elm.icon.5") GENLIST_PART_ICON("elm.icon.5", DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.bottom", min: 180 74; max: 180 74; fixed: 1 1; ) ) GENLIST_PART_FOCUS_NORMAL } GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3"; target: "elm.text.4"; target: "elm.swallow.colorbar"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3"; target: "elm.icon.4"; target: "elm.icon.5"; ) } // email outbox style with conversation group { GENLIST_NAME("email.outbox.conversation/default") inherit: "elm/genlist/item/email.outbox/default"; data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.4"; parts { PART(TEXT, "elm.text.4", DESC_LTB("elm.text.1", "elm.padding.top", "elm.icon.5", min: 45 HEIGHT_EMAIL_MAIN; max: 45 HEIGHT_EMAIL_MAIN; visible: 1; ) DESCRIPTION_EMAIL_COUNT_OTHERS ) PART(SPACER, "elm.text.limit", DESC_R("elm.icon.3", min: 45 HEIGHT_EMAIL_MAIN; max: 45 HEIGHT_EMAIL_MAIN; ) ) } } // FIXME: This is temporary style for test purpose // This style has all widgets by itself group { GENLIST_NAME("email.list.test/default") PROLOG_LIST_NORMAL data.item: "texts" "elm.text.1 elm.text.2 elm.text.3 elm.text.5"; data.item: "contents" "elm.swallow.colorbar elm.check.touch elm.icon.4.touch"; images { image: "00_check_activate.png" COMP; image: "00_check_activate_ef.png" COMP; image: "00_check_bg.png" COMP; image: "00_check_bg_ef.png" COMP; image: "00_check_bg_line.png" COMP; } script { public readed = 0; } parts { PART_LIST_BG_NORMAL GENLIST_PART_BASE PART_LIST_BOTTOMLINE PART_LIST_PADDINGS( GENLIST_EMAIL_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT, GENLIST_EMAIL_PADDING_SIZE_TOP_3LINE, GENLIST_EMAIL_PADDING_SIZE_BOTTOM_3LINE ) PART(IMAGE, "elm.check.bg", mouse_events: 0; DESC_L("elm.padding.left", image.normal: "00_check_bg.png"; fill.smooth : 0; ) description { state: "default" 0.0; min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; fixed: 1 1; image.normal: "00_check_bg.png"; fill.smooth : 0; color_class: "W013L1"; } description { state: "pressed" 0.0; inherit: "default" 0.0; color_class: "W013L1P"; } description { state: "disabled" 0.0; inherit: "default" 0.0; color_class: "W013L1D"; } ) PART(IMAGE, "elm.check.bg.effect", mouse_events: 0; DESC_L("elm.padding.left", image.normal: "00_check_bg_ef.png"; fill.smooth : 0; ) description { state: "default" 0.0; min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; fixed: 1 1; image.normal: "00_check_bg_ef.png"; fill.smooth : 0; } ) PART(IMAGE, "elm.check.bg.line", mouse_events: 0; DESC_L("elm.padding.left", image.normal: "00_check_bg_line.png"; fill.smooth : 0; ) description { state: "default" 0.0; min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; fixed: 1 1; image.normal: "00_check_bg_line.png"; fill.smooth : 0; color_class: "W013L2"; } description { state: "pressed" 0.0; inherit: "default" 0.0; color_class: "W013L2P"; } description { state: "disabled" 0.0; inherit: "default" 0.0; color_class: "W013L2D"; } ) PART(IMAGE, "elm.check", mouse_events: 0; DESC_TO("elm.check.bg", visible: 0; image.normal: "00_check_activate.png"; color_class: "W013L3"; ) description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; color_class: "W013L3"; } description { state: "dim" 0.0; inherit: "default" 0.0; visible: 1; color_class: "W013L3D"; } description { state: "pressed" 0.0; inherit: "visible" 0.0; color_class: "W013L3P"; } ) PART(IMAGE, "elm.check.effect", mouse_events: 0; DESC_TO("elm.check.bg", visible: 1; image.normal: "00_check_activate_ef.png"; ) ) // For Handling checkbox srolling issue we have increased the size of check box // background to 64*64 though the check image is 45*45 as per GUI. These leaves // 9 pixel extra space before the check image and 10 pixel after the check image. // So to adjust this extra space the padding is reduced from 16 to 6. // This means padding will be 6 pixel and extra space before the checkbox will be 10 // So it will again get to 16 pixel as gap after the checkbox as per GUI PART(SPACER, "elm.padding.icon1.right", description { state: "default" 0.0; fixed: 1 0; min: 6 0; max: 6 -1; align: 0 0.5; rel1 { relative: 1 0; to_x: "elm.check"; } rel2 { relative: 1 1; to_x: "elm.check"; } } ) PART(TEXTBLOCK, "elm.text.1", DESC_LRT("elm.padding.icon1.right", "elm.text.limit", "elm.padding.top", PARAM_EMAIL_MAIN min: 0 HEIGHT_EMAIL_MAIN; fixed: 1 1; align: 0 0; text.max: 1 0; // This limits text growing. ) DESCRIPTION_EMAIL_MAIN_OTHERS ) // FIXME: because script cannot be inherited, text.5 is defined here and can be inherited PART(TEXT, "elm.text.4", DESC_LTB("elm.text.1", "elm.padding.top", "elm.text.2", PARAM_EMAIL_COUNT min: 45 HEIGHT_EMAIL_MAIN; max: 45 HEIGHT_EMAIL_MAIN; text.min: 1 0; text.align: 0.5 0.65; fixed: 1 1; visible: 0; ) ) // Virtual part for Maxmimum right X axis of TEXT PART(SPACER, "elm.text.limit", DESC_R("elm.icon.3", min: 0 0; max: 0 0; fixed: 1 0; ) ) PART(IMAGE, "elm.icon.3", DESC_RTB("elm.padding.icon4.left", "elm.padding.top", "elm.text.2", fixed: 1 0; min: 0 0; max: 0 0; image.normal: "00_icon_favorite_bg_45x45.png"; color_class: "F022L2i"; visible: 0; ) description { state: "visible" 0.0; inherit: "default" 0.0; min: 45 45; visible: 1; } ) GENLIST_PART_PADDING_R_SIZE("elm.padding.icon4.left", "elm.icon.4", GENLIST_EMAIL_PADDING_SIZE_DEFAULT) PART(IMAGE, "elm.icon.4", DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2", max: HEIGHT_EMAIL_MAIN HEIGHT_EMAIL_MAIN; min: 0 0; max: 0 0; fixed: 1 0; image.normal: "00_icon_favorite_bg_45x45.png"; color_class: "F022L1i"; visible: 0; ) description { state: "visible" 0.0; inherit: "default" 0.0; min: 45 45; visible: 1; } description { state: "enable" 0.0; inherit: "default" 0.0; image.normal: "00_icon_favorite_bg_45x45.png"; color_class: "F022L2i"; min: 45 45; visible: 1; } ) GENLIST_PART_ICON("elm.icon.4.touch", DESC_TO("elm.icon.4", rel1.offset: -4 -7; rel2.offset: 26 8; ) ) PART(IMAGE, "elm.icon.2", DESC_LTB("elm.padding.icon1.right", "elm.text.1", "elm.text.3", min: 0 0; max: 0 0; fixed: 1 0; image.normal: "00_icon_favorite_bg_45x45.png"; color_class: "F022L1i"; visible: 0; ) description { state: "visible" 0.0; inherit: "default" 0.0; min: 45 45; visible: 1; } ) PART(TEXTBLOCK, "elm.text.2", DESC_LRT("elm.icon.2", "elm.text.5", "elm.text.1", PARAM_EMAIL_SUB min: 0 HEIGHT_EMAIL_SUB; fixed: 0 1; ) DESCRIPTION_EMAIL_SUB_OTHERS ) PART(TEXTBLOCK, "elm.text.5", DESC_RTB("elm.padding.right", "elm.text.1", "elm.padding.text2.bottom", PARAM_EMAIL_DATE GENLIST_PARAM_TEXT_LIMIT_RT min: 0 HEIGHT_EMAIL_SUB; fixed: 1 0; ) DESCRIPTION_EMAIL_DATE_OTHERS ) GENLIST_PART_PADDING_EMAIL_BOTTOM_TO_SIZE( "elm.padding.text2.bottom", GENLIST_EMAIL_PADDING_SIZE_SUB_TEXT_BOTTOM) PART(TEXTBLOCK, "elm.text.3", DESC_LRTB("elm.padding.icon1.right", "elm.padding.right", "elm.padding.text2.bottom", "elm.padding.bottom", PARAM_EMAIL_CONTENTS min: 0 HEIGHT_EMAIL_CONTENTS; ) DESCRIPTION_EMAIL_CONTENTS ) GENLIST_PART_ICON("elm.check.touch", DESC_TO("elm.check", ) ) GENLIST_PART_FOCUS_NORMAL } GENLIST_PROGRAMS_EMAIL( target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3"; target: "elm.text.4"; target: "elm.text.5"; target: "elm.swallow.colorbar"; target: "elm.icon.4.touch"; target: "elm.check.touch"; ) program { name: "check_show"; signal: "elm,state,check,show"; source: "*"; action: STATE_SET "visible" 0.0; target: "elm.check"; } program { name: "check_hide"; signal: "elm,state,check,hide"; source: "*"; action: STATE_SET "default" 0.0; target: "elm.check"; } program { name: "icon2_show"; signal: "elm,state,icon2,show"; source: "*"; action: STATE_SET "visible" 0.0; target: "elm.icon.2"; } program { name: "icon3_show"; signal: "elm,state,icon3,show"; source: "*"; action: STATE_SET "visible" 0.0; target: "elm.icon.3"; } program { name: "icon4_show"; signal: "elm,state,icon4,show"; source: "*"; action: STATE_SET "visible" 0.0; target: "elm.icon.4"; } program { name: "icon4_enable"; signal: "elm,state,icon4,enable"; source: "*"; action: STATE_SET "enable" 0.0; target: "elm.icon.4"; } program { name: "icon4_disable"; signal: "elm,state,icon4,disable"; source: "*"; action: STATE_SET "visible" 0.0; target: "elm.icon.4"; } }