From 8e25f792ad41faeb81ce6b50e37d4fcd2e06ff49 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Tue, 28 Jun 2011 13:59:46 +0900 Subject: [PATCH] [popup] add left, right padding to elm.swallow.title and icon Change-Id: I7954b03ad00c47d0542805ec2a2930cdfafedcc7 --- themes/groups/popup.edc | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/themes/groups/popup.edc b/themes/groups/popup.edc index 08adf4e..a34fc6f 100644 --- a/themes/groups/popup.edc +++ b/themes/groups/popup.edc @@ -233,6 +233,30 @@ group { name: "elm/popup/base/default"; visible: 1; } } + part { name: "left_pad"; + type: RECT; + scale : 1; + description { state: "default" 0.0; + min: 10 0; + max: 10 0; + fixed : 1 1; + align: 0.0 0.0; + visible: 0; + rel1.to: "elm.rect.title"; + } + } + part { name: "right_pad"; + type: RECT; + scale : 1; + description { state: "default" 0.0; + min: 10 0; + max: 10 0; + fixed : 1 1; + align: 1.0 1.0; + visible: 0; + rel2.to: "elm.rect.title"; + } + } part { name: "elm.swallow.title.icon"; type: SWALLOW; scale: 1; @@ -241,14 +265,8 @@ group { name: "elm/popup/base/default"; max: 48 48; fixed: 1 1; align: 0.0 0.5; - rel1 { - to: "elm.rect.title"; - relative: 0.0 0.0; - } - rel2 { - to: "elm.rect.title"; - relative: 1.0 1.0; - } + rel1 { relative: 1.0 0.0; to: "left_pad"; } + rel2 { relative: 0.0 1.0; to: "right_pad"; } visible: 0; } description { state: "show_title_icon" 0.0; @@ -270,8 +288,8 @@ group { name: "elm/popup/base/default"; } color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC; visible:0; - rel1 { relative: 0.0 0.0; to: "elm.rect.title"; } - rel2 { relative: 1.0 1.0; to: "elm.rect.title"; } + rel1 { relative: 1.0 0.0; to: "left_pad"; } + rel2 { relative: 0.0 1.0; to: "right_pad"; } align: 0.5 0.5; } description { state: "show_title" 0.0; -- 2.7.4