fix button focus glow to not be a few pixels off and look screwed.
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 3 Jul 2013 06:38:42 +0000 (15:38 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 3 Jul 2013 06:38:42 +0000 (15:38 +0900)
data/themes/edc/button.edc

index 69fa1f6..5933892 100644 (file)
             visible: 1;
          }
       }
+      part { name: "base2"; type: SPACER;
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+         }
+         description { state: "clicked" 0.0;
+            inherit: "default" 0.0;
+            rel1.offset: 1 1;
+            rel2.offset: -2 -2;
+         }
+      }
       part { name: "glow"; mouse_events: 0;
          description { state: "default" 0.0;
             image.normal: "win_glow.png";
             image.border: 9 9 9 9;
             image.middle: 0;
-            rel1.to: "base";
-            rel1.offset: -1  -1;
-            rel2.to: "base";
-            rel2.offset: 1 1;
+            rel1.to: "base2";
+            rel1.offset: -2 -3;
+            rel2.to: "base2";
+            rel2.offset: 1 0;
             fill.smooth: 0;
             color: 255 255 255 0;
             visible: 0;
          signal: "mouse,down,1"; source: "event";
          action: STATE_SET "clicked" 0.0;
          target: "base";
+         target: "base2";
       }
       program {
          signal: "mouse,up,1"; source: "event";
          action: STATE_SET "default" 0.0;
          target: "base";
+         target: "base2";
       }
       program {
          signal: "mouse,clicked,1*"; source: "event";