/** THEMES for ChatON application */
-
-//naviframe
-#define NAVIFRAME_TITLE_HEIGHT_INC 72
-#define NAVIFRAME_SUBTITLE_HEIGHT_INC 28
-#define NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC 3
-#define NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC 3
-#define NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC 15
-#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 82 72
-#define NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC 15
-#define NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 12
-#define NAVIFRAME_BADGE_HEIGHT_INC 32
-#define NAVIFRAME_BADGE2_PADDING_WIDTH_INC (NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC + NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC + NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC)
-#define NAVIFRAME_TOOLBAR_HEIGHT_INC 80
-#define NAVIFRAME_TOOLBAR_COLOR_INC 245 245 245 255
-#define NAVIFRAME_RIGHT_BTN_PADDING 15 72
-#define NAVIFRAME_RIGHT_BTN_SWALLOW_SIZE 40 72
-
-//Button
-#define BUDDIES_BUTTON_MIN_WIDTH 43
-#define BUDDIES_BUTTON_MIN_HEIGHT 31
-
-#define CANCEL_BUTTON_MIN_WIDTH 33
-#define CANCEL_BUTTON_MIN_HEIGHT 32
-#define DOWNLOAD_BUTTON_MIN_WIDTH 32
-#define DOWNLOAD_BUTTON_MIN_HEIGHT 33
-#define PLAY_BUTTON_MIN_WIDTH 32
-#define PLAY_BUTTON_MIN_HEIGHT 32
-#define UPLOAD_BUTTON_MIN_WIDTH 33
-#define UPLOAD_BUTTON_MIN_HEIGHT 33
-
-#define SEARCH_BUTTON_MIN_WIDTH 30
-#define SEARCH_BUTTON_MIN_HEIGHT 30
-#define ATTACH_BUTTON_MIN_WIDTH 27
-#define ATTACH_BUTTON_MIN_HEIGHT 34
-#define MUTE_BUTTON_MIN_WIDTH 28
-#define MUTE_BUTTON_MIN_HEIGHT 34
-#define EMOTICON_BUTTON_MIN_WIDTH 26
-#define EMOTICON_BUTTON_MIN_HEIGHT 26
-#define STICKER_BUTTON_MIN_WIDTH 40
-#define STICKER_BUTTON_MIN_HEIGHT 45
-#define SEND_BUTTON_MIN_WIDTH 45
-#define SEND_BUTTON_MIN_HEIGHT 45
-#define EDIT_BUTTON_MIN_WIDTH 34
-#define EDIT_BUTTON_MIN_HEIGHT 33
-#define DROPDOWN_BUTTON_MIN_WIDTH 31
-#define DROPDOWN_BUTTON_MIN_HEIGHT 17
-
-
-//entry
-#define BUBBLE_WIDTH 380
-
-#define BUBBLE_DATE_PAD 15
-#define BUBBLE_DATE_HEIGHT 30
-
-#define BUBBLE_TOP_PAD 10
-#define BUBBLE_RIGHT_PAD 15
-#define BUBBLE_ICON_PAD 6
-
-#define BUBBLE_LAYOUT_SELECT_PAD 10
-#define BUBBLE_LAYOUT_BOTTOM_PAD 11
-
-#define ENTRY_BUBBLE_CALLERID_PAD 115
-#define ENTRY_BUBBLE_CALLERID_ICON_PAD 16
-#define ENTRY_BUBBLE_CALLERID_WIDTH 99
-#define ENTRY_BUBBLE_CALLERID_HEIGHT 50
-#define ENTRY_BUBBLE_GROUPCHAT_PAD 42
-#define ENTRY_BUBBLE_GROUPCHAT_TEXT_PAD 38
-#define ENTRY_BUBBLE_STATUS_PAD 140
-#define ENTRY_BUBBLE_READ_LEFTTOP_PAD 33 17 //15 +2pixels added because of empty space in bubble layout top, 15+18px - 18px is bubble tail
-#define ENTRY_BUBBLE_READ_LEFTTOP_GC_PAD 35 45
-#define ENTRY_BUBBLE_READ_RIGHTTOP_GC_PAD 15 45
-#define ENTRY_BUBBLE_READ_RIGHTTOP_PAD 15 15
-#define ENTRY_BUBBLE_READ_RIGHTBOTTOM_PAD 15 35
-#define ENTRY_BUBBLE_SENT_LEFTTOP_PAD 15 17 //15 +2pixels added because of empty space in bubble layout top
-#define ENTRY_BUBBLE_SENT_RIGHTTOP_PAD 33 17 //15 +2pixels added because of empty space in bubble layout top, 15+18px - 18px is bubble tail
-#define ENTRY_BUBBLE_SENT_LEFTBOTTOM_PAD 17 35 //15 +2pixels added because of empty space in bubble layout left
-#define ENTRY_BUBBLE_MIDDLE_PAD 14
-#define ENTRY_BUBBLE_STATUS_TEXT_ICON_PAD 10 14
-#define ENTRY_BUBBLE_STATUS_TIME_SIZE 100 30
-#define ENTRY_BUBBLE_ICON_TOP_PAD 12
-#define ENTRY_BUBBLE_ICON_PAD 10
-#define ENTRY_BUBBLE_TEXT_MIN 81 30
-#define ENTRY_BUBBLE_TEXT_SIZE 25
-#define ENTRY_BUBBLE_RECEV_TEXT_COLOR "#000000"
-#define ENTRY_BUBBLE_RECEV_TEXT_SHADOW_STYLE "shadow,bottom"
-#define ENTRY_BUBBLE_GROUPCHAT_SIZE_INC 30
-#define ENTRY_BUBBLE_GROUPCHAT_COLOR_INC 110 111 118 255
-
-//#define ENTRY_BUBBLE_TIME_COLOR 141 141 141 255
-#define ENTRY_BUBBLE_TIME_COLOR 255 255 255 255
-
-#define ENTRY_BUBBLE_EX_PAD 58
-#define ENTRY_BUBBLE_IX_PAD 20
-#define ENTRY_BUBBLE_Y_PAD 15
-#define ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC 26
-
-//Check and Radio
-#define CHECK_ICON_SIZE 30 31
-
-//Genlist/Layout
-#define SELECTION_BG_SIZE 480 50
-#define SELECT_ALL_TEXT_SIZE 25
-#define LIST_SELECT_ALL_PADDING_LEFT_SIZE 15
-#define LIST_SELECT_ALL_PADDING_RIGHT_SIZE 10
-#define LOADING_ICON_SIZE 38 38
-
-//progressbar
-#define PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC 3
-
-//for media_status_icon_area
-#define MEDIA_HEIGHT 147
-#define MEDIA_WIDTH 234
-#define MEDIA_DETAILS_LAYOUT_HT 24
-#define VCONTACT_HEIGHT 87
-#define VCONTACT_WIDTH 266
-
collections
{
/* This is EFL-oriented features */
base_scale: 2.6;
images {
- image: "telegram_bubble_bg_receive_ef.#.png" COMP;
- image: "telegram_bubble_bg_receive.#.png" COMP;
- image: "telegram_bubble_bg_send_ef.#.png" COMP;
- image: "telegram_bubble_bg_send.#.png" COMP;
- image: "ic_message_read.png" COMP;
+ image: "telegram_bubble_bg_receive_ef.#.png" COMP;
+ image: "telegram_bubble_bg_receive.#.png" COMP;
+ image: "telegram_bubble_bg_send_ef.#.png" COMP;
+ image: "telegram_bubble_bg_send.#.png" COMP;
+ image: "ic_message_read.png" COMP;
}
styles {
style {
- name: "entry_bubble_date_area_textblock_style";
- base: "font=Tizen:style=Regular font_size="ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" left_margin=2 right_margin=2 wrap=mixed text_class=entry";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "tab" "\t";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style {
name: "entry_bubble_single_textblock_style";
base: "font=Tizen:style=Regular font_size=36 color=#FAFAFA color_class=ATO014 align=left";
}
}
}
-/****************** sandeep ****************/
-
-
-group { name: "elm/entry/base-noedit/readmessage_audio";
- parts {
- part{
- name: "swallow.audio_bg";
- type: RECT;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 0.9 1.0; }
- color: 0 0 0 0;
- }
- }
- part {
- name: "elm.bubble.callerid.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- description {
- state: "callerid_on" 0.0;
- inherit: "default" 0.0;
- min: ENTRY_BUBBLE_CALLERID_PAD 0;
- }
- }
- part {
- name: "elm.callerid.icon.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_CALLERID_ICON_PAD 0;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.swallow.callerid";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
- max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1 {
- to: "elm.callerid.icon.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.callerid.icon.pad";
- relative: 1.0 0.0;
- }
- visible: 0;
- }
- description { state: "callerid_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.callerid.bottom.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "callerid_on" 0.0;
- rel1 {
- to: "elm.swallow.callerid";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.swallow.callerid";
- relative: 0.0 1.0;
- }
- align: 0.0 0.0;
- min: 0 0;
- }
- }
- part {
- name: "elm.bubble.groupchat.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "elm.bubble.callerid.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.bubble.callerid.pad";
- relative: 1.0 0.0;
- }
- align: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- description {
- state: "groupchat_on";
- inherit: "default" 0.0;
- min: 0 ENTRY_BUBBLE_GROUPCHAT_PAD;
- }
- }
- part {
- name: "elm.groupchat.text.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.bubble.groupchat.pad";
- rel2 {
- to: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- align: 0.0 0.5;
- min: ENTRY_BUBBLE_GROUPCHAT_TEXT_PAD 0;
- fixed: 1 0;
- }
- }
- part {
- name: "elm.text.groupchat";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- text {
- font: "Tizen:style=Regular";
- size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
- align: 0.0 0.0;
- text_class: "tizen";
- min: 1 1;
- }
- rel1 {
- to: "elm.groupchat.text.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.groupchat.text.pad";
- relative: 1.0 0.0;
- }
- color: ENTRY_BUBBLE_GROUPCHAT_COLOR_INC;
- visible: 0;
- }
- description { state: "groupchat_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
-
- part {
- name: "elm.bubble.status.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 1.0 0.0;
- align: 1.0 0.5;
- min: ENTRY_BUBBLE_STATUS_PAD 0;
- fixed: 1 0;
- }
- }
-
- part {
- name: "elm.bubble.lefttop_gc.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- }
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_LEFTTOP_GC_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.bubble.righttop_gc.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- /* rel1 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- align: 1.0 0.0;*/
- rel1 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
- rel2 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_RIGHTTOP_GC_PAD;
- fixed: 1 1;
- }
- }
-
- part {
- name: "elm.bubble.lefttop.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- }
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_LEFTTOP_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.bubble.righttop.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- /* rel1 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }*/
- rel1 {
- to: "elm.bubble.lefttop.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
- rel2 {
- to: "elm.bubble.lefttop.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
-
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_RIGHTTOP_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.image.bg.ef";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.bubble.lefttop.pad";
- rel2.to: "swallow.audio_bg";
- image {
- normal: "telegram_bubble_bg_receive_ef.#.png";
- }
- color: 106 126 204 255;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color_class: "W042";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "W0551";
- }
- }
- part {
- name: "elm.image.bg";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.bubble.lefttop.pad";
- rel2.to: "swallow.audio_bg";
- image {
- normal: "telegram_bubble_bg_receive.#.png";
- }
- color: 106 126 204 255;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color_class: "W042";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "W0551";
- }
- }
-
-part {
-name: "elm.text.gc";
-type:TEXT;
- mouse_events: 1;
- scale: 1;
-
- description {
- state: "default" 0.0;
- min: 1 1;
- align: 0.0 1.0;
- rel1 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "elm.bubble.righttop_gc.pad";
- relative: 0.0 1.0;
- }
- visible: 1;
- color_class: "T058";
- text {
- font: "Tizen:style=Regular";
- size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
- align: 0.0 0.0;
- text_class: "tizen";
- min: 1 1;
- }
-}
-}
-
- part {
- name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 1;
- scale: 1;
- entry_mode: PLAIN;
- select_mode: BLOCK_HANDLE;
- cursor_mode: BEFORE;
- multiline: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_TEXT_MIN;
- rel1 {
- to: "elm.bubble.lefttop.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "elm.bubble.righttop.pad";
- relative: 0.0 1.0;
- }
- text {
- style: "entry_bubble_receive_textblock_style";
- min: 0 1;
- max: 1 0;
- align: 0.0 0.0;
- }
- }
- description { state: "gc" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "elm.bubble.righttop_gc.pad";
- relative: 0.0 1.0;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_disabled_style";
- }
- }
- }
- part
- {
- name: "media_status_icon";
- type: SWALLOW;
- description
- {
- state: "default" 0.0;
- visible: 1;
- align: 0.5 0;
- max: MEDIA_WIDTH MEDIA_HEIGHT-MEDIA_DETAILS_LAYOUT_HT;
- rel1
- {
- to: "elm.text";
- relative: 0.0 0.0;
- }
- rel2
- {
- to: "elm.text";
- relative: 1.0 1.0;
- offset:0 -(MEDIA_DETAILS_LAYOUT_HT);
- }
- }
- description
- {
- state: "vcontact" 0.0;
- inherit: "default" 0.0;
- max: VCONTACT_WIDTH VCONTACT_HEIGHT;
- rel2
- {
- to: "elm.text";
- relative: 1.0 1.0;
- }
- }
- }
- part { name: "event.rect";
- type: RECT;
- repeat_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- rel1.to: "elm.image.bg";
- rel2.to: "elm.image.bg";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "elm.rect.middle.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2.to: "elm.text";
- align: 0.5 0.0;
- min: 0 0;
- }
- description {
- state: "show" 0.0;
- inherit: "default" 0.0;
- min: 0 ENTRY_BUBBLE_MIDDLE_PAD;
- }
- }
- part {
- name: "elm.swallow.end";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "elm.rect.middle.pad";
- relative: 0.0 1.0;
- }
- rel2.to: "elm.rect.middle.pad";
- align: 0.0 0.0;
- }
- }
- part {
- name: "elm.bubble.rightbottom.pad";
- type: SPACER;
- scale: 1;
- description {
- /* rel1 {
- to: "elm.swallow.end";
- relative: 1.0 1.0;
- }
- rel2.to: "elm.swallow.end";*/
- rel1{
- to: "elm.text";
- relative: 1.0 1.0;
- }
- rel2.to: "elm.text";
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_RIGHTBOTTOM_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.icon.top.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- rel1 {
- to: "elm.bubble.rightbottom.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.bubble.rightbottom.pad";
- relative: 0.0 1.0;
- }
- min: 0 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- min: 0 ENTRY_BUBBLE_ICON_TOP_PAD;
- }
- }
- part {
- name: "elm.swallow.icon1";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.text";
- to_y: "elm.icon.top.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.text";
- to_y: "elm.icon.top.pad";
- relative: 0.0 1.0;
- }
- min: 0 0;
- align: 0.0 0.0;
- visible: 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
-
- part {
- name: "pad_top";
- type: SPACER;
- description {
- state: "default" 0.0;
- min: 10 10;
- max: -1 10;
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.text";
- relative: 1.0 1.0;
- }
- }
- }
-
- part {
- name: "pad_bottom";
- type: SPACER;
- description {
- state: "default" 0.0;
- min: 10 10;
- max: -1 10;
- rel1 {
- to_x: "elm.text";
- relative: 0.0 1.0;
- to_y: "elm.image.bg";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.text";
- relative: 1.0 1.0;
- to_y: "elm.image.bg";
- relative: 1.0 1.0;
- }
- align: 0.5 1;
- }
- }
-/*
- part {
- name: "time";
- type:TEXT;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 1;
- align: 1.0 0.5;
- rel1 {
- to: "pad_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "pad_bottom";
- relative: 1.0 0.0;
- }
- visible: 1;
- //color_class: "T058";
- color: ENTRY_BUBBLE_TIME_COLOR;
- text {
- min: 1 1;
- align: 0.5 0.5;
- //text_class: "T058";
- size: 10;
- }
- }
- }
-*/
- part{
- name: "time";
- type:TEXT;
- mouse_events: 1;
- scale: 1;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.65 0.8; }
- rel2 { relative: 0.85 0.95; }
- visible: 1;
- //color_class: "T058";
- color: ENTRY_BUBBLE_TIME_COLOR;
- text {
- min: 1 1;
- align: 0.5 0.5;
- //text_class: "T058";
- size: 10;
- }
- }
- }
- part {
- name: "elm.icon.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.swallow.icon1";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.swallow.icon1";
- relative: 1.0 1.0;
- }
- min: ENTRY_BUBBLE_ICON_PAD 0;
- align: 0.0 0.5;
- }
- }
- part {
- name: "elm.swallow.icon2";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.icon.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.icon.pad";
- relative: 1.0 1.0;
- }
- min: 0 0;
- align: 0.0 0.5;
- visible: 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.bottom.pad";
- type: SPACER;
- scale: 1;
- description {
- rel1 {
- to_y: "elm.swallow.icon1";
- relative: 0.0 1.0;
- }
- min: 0 0;
- }
- }
- part {
- name: "elm.status.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.bubble.rightbottom.pad";
- relative: 1.0 1.0;
- }
- rel2.to: "elm.bubble.rightbottom.pad";
- min: ENTRY_BUBBLE_STATUS_TEXT_ICON_PAD;
- align: 0.0 1.0;
- fixed: 1 1;
- }
- }
- part { name: "elm.text.time";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "T0220";
- text {
- text_class: "T0220";
- min: 1 1;
- align: 0.0 1.0;
- }
- rel1 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- align: 0.0 1.0;
- min: ENTRY_BUBBLE_STATUS_TIME_SIZE;
- fixed: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text.status";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "T0220";
- text {
- text_class: "T0220";
- min: 0 1;
- align: 0.0 1.0;
- }
- rel1.to: "elm.text.time";
- rel2 {
- to: "elm.text.time";
- relative: 1.0 0.0;
- }
- align: 0.0 1.0;
- min: ENTRY_BUBBLE_STATUS_TIME_SIZE;
- fixed: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "elm.swallow.status";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- align: 0.0 1.0;
- fixed: 1 1;
- visible: 0;
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "focus";
- signal: "load";
- source: "";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- target: "event.rect";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "event.rect";
- }
- program { name: "mouse_down";
- signal: "mouse,down,*";
- source: "event.rect";
- action: STATE_SET "pressed" 0.0;
- target: "elm.image.bg";
- }
- program { name: "mouse_up";
- signal: "mouse,up,*";
- source: "event.rect";
- action: STATE_SET "default" 0.0;
- target: "elm.image.bg";
- }
- program { name: "go_callerid_on";
- signal: "elm,state,callerid,enabled";
- source: "elm";
- action: STATE_SET "callerid_on" 0.0;
- target: "elm.bubble.callerid.pad";
- target: "elm.swallow.callerid";
- target: "elm.callerid.bottom.pad";
- }
- program { name: "go_callerid_off";
- signal: "elm,state,callerid,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.bubble.callerid.pad";
- target: "elm.swallow.callerid";
- target: "elm.callerid.bottom.pad";
- }
- program { name: "go_groupchat_on";
- signal: "elm,state,groupchat,enabled";
- source: "elm";
- action: STATE_SET "gc" 0.0;
- target: "elm.text";
- }
- program { name: "go_groupchat_off";
- signal: "elm,state,groupchat,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "go_textstatus_on";
- signal: "elm,state,text,status,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text.time";
- target: "elm.text.status";
- after: "go_contentstatus_off";
- }
- program { name: "go_textstatus_off";
- signal: "elm,state,text,status,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text.time";
- target: "elm.text.status";
- }
- program { name: "go_contentstatus_on";
- signal: "elm,state,content,status,enabled";
- source: "elm";
- action: STATE_SET "enabled" 0.0;
- target: "elm.swallow.status";
- after: "go_textstatus_off";
- }
- program { name: "go_contentstatus_off";
- signal: "elm,state,content,status,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.status";
- }
- program { name: "show_middle_pad";
- signal: "elm,state,middle,pad,enabled";
- source: "elm";
- action: STATE_SET "show" 0.0;
- target: "elm.rect.middle.pad";
- }
- program { name: "hide_middle_pad";
- signal: "elm,state,middle,pad,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.rect.middle.pad";
- }
- program { name: "go_contents_on";
- signal: "elm,state,contents,enabled";
- source: "elm";
- action: STATE_SET "contents_on" 0.0;
- target: "elm.icon.top.pad";
- target: "elm.swallow.icon1";
- target: "elm.swallow.icon2";
- }
- program { name: "go_contents_off";
- signal: "elm,state,contents,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.icon.top.pad";
- target: "elm.swallow.icon1";
- target: "elm.swallow.icon2";
- }
- program { name: "media_status_vcontact";
- signal: "elm,state,set,vcontact,status";
- source: "elm";
- action: STATE_SET "vcontact" 0.0;
- target: "media_status_icon";
- }
- }
- }
-
-/******************* sandeep ***************/
-
-/***************** land *******************/
-
-group { name: "elm/entry/base-noedit/readmessage_audio_land";
- parts {
- part{
- name: "swallow.audio_bg";
- type: RECT;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 0.5 1.0; }
- color: 0 0 0 0;
- }
- }
- part {
- name: "elm.bubble.callerid.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- description {
- state: "callerid_on" 0.0;
- inherit: "default" 0.0;
- min: ENTRY_BUBBLE_CALLERID_PAD 0;
- }
- }
- part {
- name: "elm.callerid.icon.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_CALLERID_ICON_PAD 0;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.swallow.callerid";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
- max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1 {
- to: "elm.callerid.icon.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.callerid.icon.pad";
- relative: 1.0 0.0;
- }
- visible: 0;
- }
- description { state: "callerid_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.callerid.bottom.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- }
- description { state: "callerid_on" 0.0;
- rel1 {
- to: "elm.swallow.callerid";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.swallow.callerid";
- relative: 0.0 1.0;
- }
- align: 0.0 0.0;
- min: 0 0;
- }
- }
- part {
- name: "elm.bubble.groupchat.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "elm.bubble.callerid.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.bubble.callerid.pad";
- relative: 1.0 0.0;
- }
- align: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- description {
- state: "groupchat_on";
- inherit: "default" 0.0;
- min: 0 ENTRY_BUBBLE_GROUPCHAT_PAD;
- }
- }
- part {
- name: "elm.groupchat.text.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.bubble.groupchat.pad";
- rel2 {
- to: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- align: 0.0 0.5;
- min: ENTRY_BUBBLE_GROUPCHAT_TEXT_PAD 0;
- fixed: 1 0;
- }
- }
- part {
- name: "elm.text.groupchat";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- text {
- font: "Tizen:style=Regular";
- size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
- align: 0.0 0.0;
- text_class: "tizen";
- min: 1 1;
- }
- rel1 {
- to: "elm.groupchat.text.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.groupchat.text.pad";
- relative: 1.0 0.0;
- }
- color: ENTRY_BUBBLE_GROUPCHAT_COLOR_INC;
- visible: 0;
- }
- description { state: "groupchat_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
-
- part {
- name: "elm.bubble.status.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.relative: 1.0 0.0;
- align: 1.0 0.5;
- min: ENTRY_BUBBLE_STATUS_PAD 0;
- fixed: 1 0;
- }
- }
-
- part {
- name: "elm.bubble.lefttop_gc.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- }
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_LEFTTOP_GC_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.bubble.righttop_gc.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- /* rel1 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- align: 1.0 0.0;*/
- rel1 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
- rel2 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_RIGHTTOP_GC_PAD;
- fixed: 1 1;
- }
- }
-
- part {
- name: "elm.bubble.lefttop.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- }
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_LEFTTOP_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.bubble.righttop.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- /* rel1 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }*/
- rel1 {
- to: "elm.bubble.lefttop.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
- rel2 {
- to: "elm.bubble.lefttop.pad";
- relative: 0.0 0.0;
- offset: 374 0;
- }
-
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_RIGHTTOP_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.image.bg.ef";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.bubble.lefttop.pad";
- rel2.to: "swallow.audio_bg";
- image {
- normal: "telegram_bubble_bg_receive_ef.#.png";
- }
- color: 106 126 204 255;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color_class: "W042";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "W0551";
- }
- }
- part {
- name: "elm.image.bg";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1.to: "elm.bubble.lefttop.pad";
- rel2.to: "swallow.audio_bg";
- image {
- normal: "telegram_bubble_bg_receive.#.png";
- }
- color: 106 126 204 255;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color_class: "W042";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "W0551";
- }
- }
-
-part {
-name: "elm.text.gc";
-type:TEXT;
- mouse_events: 1;
- scale: 1;
-
- description {
- state: "default" 0.0;
- min: 1 1;
- align: 0.0 1.0;
- rel1 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "elm.bubble.righttop_gc.pad";
- relative: 0.0 1.0;
- }
- visible: 1;
- color_class: "T058";
- text {
- font: "Tizen:style=Regular";
- size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
- align: 0.0 0.0;
- text_class: "tizen";
- min: 1 1;
- }
-}
-}
-
- part {
- name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 1;
- scale: 1;
- entry_mode: PLAIN;
- select_mode: BLOCK_HANDLE;
- cursor_mode: BEFORE;
- multiline: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_TEXT_MIN;
- rel1 {
- to: "elm.bubble.lefttop.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "elm.bubble.righttop.pad";
- relative: 0.0 1.0;
- }
- text {
- style: "entry_bubble_receive_textblock_style";
- min: 0 1;
- max: 1 0;
- align: 0.0 0.0;
- }
- }
- description { state: "gc" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to: "elm.bubble.lefttop_gc.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "elm.bubble.righttop_gc.pad";
- relative: 0.0 1.0;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_disabled_style";
- }
- }
- }
- part
- {
- name: "media_status_icon";
- type: SWALLOW;
- description
- {
- state: "default" 0.0;
- visible: 1;
- align: 0.5 0;
- max: MEDIA_WIDTH MEDIA_HEIGHT-MEDIA_DETAILS_LAYOUT_HT;
- rel1
- {
- to: "elm.text";
- relative: 0.0 0.0;
- }
- rel2
- {
- to: "elm.text";
- relative: 1.0 1.0;
- offset:0 -(MEDIA_DETAILS_LAYOUT_HT);
- }
- }
- description
- {
- state: "vcontact" 0.0;
- inherit: "default" 0.0;
- max: VCONTACT_WIDTH VCONTACT_HEIGHT;
- rel2
- {
- to: "elm.text";
- relative: 1.0 1.0;
- }
- }
- }
- part { name: "event.rect";
- type: RECT;
- repeat_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- rel1.to: "elm.image.bg";
- rel2.to: "elm.image.bg";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "elm.rect.middle.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2.to: "elm.text";
- align: 0.5 0.0;
- min: 0 0;
- }
- description {
- state: "show" 0.0;
- inherit: "default" 0.0;
- min: 0 ENTRY_BUBBLE_MIDDLE_PAD;
- }
- }
- part {
- name: "elm.swallow.end";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "elm.rect.middle.pad";
- relative: 0.0 1.0;
- }
- rel2.to: "elm.rect.middle.pad";
- align: 0.0 0.0;
- }
- }
- part {
- name: "elm.bubble.rightbottom.pad";
- type: SPACER;
- scale: 1;
- description {
- /* rel1 {
- to: "elm.swallow.end";
- relative: 1.0 1.0;
- }
- rel2.to: "elm.swallow.end";*/
- rel1{
- to: "elm.text";
- relative: 1.0 1.0;
- }
- rel2.to: "elm.text";
- align: 0.0 0.0;
- min: ENTRY_BUBBLE_READ_RIGHTBOTTOM_PAD;
- fixed: 1 1;
- }
- }
- part {
- name: "elm.icon.top.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- rel1 {
- to: "elm.bubble.rightbottom.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.bubble.rightbottom.pad";
- relative: 0.0 1.0;
- }
- min: 0 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- min: 0 ENTRY_BUBBLE_ICON_TOP_PAD;
- }
- }
- part {
- name: "elm.swallow.icon1";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.text";
- to_y: "elm.icon.top.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.text";
- to_y: "elm.icon.top.pad";
- relative: 0.0 1.0;
- }
- min: 0 0;
- align: 0.0 0.0;
- visible: 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
-
- part {
- name: "pad_top";
- type: SPACER;
- description {
- state: "default" 0.0;
- min: 10 10;
- max: -1 10;
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.text";
- relative: 1.0 1.0;
- }
- }
- }
-
- part {
- name: "pad_bottom";
- type: SPACER;
- description {
- state: "default" 0.0;
- min: 10 10;
- max: -1 10;
- rel1 {
- to_x: "elm.text";
- relative: 0.0 1.0;
- to_y: "elm.image.bg";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.text";
- relative: 1.0 1.0;
- to_y: "elm.image.bg";
- relative: 1.0 1.0;
- }
- align: 0.5 1;
- }
- }
-/*
- part {
- name: "time";
- type:TEXT;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 1;
- align: 1.0 0.5;
- rel1 {
- to: "pad_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "pad_bottom";
- relative: 1.0 0.0;
- }
- visible: 1;
- //color_class: "T058";
- color: ENTRY_BUBBLE_TIME_COLOR;
- text {
- min: 1 1;
- align: 0.5 0.5;
- //text_class: "T058";
- size: 10;
- }
- }
- }
-*/
- part{
- name: "time";
- type:TEXT;
- mouse_events: 1;
- scale: 1;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.3 0.8; }
- rel2 { relative: 0.5 0.95; }
- visible: 1;
- //color_class: "T058";
- color: ENTRY_BUBBLE_TIME_COLOR;
- text {
- min: 1 1;
- align: 0.5 0.5;
- //text_class: "T058";
- size: 10;
- }
- }
- }
- part {
- name: "elm.icon.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.swallow.icon1";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.swallow.icon1";
- relative: 1.0 1.0;
- }
- min: ENTRY_BUBBLE_ICON_PAD 0;
- align: 0.0 0.5;
- }
- }
- part {
- name: "elm.swallow.icon2";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.icon.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.icon.pad";
- relative: 1.0 1.0;
- }
- min: 0 0;
- align: 0.0 0.5;
- visible: 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "elm.bottom.pad";
- type: SPACER;
- scale: 1;
- description {
- rel1 {
- to_y: "elm.swallow.icon1";
- relative: 0.0 1.0;
- }
- min: 0 0;
- }
- }
- part {
- name: "elm.status.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.bubble.rightbottom.pad";
- relative: 1.0 1.0;
- }
- rel2.to: "elm.bubble.rightbottom.pad";
- min: ENTRY_BUBBLE_STATUS_TEXT_ICON_PAD;
- align: 0.0 1.0;
- fixed: 1 1;
- }
- }
- part { name: "elm.text.time";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "T0220";
- text {
- text_class: "T0220";
- min: 1 1;
- align: 0.0 1.0;
- }
- rel1 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- align: 0.0 1.0;
- min: ENTRY_BUBBLE_STATUS_TIME_SIZE;
- fixed: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text.status";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "T0220";
- text {
- text_class: "T0220";
- min: 0 1;
- align: 0.0 1.0;
- }
- rel1.to: "elm.text.time";
- rel2 {
- to: "elm.text.time";
- relative: 1.0 0.0;
- }
- align: 0.0 1.0;
- min: ENTRY_BUBBLE_STATUS_TIME_SIZE;
- fixed: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part {
- name: "elm.swallow.status";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "elm.status.pad";
- relative: 1.0 0.0;
- }
- align: 0.0 1.0;
- fixed: 1 1;
- visible: 0;
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "focus";
- signal: "load";
- source: "";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- target: "event.rect";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "event.rect";
- }
- program { name: "mouse_down";
- signal: "mouse,down,*";
- source: "event.rect";
- action: STATE_SET "pressed" 0.0;
- target: "elm.image.bg";
- }
- program { name: "mouse_up";
- signal: "mouse,up,*";
- source: "event.rect";
- action: STATE_SET "default" 0.0;
- target: "elm.image.bg";
- }
- program { name: "go_callerid_on";
- signal: "elm,state,callerid,enabled";
- source: "elm";
- action: STATE_SET "callerid_on" 0.0;
- target: "elm.bubble.callerid.pad";
- target: "elm.swallow.callerid";
- target: "elm.callerid.bottom.pad";
- }
- program { name: "go_callerid_off";
- signal: "elm,state,callerid,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.bubble.callerid.pad";
- target: "elm.swallow.callerid";
- target: "elm.callerid.bottom.pad";
- }
- program { name: "go_groupchat_on";
- signal: "elm,state,groupchat,enabled";
- source: "elm";
- action: STATE_SET "gc" 0.0;
- target: "elm.text";
- }
- program { name: "go_groupchat_off";
- signal: "elm,state,groupchat,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "go_textstatus_on";
- signal: "elm,state,text,status,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text.time";
- target: "elm.text.status";
- after: "go_contentstatus_off";
- }
- program { name: "go_textstatus_off";
- signal: "elm,state,text,status,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text.time";
- target: "elm.text.status";
- }
- program { name: "go_contentstatus_on";
- signal: "elm,state,content,status,enabled";
- source: "elm";
- action: STATE_SET "enabled" 0.0;
- target: "elm.swallow.status";
- after: "go_textstatus_off";
- }
- program { name: "go_contentstatus_off";
- signal: "elm,state,content,status,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.status";
- }
- program { name: "show_middle_pad";
- signal: "elm,state,middle,pad,enabled";
- source: "elm";
- action: STATE_SET "show" 0.0;
- target: "elm.rect.middle.pad";
- }
- program { name: "hide_middle_pad";
- signal: "elm,state,middle,pad,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.rect.middle.pad";
- }
- program { name: "go_contents_on";
- signal: "elm,state,contents,enabled";
- source: "elm";
- action: STATE_SET "contents_on" 0.0;
- target: "elm.icon.top.pad";
- target: "elm.swallow.icon1";
- target: "elm.swallow.icon2";
- }
- program { name: "go_contents_off";
- signal: "elm,state,contents,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.icon.top.pad";
- target: "elm.swallow.icon1";
- target: "elm.swallow.icon2";
- }
- program { name: "media_status_vcontact";
- signal: "elm,state,set,vcontact,status";
- source: "elm";
- action: STATE_SET "vcontact" 0.0;
- target: "media_status_icon";
- }
- }
- }
-
-/**************land ********************/
-
-
group { name: "elm/entry/base-single-noedit/readmessage1";
script {
public multilined = 0;
char *temp_media_id = evas_object_data_get(entry, "media_id");
char *media_type_str = evas_object_data_get(entry, "media_type");
- if (strstr(media_type_str, "location") != NULL) {
+ if (media_type_str && strstr(media_type_str, "location") != NULL) {
char *url = evas_object_data_get(entry, "location_url");
launch_app_control(ad, media_type_str, url);
return;
char *media_file = get_media_path_from_db(media_id);
-
if( access (media_file, F_OK) != -1 ) {
} else {
}
if (!media_file || strlen(media_file) <= 0) {
-
Eina_Bool ret = send_request_for_media_downloading(ad, ad->service_client, ad->peer_in_cahtting_data->use_data->peer_id, media_id);
if (!ret) {
show_toast(ad, "Please check your network connection.");
return;
}
-
// show progress bar
char temp_msg[256] = {0,};
- snprintf(temp_msg, sizeof(temp_msg), "<font=Tizen:style=Bold color=#008000 align=center><font_size=15>%s</font_size></font>", "Downloading...");
- elm_object_text_set(button, temp_msg);
+ snprintf(temp_msg, sizeof(temp_msg), "%s", "Downloading...");
+ elm_object_part_text_set(button, "size", temp_msg);
Evas_Object* progressbar = elm_progressbar_add(button);
elm_object_style_set(progressbar, "process_small");
evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_color_set(progressbar, 255, 255, 255, 255);
elm_progressbar_pulse(progressbar, EINA_TRUE);
evas_object_show(progressbar);
- Evas_Object* old_content = elm_object_content_get(button);
+ Evas_Object* old_content = elm_object_part_content_unset(button, "download_image");
if (old_content) {
evas_object_del(old_content);
}
- elm_object_content_set(button, progressbar);
+ elm_object_part_content_set(button, "download_image", progressbar);
evas_object_data_set(button, "image_state", "download_in_progress");
} else {
}
sprintf(tot_dur, format, minutes, seconds);
- elm_object_part_text_set(progressbar, "elm.text.bottom.left", tot_dur);
+ elm_object_part_text_set(progressbar, "elm.text.bottom.right", tot_dur);
double current_status = (double)((double)current/(double)total);
}
}
-/*
-static Eina_Bool progress_timer_cb(void *data)
-{
- double value = 0.0;
- Evas_Object *progressbar = data;
-
- value = elm_progressbar_value_get(progressbar);
- if (value == 1.0) value = 0.0;
- value = value + 0.01;
- elm_progressbar_value_set(progressbar, value);
-
- return ECORE_CALLBACK_RENEW;
-}
-*/
-
static void progressbar_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
elm_object_part_text_set(progressbar, "elm.text.top.left", "");
elm_object_part_text_set(progressbar, "elm.text.top.right", "");
- elm_object_part_text_set(progressbar, "elm.text.bottom.left", "00:00");
-
- int seconds = (int) (duration / 1000) % 60 ;
- int minutes = (int) ((duration / (1000*60)) % 60);
-
- char tot_dur[256] = {0,};
- char *format = NULL;
- if (seconds < 10 && minutes < 10) {
- format = "0%d:0%d";
- } else if (seconds > 10 && minutes < 10) {
- format = "%d:0%d";
- } else if (seconds < 10 && minutes > 10) {
- format = "0%d:%d";
- } else {
- format = "0%d:0%d";
- }
-
- sprintf(tot_dur, format, minutes, seconds);
-
- elm_object_part_text_set(progressbar, "elm.text.bottom.right", tot_dur);
+ elm_object_part_text_set(progressbar, "elm.text.bottom.right", "00:00");
return progressbar;
}
peer_with_pic_s *sel_item = eina_list_nth(ad->peer_list, user_id);
int buddy_id = sel_item->use_data->peer_id;
-
char* tablename = get_table_name_from_number(buddy_id);
+
tg_message_s* msg = get_message_from_message_table(message_id, tablename);
+
free(tablename);
+
if (!msg) {
return NULL;
}
evas_object_size_hint_align_set(rec_video_layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(rec_video_layout);
-
/**************** play icon **********************/
Evas_Object* play_pause_btn = elm_button_add(parent);
elm_object_style_set(play_pause_btn, "transparent");
Evas_Object* play_pause_icon = elm_image_add(parent);
evas_object_size_hint_align_set(play_pause_icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(play_pause_icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-
elm_image_file_set(play_pause_icon, ui_utils_get_resource(TG_PLAY_NORMAL_ICON), NULL);
elm_image_resizable_set(play_pause_icon, EINA_TRUE, EINA_TRUE);
evas_object_show(play_pause_icon);
-
elm_object_content_set(play_pause_btn, play_pause_icon);
Eina_Bool is_play_mode = EINA_TRUE;
evas_object_data_set(play_pause_icon, "is_play_mode", is_play_mode);
- evas_object_data_set(play_pause_icon, "audio_file_path", strdup(audio_file));
+ if (audio_file) {
+ evas_object_data_set(play_pause_icon, "audio_file_path", strdup(audio_file));
+ }
evas_object_data_set(play_pause_icon, "app_data", ad);
evas_object_data_set(play_pause_icon, "user_id", (void*)user_id);
evas_object_data_set(play_pause_icon, "message_id", (void*)message_id);
evas_object_smart_callback_add(play_pause_btn, "clicked", on_message_play_pause_clicked, play_pause_icon);
evas_object_smart_callback_add(play_pause_btn, "pressed", on_message_play_pause_pressed, play_pause_icon);
evas_object_smart_callback_add(play_pause_btn, "unpressed", on_message_play_pause_unpressed, play_pause_icon);
-
elm_object_part_content_set(rec_video_layout, "swallow.play_icon", play_pause_btn);
/**************** play icon **********************/
/*************** progress bar ********************/
+
int total_duration = 0;
if (audio_file) {
metadata_extractor_h metadata;
ret = metadata_extractor_get_metadata(metadata, METADATA_DURATION, &value);
metadata_extractor_destroy(metadata);
-
if (value) {
total_duration = atoi(value);
free(value);
//convert into milli secs
total_duration = 1000 * total_duration;
}
+
Evas_Object *progress = create_audio_progressbar(parent, total_duration);
evas_object_data_set(parent_obj, "play_pause_icon", play_pause_icon);
free(msg->message);
msg->message = NULL;
}
-
if(msg->media_id) {
free(msg->media_id);
msg->media_id = NULL;
}
-
free(msg);
free_media_details(media_msg);
-
return rec_video_layout;
}
static Evas_Object * item_provider(void *data, Evas_Object *entry, const char *item)
{
-
Evas_Object *layout = NULL;
if (!strcmp(item, "itemprovider")) {
Evas_Object* chat_scroller = data;
is_blur_image = EINA_TRUE;
}
-
if (msg->media_type == tgl_message_media_document) {
media_msg = get_media_details_from_db(atoll(msg->media_id));
item_to_display = get_media_layout_with_play(img_path, entry, EINA_TRUE);
} else {
-
+ item_to_display = get_image_from_path(img_path, entry);
+ //elm_image_animated_set(item_to_display, EINA_TRUE);
+ //elm_image_animated_play_set(item_to_display, EINA_TRUE);
}
}
item_to_display = get_media_layout_with_play(img_path, entry, EINA_TRUE);
} else {
-
+ item_to_display = get_image_from_path(img_path, entry);
+ evas_object_data_set(entry, "image_object", (void*)item_to_display);
+ //elm_image_animated_set(item_to_display, EINA_TRUE);
+ //elm_image_animated_play_set(item_to_display, EINA_TRUE);
}
}
if ((media_msg && strstr(media_msg->doc_type, "video") != NULL )|| (media_msg && strstr(media_msg->doc_type, "audio") != NULL)) {
img_item = get_media_layout_with_play(img_path, entry, EINA_FALSE);
} else {
-
+ img_item = get_image_from_path(img_path, entry);
+ //elm_image_animated_set(img_item, EINA_TRUE);
+ //elm_image_animated_play_set(img_item, EINA_TRUE);
}
}
elm_object_part_content_set(rec_img_layout, "swallow.image_item", img_item);
} else if (media_msg && strstr(media_msg->doc_type, "audio") != NULL) {
media_size = get_media_size_from_db(atoll(msg->media_id));
} else {
-
+ media_size = get_media_size_from_db(atoll(msg->media_id));
}
}
-
int media_size_kbs = (media_size < (1 << 20)); //convert to kbs
char media_size_str[10] = { 0, };
if (media_size_kbs > 0) {
} else if (media_msg && strstr(media_msg->doc_type, "audio") != NULL) {
evas_object_data_set(entry, "media_type", (void*)strdup("audio"));
} else {
-
+ evas_object_data_set(entry, "media_type", (void*)strdup("image"));
}
}
if (media_msg) {
if (strstr(media_msg->doc_type, "audio") != NULL) {
if (ad->target_direction == TELEGRAM_TARGET_DIRECTION_PORTRAIT || ad->target_direction == TELEGRAM_TARGET_DIRECTION_PORTRAIT_INVERSE) {
- eina_strbuf_append(buf, "<item size=247x30 vsize=full hsize=full href=itemprovider></item>");
+ eina_strbuf_append(buf, "<item size=318x100 vsize=full hsize=full href=itemprovider></item>");
} else {
- eina_strbuf_append(buf, "<item size=190x30 vsize=full hsize=full href=itemprovider></item>");
+ eina_strbuf_append(buf, "<item size=318x100 vsize=full hsize=full href=itemprovider></item>");
}
} else if (strstr(media_msg->doc_type, "video") != NULL) {
} else {
if (media_msg) {
if (strstr(media_msg->doc_type, "audio") != NULL) {
-
- if (ad->target_direction == TELEGRAM_TARGET_DIRECTION_PORTRAIT || ad->target_direction == TELEGRAM_TARGET_DIRECTION_PORTRAIT_INVERSE) {
- elm_object_style_set(entry, "readmessage_audio");
- } else {
- elm_object_style_set(entry, "readmessage_audio_land");
- }
-
- eina_strbuf_append(buf, "<item size=247x30 vsize=full hsize=full href=itemprovider></item>");
+ eina_strbuf_append(buf, "<item size=318x100 vsize=full hsize=full href=itemprovider></item>");
} else if (strstr(media_msg->doc_type, "video") != NULL) {
eina_strbuf_append(buf, "<item size=318x200 vsize=full hsize=full href=itemprovider></item>");
} else {
// download failed.
if (size_btn) {
- Evas_Object* progress = elm_object_content_get(size_btn);
+ Evas_Object* progress = elm_object_part_content_get(size_btn, "download_image");
if (progress) {
evas_object_del(progress);
}
Evas_Object* download_img = get_image_from_path(ui_utils_get_resource(MEDIA_DOWNLOAD_ICON), size_btn);
- elm_object_content_set(size_btn, download_img);
+ elm_object_part_content_set(size_btn, "download_image", download_img);
evas_object_data_set(size_btn, "image_state", "ready_to_download");
char temp_msg[256] = {0,};
snprintf(temp_msg, sizeof(temp_msg), "<font=Tizen:style=Bold color=#008000 align=center><font_size=30>%s</font_size></font>", media_size_str);
elm_object_part_text_set(progressbar, "elm.text.top.left", "");
elm_object_part_text_set(progressbar, "elm.text.top.right", "");
- elm_object_part_text_set(progressbar, "elm.text.bottom.left", "00:00");
-
- int seconds = (int) (duration / 1000) % 60 ;
- int minutes = (int) ((duration / (1000*60)) % 60);
-
- char tot_dur[256] = {0,};
- char *format = NULL;
- if (seconds < 10 && minutes < 10) {
- format = "0%d:0%d";
- } else if (seconds > 10 && minutes < 10) {
- format = "%d:0%d";
- } else if (seconds < 10 && minutes > 10) {
- format = "0%d:%d";
- } else {
- format = "0%d:0%d";
- }
-
- sprintf(tot_dur, format, minutes, seconds);
-
- elm_object_part_text_set(progressbar, "elm.text.bottom.right", tot_dur);
-
-
return;
}
elm_object_part_content_set(img_item, "swallow.play_btn", play_img);
} else if (strstr(media_type_str, "image") != NULL) {
elm_image_file_set(img_item, file_path, NULL);
+ //elm_image_animated_set(img_item, EINA_TRUE);
+ //elm_image_animated_play_set(img_item, EINA_TRUE);
}
}
}