From afe61450a41767896e8a6a96faa666842221cd64 Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Tue, 18 Oct 2011 11:00:53 +0900 Subject: [PATCH] [entry] modify bubble style - add subject,line,end Change-Id: I440eb5a8085005329383b1048f4ed8f885bd9ba1 --- themes/groups/entry.edc | 98 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 86 insertions(+), 12 deletions(-) diff --git a/themes/groups/entry.edc b/themes/groups/entry.edc index 6074636..ebc7ccf 100644 --- a/themes/groups/entry.edc +++ b/themes/groups/entry.edc @@ -1967,6 +1967,8 @@ group { name: "elm/entry/base-password/popup"; #define BUBBLE_EX_PAD 10 #define BUBBLE_IX_PAD 14 #define BUBBLE_Y_PAD 10 +// Y_PAD + bottom shadow(5) = 15 +#define BUBBLE_BOTTOM_PAD 15 group { name: "elm/entry/base/readmessage"; data.item: "default_font_size" "24"; @@ -2105,7 +2107,7 @@ group { name: "elm/entry/base-password/popup"; data { item: context_menu_orientation "horizontal"; } - parts { + parts { part { name: "elm.rect.left.pad"; type: RECT; @@ -2152,20 +2154,20 @@ group { name: "elm/entry/base-password/popup"; scale: 1; description { state: "default" 0.0; - min: 0 BUBBLE_Y_PAD; + min: 0 BUBBLE_BOTTOM_PAD; fixed: 0 1; align: 0.0 1.0; color: 0 0 0 0; rel1.relative: 0.0 1.0; } } - part { + part { name: "elm.image.bg"; type: IMAGE; scale: 1; - description { + description { state: "default" 0.0; - rel2.to_x: "elm.rect.right.pad"; + rel2.to_x: "elm.rect.right.pad"; image { normal: "07_message_bubble_readmessage.png"; border: 1 11 7 12; @@ -2173,6 +2175,31 @@ group { name: "elm/entry/base-password/popup"; } } } + part { + name: "elm.swallow.subject"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; } + rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; } + } + } + part { + name: "elm.swallow.line"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 1; + align: 0.0 0.0; + color: 0 0 0 255; + rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.swallow.subject"; } + rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.swallow.subject"; } + } + } part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1; @@ -2188,8 +2215,8 @@ group { name: "elm/entry/base-password/popup"; description { state: "default" 0.0; fixed: 1 0; align: 0.0 0.0; - rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; } - rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; } + rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.swallow.line"; } + rel2 { relative: 1.0 0.0; to_y: "elm.swallow.end"; } text { style: "entry_textblock_style"; min: 0 1; @@ -2203,6 +2230,17 @@ group { name: "elm/entry/base-password/popup"; } } } + part { + name: "elm.swallow.end"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + align: 0 1.0; + rel1 { relative: 1.0 0.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; } + rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; } + } + } } programs { program { name: "focus"; @@ -2491,7 +2529,7 @@ group { name: "elm/entry/base-password/popup"; data { item: context_menu_orientation "horizontal"; } - parts { + parts { part { name: "elm.rect.right.pad"; type: RECT; @@ -2538,18 +2576,18 @@ group { name: "elm/entry/base-password/popup"; scale: 1; description { state: "default" 0.0; - min: 0 BUBBLE_Y_PAD; + min: 0 BUBBLE_BOTTOM_PAD; fixed: 0 1; align: 0.0 1.0; color: 0 0 0 0; rel1.relative: 0.0 1.0; } } - part { + part { name: "elm.image.bg"; type: IMAGE; scale: 1; - description { + description { state: "default" 0.0; rel1.to_x: "elm.rect.left.pad"; image { @@ -2559,6 +2597,31 @@ group { name: "elm/entry/base-password/popup"; } } } + part { + name: "elm.swallow.subject"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; } + rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; } + } + } + part { + name: "elm.swallow.line"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 1; + align: 0.0 0.0; + color: 0 0 0 255; + rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.swallow.subject"; } + rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.swallow.subject"; } + } + } part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1; @@ -2575,7 +2638,7 @@ group { name: "elm/entry/base-password/popup"; fixed: 1 0; align: 1.0 0.0; rel1 { relative: 0.0 1.0; to_y: "elm.rect.top.pad";} - rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; } + rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.swallow.end"; } text { style: "entry_textblock_style"; min: 0 1; @@ -2589,6 +2652,17 @@ group { name: "elm/entry/base-password/popup"; } } } + part { + name: "elm.swallow.end"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + align: 0 1.0; + rel1 { relative: 1.0 0.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; } + rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; } + } + } } programs { program { name: "focus"; -- 2.7.4