raster pushed a commit to branch master.

commit 00e1cf45fbeb9ff03b45eea2b15302025d80939b
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Jul 3 15:38:42 2013 +0900

    fix button focus glow to not be a few pixels off and look screwed.
---
 data/themes/edc/button.edc | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/data/themes/edc/button.edc b/data/themes/edc/button.edc
index 69fa1f6..5933892 100644
--- a/data/themes/edc/button.edc
+++ b/data/themes/edc/button.edc
@@ -114,15 +114,26 @@
             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;
@@ -149,11 +160,13 @@
          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";

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to