[entry] Add paddings of button swallows.
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 31 May 2013 12:55:47 +0000 (21:55 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:36:55 +0000 (20:36 +0900)
themes/widgets/entry.edc

index 17a29ff..c718c42 100644 (file)
@@ -47,8 +47,8 @@
       } \
       description { state: "rename_visible" 0.0; \
          inherit: "default" 0.0; \
-         min: 5 0; \
-         max: 5 0; \
+         min: 9 0; \
+         max: 9 0; \
          rel1 { \
             to_x: "elm.swallow.rename"; \
             relative: 0.0 0.0; \
@@ -60,8 +60,8 @@
       } \
       description { state: "clear_visible" 0.0; \
          inherit: "default" 0.0; \
-         min: 5 0; \
-         max: 5 0; \
+         min: 9 0; \
+         max: 9 0; \
          rel1 { \
             to_x: "elm.swallow.clear"; \
             relative: 0.0 0.0; \
@@ -5262,8 +5262,8 @@ group { name: "elm/scroller/entry/default";
             }
             description { state: "rename_visible" 0.0;
                inherit: "default" 0.0;
-               min: 5 0;
-               max: 5 0;
+               min: 9 0;
+               max: 9 0;
                rel1 {
                   to_x: "elm.swallow.rename";
                   relative: 0.0 0.0;
@@ -5276,8 +5276,8 @@ group { name: "elm/scroller/entry/default";
             description { state: "clear_visible" 0.0;
                inherit: "default" 0.0;
                align: 1.0 1.0;
-               min: 5 0;
-               max: 5 0;
+               min: 9 0;
+               max: 9 0;
                rel1 {
                   to_x: "elm.swallow.clear";
                   relative: 0.0 0.0;
@@ -5293,7 +5293,7 @@ group { name: "elm/scroller/entry/default";
             mouse_events: 0;
             clip_to: "clipper";
             description { state: "default" 0.0;
-               rel1.to: "elm.swallow.icon";
+               rel1.to: "icon_right_padding";
                rel1.relative: 1.0 0.0;
                rel2.to: "editfield_space";
                rel2.relative: 0.0 1.0;
@@ -5328,6 +5328,29 @@ group { name: "elm/scroller/entry/default";
                visible: 1;
             }
          }
+         part { name: "icon_right_padding";
+            type: SPACER;
+            clip_to: "clipper";
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               align: 0.0 0.0;
+               min: 0 0;
+               max: 0 0;
+               rel1 {
+                  to_x: "elm.swallow.icon";
+                  relative: 1.0 0.0;
+               }
+               rel2 {
+                  to_x: "elm.swallow.icon";
+                  relative: 1.0 1.0;
+               }
+            }
+            description { state: "visible" 0.0;
+               inherit: "default" 0.0;
+               min: 8 0;
+               max: 8 0;
+            }
+         }
          part { name: "elm.swallow.clear";
             type: SWALLOW;
             clip_to: "clipper";
@@ -5400,7 +5423,7 @@ group { name: "elm/scroller/entry/default";
             type: SWALLOW;
             description { state: "default" 0.0;
                rel1 {
-                       to: "elm.swallow.icon";
+                       to_x: "icon_right_padding";
                        relative: 1.0 0.0;
                }
                rel2 {
@@ -5558,12 +5581,14 @@ group { name: "elm/scroller/entry/default";
             source: "elm";
             action: STATE_SET "visible" 0.0;
             target: "elm.swallow.icon";
+            target: "icon_right_padding";
          }
          program { name: "icon_hide";
             signal: "elm,action,hide,icon";
             source: "elm";
             action: STATE_SET "default" 0.0;
             target: "elm.swallow.icon";
+            target: "icon_right_padding";
          }
          program { name: "clear_show";
             signal: "elm,state,clear,visible";