#define ENTRY_BUBBLE_ICON_PAD 10
#define ENTRY_BUBBLE_TEXT_MIN 81 30
#define ENTRY_BUBBLE_TEXT_SIZE 25
-#define ENTRY_BUBBLE_SENT_TEXT_COLOR "#000000"
-#define ENTRY_BUBBLE_SENT_TEXT_SHADOW_STYLE "shadow,bottom"
#define ENTRY_BUBBLE_RECEV_TEXT_COLOR "#000000"
#define ENTRY_BUBBLE_RECEV_TEXT_SHADOW_STYLE "shadow,bottom"
#define ENTRY_BUBBLE_GROUPCHAT_SIZE_INC 30
collections
{
/* This is EFL-oriented features */
- base_scale: 1.8;
+ base_scale: 2.6;
images {
image: "telegram_bubble_bg_receive_ef.#.png" COMP;
}
style {
name: "entry_bubble_sent_textblock_style";
- base: "font=Tizen:style=Regular style="ENTRY_BUBBLE_SENT_TEXT_SHADOW_STYLE" font_size="ENTRY_BUBBLE_TEXT_SIZE" color="ENTRY_BUBBLE_SENT_TEXT_COLOR" color_class=T0218 wrap=mixed align=left";
+ base: "font=Tizen:style=Regular font_size=36 color=#FAFAFA color_class=ATO014 wrap=mixed align=left";
tag: "br" "\n";
tag: "ps" "ps";
tag: "tab" "\t";
visible: 1;
}
}
- /*part { name: "elm.select_icon.padV";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel2.relative: 0.0 1.0;
- rel2.to: "elm.swallow.select_icon1";
- align: 1.0 1.0;
- min: 10 0;
- max: 10 -1;
- fixed: 1 1;
- }
- }*/
- part { name: "elm.icon";
+ part { name: "elm.icon";
clip_to: "disclip";
type: SWALLOW;
scale: 1;
}
}
}
- group { name: "elm/entry/base-noedit/sentmessage1";
- parts {
- part {
- name: "elm.bubble.callerid.pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 0.0;
- align: 1.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- description { state: "callerid_on";
- 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;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 0.0;
- align: 1.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: 1.0 0.0;
- rel1.to: "elm.callerid.icon.pad";
- rel2 {
- to: "elm.callerid.icon.pad";
- relative: 0.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: 0.0 0.0;
- }
- rel2 {
- to: "elm.bubble.callerid.pad";
- relative: 0.0 0.0;
- }
- align: 1.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";
- relative: 1.0 0.0;
- }
- rel2.to: "elm.bubble.groupchat.pad";
- align: 1.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: 1.0 0.0;
- text {
- font: "Tizen:style=Regular";
- size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
- align: 1.0 0.0;
- text_class: "tizen";
- min: 1 1;
- }
- rel1.to: "elm.groupchat.text.pad";
- rel2 {
- to: "elm.groupchat.text.pad";
- relative: 0.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;
- rel2.relative: 0.0 1.0;
- align: 0.0 0.5;
- min: ENTRY_BUBBLE_STATUS_PAD 0;
- fixed: 1 0;
- }
- }
- part {
- name: "elm.bubble.lefttop.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- /* rel1 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.status.pad";
- to_y: "elm.bubble.groupchat.pad";
- }
- align: 0.0 0.0;*/
- rel1{
- relative: 0.0 0.0;
- offset: 106 0;
- }
-
- rel2{
- relative: 0.0 0.0;
- offset: 106 0;
- }
- min: ENTRY_BUBBLE_SENT_LEFTTOP_PAD;
- align: 1.0 0.0;
- fixed: 1 1;
- }
- }
-
- part {
- name: "elm.bubble.righttop.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "elm.bubble.callerid.pad";
- to_y: "elm.bubble.groupchat.pad";
- relative: 0.0 1.0;
- }
- align: 1.0 0.0;
- min: ENTRY_BUBBLE_SENT_RIGHTTOP_PAD;
- fixed: 1 1;
- }
- }
+ group { name: "elm/entry/base-noedit/sentmessage1";
+ parts {
+ part {
+ name: "right,pad";
+ type: SPACER;
+ scale: 1;
+ description {
+ rel1 { relative: 1.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ align: 1.0 0.5;
+ min: 15 0;
+ fixed: 1 0;
+ }
+ }
+ part {
+ name: "elm.image.bg.ef";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to_x: "text,top,pad"; to_y: "text,left,pad"; }
+ rel2 { relative: 1.0 1.0; to_y: "text,bottom,pad"; to_y: "text,right,pad"; }
+ align: 0.5 0.5;
+ image {
+ normal: "telegram_bubble_bg_send_ef.#.png";
+ border: 40 57 26 26;
+ }
+ }
+ }
+ part {
+ name: "elm.image.bg";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to_x: "text,top,pad"; to_y: "text,left,pad"; }
+ rel2 { relative: 1.0 1.0; to_y: "text,bottom,pad"; to_y: "text,right,pad"; }
+ align: 0.5 0.5;
+ image {
+ normal: "telegram_bubble_bg_send.#.png";
+ border: 40 57 26 26;
+ }
+ color: 45 165 224 229;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 27 99 135 255;
+ }
+ }
+ part {
+ name: "text,left,pad";
+ type: SPACER;
+ scale: 1;
+ description {
+ rel1 { relative: 0.0 0.0; to: "elm.text"; }
+ rel2 { relative: 0.0 1.0; to: "elm.text"; }
+ align: 1.0 0.5;
+ min: 40 0;
+ fixed: 1 0;
+ }
+ }
+ part {
+ name: "text,right,pad";
+ type: SPACER;
+ scale: 1;
+ description {
+ rel1 { relative: 1.0 0.0; to: "elm.text"; }
+ rel2 { relative: 1.0 1.0; to: "elm.text"; }
+ align: 0.0 0.5;
+ min: 57 0;
+ fixed: 1 0;
+ }
+ }
+ part {
+ name: "text,top,pad";
+ type: SPACER;
+ scale: 1;
+ description {
+ rel1 { relative: 0.0 0.0; to: "elm.text"; }
+ rel2 { relative: 1.0 0.0; to: "elm.text"; }
+ align: 0.5 1.0;
+ min: 0 26;
+ fixed: 0 1;
+ }
+ }
+ part {
+ name: "text,bottom,pad";
+ type: SPACER;
+ scale: 1;
+ description {
+ rel1 { relative: 0.0 1.0; to: "time"; }
+ rel2 { relative: 1.0 1.0; to: "time"; }
+ align: 0.5 0.0;
+ min: 0 26;
+ fixed: 0 1;
+ }
+ }
+ part {
+ name: "test";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ color: 255 0 0 255;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ multiline: 1;
+ description {
+ state: "default" 0.0;
+ align: 1.0 0.0;
+ rel1 { relative: 0.0 0.0; to_x: "right,pad"; }
+ rel2 { relative: 0.0 0.0; to_x: "right,pad"; }
+ max: 318 -1;
+ min: 159 36;
+ text {
+ style: "entry_bubble_sent_textblock_style";
+ min: 0 1;
+ align: 1.0 0.0;
+ }
+ }
+ }
part {
- name: "elm.image.bg.ef";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.leftbottom.pad";
- to_y: "elm.bubble.lefttop.pad";
- }
- rel2 {
- to_x: "elm.bubble.righttop.pad";
- to_y: "elm.bubble.leftbottom.pad";
- }
- image {
- normal: "telegram_bubble_bg_send_ef.#.png";
- }
- color: 45 165 224 225;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color_class: "W042";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "W0541";
- }
- }
- part {
- name: "elm.image.bg";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to_x: "elm.bubble.leftbottom.pad";
- to_y: "elm.bubble.lefttop.pad";
- }
- rel2 {
- to_x: "elm.bubble.righttop.pad";
- to_y: "elm.bubble.leftbottom.pad";
- }
- image {
- normal: "telegram_bubble_bg_send.#.png";
- border: 40 57 0 0;
- }
- color: 45 165 224 225;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color_class: "W042";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "W0541";
- }
- }
- 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: 1.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_sent_textblock_style";
- min: 0 1;
- max: 1 0;
- align: 1.0 0.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: "elm.ct.attach.text";
- type: TEXT;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 1;
- align: 0 0.5;
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.image.bg";
- relative: 1.0 1.0;
- }
- color: 0 0 0 255;
- text {
- font: "Tizen:style=Regular";
- size: 15;
- align: 0 0.5;
- text_class: "tizen";
- min: 1 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;
+ name: "time";
+ type:TEXT;
mouse_events: 1;
- scale: 1;
+ scale: 1;
description {
state: "default" 0.0;
min: 1 1;
align: 1.0 0.5;
- rel1 {
- to: "pad_vertical";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "pad_vertical";
- relative: 0.0 1.0;
- }
+ rel1 { relative: 0.0 1.0; to_x: "status_icon"; to_y: "elm.text"; }
+ rel1 { relative: 0.0 1.0; to_x: "status_icon"; to_y: "elm.text"; }
visible: 1;
- color: ENTRY_BUBBLE_TIME_COLOR;
+ fixed: 1 1;
+ min: 0 38;
+ color: 250 250 250 255;
text {
- min: 1 1;
- align: 0.5 0.5;
- //text_class: "T058";
- size: 10;
- }
- }
- }
-
- part {
- name: "pad_vertical";
- type: SPACER;
- description {
- state: "default" 0.0;
- min: 5 0;
- max: 5 -1;
- rel1 {
- to: "status_icon";
- relative: 0 0;
- }
- rel2 {
- to: "status_icon";
- relative: 0 1;
- }
- align: 0.5 1;
- //color: 0 0 200 200;
- }
- }
- part {
- name: "status_icon";
- type:SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 20 20;
- max: 20 20;
- align: 1.0 0.5;
- rel1 {
- to: "pad_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "pad_bottom";
- relative: 1.0 0.0;
- }
- // color_class: "W055";
-
- visible: 1;
-}
-}
- part {
- name: "pad_for_group_read_count";
- type:SPACER;
- description {
- state: "default" 0.0;
- min: 5 0;
- max: 5 -1;
- align: 1.0 0.5;
- rel1 {
- to: "status_icon";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "status_icon";
- relative: 0.0 1.0;
+ min: 1 1;
+ align: 0.5 0.5;
+ size: 28;
}
}
}
part {
- name: "group_read_count";
- type:TEXT;
+ name: "status_icon";
+ type: SWALLOW;
+ mouse_events: 1;
scale: 1;
description {
state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to_x: "text,right,pad"; to_y: "elm.text"; }
+ rel1 { relative: 0.0 1.0; to_x: "text,right,pad"; to_y: "elm.text"; }
+ fixed: 1 1;
min: 0 0;
align: 1.0 0.5;
- rel1 {
- to: "pad_for_group_read_count";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "pad_for_group_read_count";
- relative: 0.0 1.0;
- }
visible: 0;
}
description {
- state: "display" 0.0;
+ state: "status,on";
inherit: "default" 0.0;
- min: 1 1;
- color: ENTRY_BUBBLE_TIME_COLOR;
- text {
- min: 1 1;
- align: 0.5 0.5;
- size: 15;
- text: "(3)";
- }
- visible: 1;
+ min: 38 38;
+ visible: 1;
}
}
part {
- name: "swallow";
- type: SWALLOW;
+ name: "event.rect";
+ type: RECT;
+ repeat_events: 1;
scale: 1;
description {
- state: "default" 0.0;
- min: 20 0;
- align: 1.0 0.5;
- rel1 {
- to: "status_icon";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "status_icon";
- relative: 0.0 1.0;
- }
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "elm.image.bg";
+ rel2.to: "elm.image.bg";
}
}
-
- 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: 1.0 0.0;
- }
- }
- part {
- name: "elm.bubble.leftbottom.pad";
- type: SPACER;
- scale: 1;
- description {
- rel1 {
- to: "elm.swallow.end";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.swallow.end";
- relative: 0.0 1.0;
- }
- align: 1.0 0.0;
- min: ENTRY_BUBBLE_SENT_LEFTBOTTOM_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.leftbottom.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.bubble.leftbottom.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: 1.0 1.0;
- }
- rel2 {
- to_x: "elm.text";
- to_y: "elm.icon.top.pad";
- }
- min: 0 0;
- align: 1.0 0.0;
- visible: 0;
- }
- description {
- state: "contents_on" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
-
- part {
- name: "elm.icon.pad";
- type: SPACER;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.swallow.icon1";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "elm.swallow.icon1";
- relative: 0.0 1.0;
- }
- min: ENTRY_BUBBLE_ICON_PAD 0;
- align: 1.0 0.5;
- }
- }
- part {
- name: "elm.swallow.icon2";
- type: SWALLOW;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 {
- to: "elm.icon.pad";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "elm.icon.pad";
- relative: 0.0 1.0;
- }
- min: 0 0;
- align: 1.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.leftbottom.pad";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.bubble.leftbottom.pad";
- relative: 0.0 1.0;
- }
- min: ENTRY_BUBBLE_STATUS_TEXT_ICON_PAD;
- align: 1.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: 1.0 1.0;
- }
- rel1.to: "elm.status.pad";
- rel2 {
- to: "elm.status.pad";
- relative: 0.0 0.0;
- }
- align: 1.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: 1.0 1.0;
- }
- rel1.to: "elm.text.time";
- rel2 {
- to: "elm.text.time";
- relative: 1.0 0.0;
- }
- align: 1.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";
- rel2 {
- to: "elm.status.pad";
- relative: 0.0 0.0;
- }
- align: 1.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 "groupchat_on" 0.0;
- target: "elm.bubble.groupchat.pad";
- target: "elm.text.groupchat";
- }
- program { name: "go_groupchat_off";
- signal: "elm,state,groupchat,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.bubble.groupchat.pad";
- target: "elm.text.groupchat";
- }
- 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: "display_group_read_count";
- signal: "elm,state,enable,group_read_count";
- source: "elm";
- action: STATE_SET "display" 0.0;
- target: "group_read_count";
- }
- program { name: "hide_group_read_count";
- signal: "elm,state,disable,group_read_count";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "group_read_count";
- }
- program { name: "media_status_vcontact";
- signal: "elm,state,set,vcontact,status";
- source: "elm";
- action: STATE_SET "vcontact" 0.0;
- target: "media_status_icon";
- }
- }
- }
-}
+ } // parts
+ programs {
+ program {
+ name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program {
+ name: "mouse_down";
+ signal: "mouse,down,1";
+ source: "event.rect";
+ action: STATE_SET "pressed" 0.0;
+ target: "elm.image.bg";
+ }
+ program {
+ name: "mouse_up";
+ signal: "mouse,up,1";
+ source: "event.rect";
+ action: STATE_SET "default" 0.0;
+ target: "elm.image.bg";
+ }
+ } //programs
+} //group
+} //collection
\ No newline at end of file
int size = eina_list_count(ad->main_list);
if (size > 0) {
- Evas_Object* no_chat_img = evas_object_data_get(ad->nf, "no_chat_image");
- if(no_chat_img) {
- evas_object_del(no_chat_img);
+ Evas_Object* layout = evas_object_data_get(ad->nf, "no_chat_image");
+ if(layout) {
+ elm_object_signal_emit(layout, "no_chat_hide", "no_chat_text");
}
- Evas_Object* bg_box = evas_object_data_get(ad->nf, "main_list_box");
- if (bg_box) {
- int i;
- static Elm_Genlist_Item_Class itc;
- Evas_Object *buddy_list = elm_genlist_add(ad->nf);
- elm_list_mode_set(buddy_list, ELM_LIST_COMPRESS);
- elm_genlist_mode_set(buddy_list, ELM_LIST_COMPRESS);
- evas_object_size_hint_weight_set(buddy_list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(buddy_list, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_data_set(buddy_list, "app_data", ad);
-
- itc.item_style = "full";
- itc.func.text_get = NULL;
- itc.func.content_get = on_chat_item_load_requested;
- itc.func.state_get = NULL;
- itc.func.del = NULL;
+ int i;
+ static Elm_Genlist_Item_Class itc;
+ Evas_Object *buddy_list = elm_genlist_add(ad->nf);
+ elm_genlist_mode_set(buddy_list, ELM_LIST_COMPRESS);
+ evas_object_size_hint_weight_set(buddy_list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(buddy_list, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ evas_object_data_set(buddy_list, "app_data", ad);
- int size = eina_list_count(ad->main_list);
- if(size > 0) {
- for (i = 0; i < size; i++) {
- elm_genlist_item_append(buddy_list, &itc, (void *) i, NULL, ELM_GENLIST_ITEM_NONE, NULL, (void*) i);
- }
- } else {
- i = 1;
+ itc.item_style = "full";
+ itc.func.text_get = NULL;
+ itc.func.content_get = on_chat_item_load_requested;
+ itc.func.state_get = NULL;
+ itc.func.del = NULL;
+
+ int size = eina_list_count(ad->main_list);
+ if(size > 0) {
+ for (i = 0; i < size; i++) {
elm_genlist_item_append(buddy_list, &itc, (void *) i, NULL, ELM_GENLIST_ITEM_NONE, NULL, (void*) i);
}
- evas_object_show(buddy_list);
- elm_box_pack_end(bg_box, buddy_list);
- evas_object_data_set(ad->nf, "buddy_list", buddy_list);
+ } else {
+ i = 1;
+ elm_genlist_item_append(buddy_list, &itc, (void *) i, NULL, ELM_GENLIST_ITEM_NONE, NULL, (void*) i);
}
+ evas_object_show(buddy_list);
+ evas_object_data_set(ad->nf, "buddy_list", buddy_list);
}
}
}
}
-Evas_Object *create_no_object_layout(appdata_s* ad)
-{
- if (!ad)
- return NULL;
-
- char edj_path[PATH_MAX] = {0, };
- app_get_resource(TELEGRAM_INIT_VIEW_EDJ, edj_path, (int)PATH_MAX);
-
- Evas_Object* layout = elm_layout_add(ad->nf);
- elm_layout_file_set(layout, edj_path, "no_chat_layout");
- evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_show(layout);
-
- Evas_Object *no_chat_lbl = elm_label_add(ad->nf);
- evas_object_size_hint_weight_set(no_chat_lbl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(no_chat_lbl, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_show(no_chat_lbl);
- elm_label_ellipsis_set(no_chat_lbl, EINA_TRUE);
-
- char temp_text[256];
- sprintf(temp_text, "<font=Tizen:style=Bold =#000000 align=center><font_size=30>%s</font_size></font>", i18n_get_text("IDS_TGRAM_NPBODY_NO_CHATS"));
-
- elm_object_text_set(no_chat_lbl, temp_text);
- elm_object_part_content_set(layout, "no_chats_lbl", no_chat_lbl);
-
- char temp_text1[256*4];
- sprintf(temp_text1, "<font=Tizen:style=Normal align=center><font_size=30>%s</font_size></font>", i18n_get_text("IDS_TGRAM_BODY_TO_START_A_NEW_CONVERSATION_TAP_THE_CREATE_NEW_GROUP_BUTTON_IN_THE_BOTTOM_RIGHT_OR_PRESS_THE_MENU_KEY_FOR_MORE_OPTIONS"));
-
- Evas_Object *no_chat_msg_lbl = elm_entry_add(ad->nf);
- elm_entry_editable_set(no_chat_msg_lbl, EINA_FALSE);
- elm_entry_context_menu_disabled_set(no_chat_msg_lbl, EINA_TRUE);
- //elm_entry_selection_handler_disabled_set(no_chat_msg_lbl, EINA_TRUE);
- elm_object_text_set(no_chat_msg_lbl, temp_text1);
-
- elm_object_part_content_set(layout, "no_chats_msg_lbl", no_chat_msg_lbl);
-
- return layout;
-}
-
void launch_user_main_view_cb(appdata_s* ad)
{
if (!ad)
send_request_for_server_connection_status(ad, ad->service_client);
send_request_for_delete_notifications(ad, ad->service_client);
- Evas_Object* scroller = elm_scroller_add(ad->nf);
- elm_scroller_bounce_set(scroller, EINA_FALSE, EINA_TRUE);
- elm_scroller_policy_set(scroller,ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
-
Evas_Object* layout = elm_layout_add(ad->nf);
elm_layout_file_set(layout, edj_path, "user_main_screen_new");
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(layout);
- elm_object_content_set(scroller, layout);
-
- //elm_layout_theme_set(ad->layout, "layout", "drawer", "panel");
- // sandeep
- //create_side_main_view(ad);
-
- /************** no chat item++ *********************/
Evas_Object *buddy_list = NULL;
- Evas_Object* bg_box = elm_box_add(layout);
- evas_object_size_hint_weight_set(bg_box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(bg_box, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_show(bg_box);
- elm_object_part_content_set(layout, "main_box", bg_box);
if (ad->main_list == NULL || eina_list_count(ad->main_list) <= 0) {
- Evas_Object* no_chat_img = create_no_object_layout(ad);
-
- evas_object_data_set(ad->nf, "no_chat_image", no_chat_img);
+ elm_object_part_text_set(layout, "no_chat_text", i18n_get_text("IDS_TGRAM_NPBODY_NO_CHATS"));
+ elm_object_part_text_set(layout, "explain_text", i18n_get_text("IDS_TGRAM_BODY_TO_START_A_NEW_CONVERSATION_TAP_THE_CREATE_NEW_GROUP_BUTTON_IN_THE_BOTTOM_RIGHT_OR_PRESS_THE_MENU_KEY_FOR_MORE_OPTIONS"));
+ elm_object_signal_emit(layout, "no_chat_show", "no_chat_text");
- elm_box_pack_end(bg_box, no_chat_img);
+ evas_object_data_set(ad->nf, "no_chat_image", layout);
} else {
int i;
static Elm_Genlist_Item_Class itc;
buddy_list = elm_genlist_add(ad->nf);
- elm_list_mode_set(buddy_list, ELM_LIST_COMPRESS);
elm_genlist_mode_set(buddy_list, ELM_LIST_COMPRESS);
evas_object_size_hint_weight_set(buddy_list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(buddy_list, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_data_set(buddy_list, "app_data", ad);
elm_genlist_homogeneous_set(buddy_list, EINA_TRUE);
-
itc.item_style = "full";
itc.func.text_get = NULL;
itc.func.content_get = on_chat_item_load_requested;
elm_genlist_item_append(buddy_list, &itc, (void *) i, NULL, ELM_GENLIST_ITEM_NONE, NULL, (void*) i);
}
evas_object_show(buddy_list);
- elm_box_pack_end(bg_box, buddy_list);
evas_object_data_set(ad->nf, "buddy_list", buddy_list);
evas_object_smart_callback_add(buddy_list, "longpressed", on_buddy_list_longpress, ad);
evas_object_smart_callback_add(buddy_list, "selected", on_main_chat_item_selected, ad);
-
+ elm_object_part_content_set(layout, "main_box", buddy_list);
}
- evas_object_data_set(ad->nf, "main_list_box", bg_box);
- /************** no chat item-- *********************/
-
-
create_floating_button(ad);
#if 0
evas_object_smart_callback_add(search_btn, "unpressed", on_search_icon_unpressed, search_icon);
#endif
- ad->main_item = elm_naviframe_item_push(ad->nf, i18n_get_text("IDS_TGRAM_HEADER_TELEGRAM"), NULL, NULL, scroller, NULL);
+ ad->main_item = elm_naviframe_item_push(ad->nf, i18n_get_text("IDS_TGRAM_HEADER_TELEGRAM"), NULL, NULL, layout, NULL);
#if 0
Elm_Object_Item* navi_item = elm_naviframe_item_push(ad->nf, "<font=Tizen:style=Bold color=#ffffff align=center><font_size=48>Telegram</font_size></font>", NULL, NULL, scroller, NULL);