add glow to popup sel in ibar. more visible selection now.
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 20 May 2013 01:03:35 +0000 (10:03 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 20 May 2013 01:03:35 +0000 (10:03 +0900)
data/themes/edc/ibar-ibox.edc

index 2837f5a..7baf376 100644 (file)
@@ -197,6 +197,7 @@ group { name: "e/modules/ibar/menu";
 }
 
 group { name: "e/modules/ibar/menu/item";
+   images.image: "glow_small.png" COMP;
    parts {
       part { name: "icon"; type: SPACER;
          description { state: "default";
@@ -208,6 +209,24 @@ group { name: "e/modules/ibar/menu/item";
             max: 48 48;
          }
       }
+      part { name: "glow"; mouse_events: 0;
+         description { state: "default" 0.0;
+            rel1.to: "e.swallow.icon";
+            rel2.to: "e.swallow.icon";
+            image.normal: "glow_small.png";
+            image.border: 7 7 7 7;
+            fill.smooth: 0;
+            color: 255 255 255 0;
+            visible: 0;
+         }
+         description { state: "focus" 0.0;
+            inherit: "default" 0.0;
+            rel1.offset: -4 -4;
+            rel2.offset: 3 3;
+            color: 255 255 255 255;
+            visible: 1;
+         }
+      }
       part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
          clip_to: "icon_clip";
          description { state: "default";
@@ -273,13 +292,13 @@ group { name: "e/modules/ibar/menu/item";
       }
       part { name: "icon_clip"; type: RECT;
          description { state: "default";
-            color: 255 255 255 255;
+            color: 255 255 255 200;
             rel1.offset: -9999 -9999;
             rel2.offset: 9999 9999;
          }
          description { state: "focus";
             inherit: "default";
-            color: 255 255 255 200;
+            color: 255 255 255 255;
          }
       }
       part { name: "event"; type: RECT;
@@ -296,6 +315,7 @@ group { name: "e/modules/ibar/menu/item";
          target: "e.text.title";
          target: "title2";
          target: "icon_clip";
+         target: "glow";
          transition: ACCELERATE 0.2;
       }
       program {
@@ -305,6 +325,7 @@ group { name: "e/modules/ibar/menu/item";
          target: "e.text.title";
          target: "title2";
          target: "icon_clip";
+         target: "glow";
          transition: DECELERATE 0.2;
       }
    }