[popup] add left, right padding to elm.swallow.title and icon
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 28 Jun 2011 04:59:46 +0000 (13:59 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 1 Jul 2011 00:39:35 +0000 (09:39 +0900)
Change-Id: I7954b03ad00c47d0542805ec2a2930cdfafedcc7

themes/groups/popup.edc

index 08adf4e..a34fc6f 100644 (file)
@@ -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;