[Button.edc]Optimization of controlbar/vertical by removing extra "padding" parts...
authorak.singh7 <ak.singh7@samsung.com>
Tue, 24 May 2011 06:27:26 +0000 (11:57 +0530)
committerak.singh7 <ak.singh7@samsung.com>
Tue, 24 May 2011 06:27:26 +0000 (11:57 +0530)
Change-Id: I6c51b8835dfbef0d901e7fc15cc9befcab994e41

themes/groups/button.edc

index 6c96684..35d5f39 100644 (file)
@@ -9897,59 +9897,31 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
             }
          }
          part {
-            name: "padding_left";
-            type: RECT;
-            scale: 1;
-            mouse_events: 0;
-            description { state: "default" 0.0;
-               align: 0.0 0.0;
-               rel1.relative: 0.0 0.0;
-               rel2.relative: 0.0 1.0;
-               min: 10 5;
-               fixed: 1 0;
-               color: 0 0 0 0;
-            }
-         }
-         part {
-            name: "padding_right";
-            type: RECT;
-            scale: 1;
-            mouse_events: 0;
-            description { state: "default" 0.0;
-               align: 1.0 0.0;
-               rel1.relative: 1.0 0.0;
-               rel2.relative: 1.0 1.0;
-               min: 10 5;
-               fixed: 1 0;
-               color: 0 0 0 0;
-            }
-         }
-         part {
-            name: "padding_top";
+            name: "padding_left_top";
             type: RECT;
             scale: 1;
             mouse_events: 0;
             description { state: "default" 0.0;
                align: 0.0 0.0;
                rel1.relative: 0.0 0.0;
-               rel2.relative: 1.0 0.0;
-               min: 5 8;
-               fixed: 0 1;
-               color: 0 0 0 0;
+               rel2.relative: 0.0 0.0;
+               min: 10 8;
+               fixed: 1 1;
+               visible: 0;
             }
          }
          part {
-            name: "padding_bottom";
+            name: "padding_right_bottom";
             type: RECT;
             scale: 1;
             mouse_events: 0;
             description { state: "default" 0.0;
                align: 1.0 1.0;
-               rel1.relative: 0.0 1.0;
+               rel1.relative: 1.0 1.0;
                rel2.relative: 1.0 1.0;
-               min: 5 8;
-               fixed: 0 1;
-               color: 0 0 0 0;
+               min: 10 8;
+               fixed: 1 1;
+               visible: 0;
             }
          }
          part {
@@ -9961,8 +9933,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
                visible: 1;
                min: 0 0;
                fixed: 0 1;
-               rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
-               rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top"; }
+               rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+               rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
                align: 0.5 0.0;
                color: 0 0 0 0;
             }
@@ -9970,8 +9942,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
                visible: 1;
                min: 44 44;
                fixed: 0 1;
-               rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
-               rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top"; }
+               rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+               rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
                align: 0.5 0.0;
                color: 0 0 0 0;
             }
@@ -10012,8 +9984,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
             mouse_events: 0;
             description { state: "default" 0.0; //when only icon or no icon is there
                align: 0.5 1.0;
-               rel1 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "elm.text"; }
-               rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "elm.text"; }
+               rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
+               rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
                fixed: 0 1;
                min: 0 0;
                color: 0 0 0 0;
@@ -10026,8 +9998,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
             description { state: "default" 0.0;
                visible: 0;
                align: 0.5 0.0;
-               rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
-               rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top"; }
+               rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+               rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
                fixed: 0 1;
             }
             description { state: "visible" 0.0;
@@ -10036,8 +10008,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
                min: 44 44;
                max: 44 44;
                align: 0.5 0.5;
-               rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
-               rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_before_text"; }
+               rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+               rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
                aspect: 1.0 1.0;
                aspect_preference: HORIZONTAL;
             }
@@ -10045,8 +10017,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
                visible: 1;
                min: 44 44;
                max: 44 44;
-               rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
-               rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
+               rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+               rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
                align: 0.5 0.5;
                aspect: 1.0 1.0;
                aspect_preference: HORIZONTAL;
@@ -10059,8 +10031,8 @@ BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_butt
             clip_to: "disabler";
             description { state: "default" 0.0;
                visible: 0;
-               rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_after_icon"; }
-               rel2 { relative: 0.0 1.0; to_x: "padding_right"; }
+               rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
+               rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
                align: 0.5 0.5;
                color: 255 255 255 255;
                text {