[slider] make indicator base size bigger than before
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 5 Mar 2012 09:01:59 +0000 (18:01 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 6 Mar 2012 01:51:35 +0000 (10:51 +0900)
Change-Id: I9224896998a66e1c9ba8ef56ff98fc41dd9cc3ae

themes/widgets/slider.edc

index c0126ab..f078ec3 100644 (file)
                color: 0 0 0 0;
             }
          }
+         part { name: "button.base";
+            type: RECT;
+            mouse_events: 0;
+            scale: 1;
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
+               max: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
+               color: 0 0 0 0;
+            }
+         }
          part { name: "button0";
             mouse_events: 0;
             scale: 1;
                   }
                }
             }
+            part { name: "indicator.area";
+               type: RECT;
+               mouse_events: 0;
+               scale: 1;
+               description { state: "default" 0.0;
+                  min: SLIDER_SWALLOW_BAR_MIN_WIDTH_INC 1.5*SLIDER_SWALLOW_BAR_HEIGHT_INC;
+                  max: 99999 1.5*SLIDER_SWALLOW_BAR_HEIGHT_INC;
+                  align: 1.0 0.5;
+                  rel1 {
+                     to_x: "bar_left_padding";
+                     relative: 1.0 0.0;
+                  }
+                  rel2 {
+                     to_x: "bar_right_padding";
+                     relative: 0.0 1.0;
+                  }
+                  color: 0 0 0 0;
+               }
+            }
             part {
                name: "bar_left_padding";
                type: SWALLOW;
                dragable {
                   x: 1 1 0;
                   y: 0 0 0;
-                  confine: "bg";
+                  confine: "indicator.area";
                }
                description { state: "default" 0.0;
-                  min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
+                  min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
                   fixed: 1 1;
-                  rel1 {
-                     relative: 0.5 0.0;
-                     to_x: "bg";
-                  }
-                  rel2 {
-                     relative: 0.5 1.0;
-                     to_x: "bg";
-                  }
+                  align: 0.5 0.5;
                   color: 0 0 0 0;
                }
             }