Hi Raster and anyone interested in hacking the comp module effects,

I don't have time to work much on it until next month, but I did a
quick hack to replace the annoying focus in effect with a fade of
unfocused. It show some deficiency/lacking in the message system, just
try the attached patch.

The problem comes that comp module lacks identification of window
classes. The effect I'd like to apply is only for application windows,
not for their menus, popups, tooltips. It is also the same for E
internal windows that do not take focus, for instance try "Alt-tab",
the next window is focused, thus the dialog is darkened. Same for
other modules, like System dialog (shutdown, power...) and menus.

IMO these classes should be appended to the message, like the button
number for mouse,button,1... those that want to match all can use a
trailing "*" or we can emit a generic version without the specific
class.

Also, it would be good to have the visualization to be bit bigger and
dynamically change the label based on the effect being demoed. This is
all about edje, so anyone can step in and help. For instance the
preview can show "Window Show", pause, "Focus In", pause, "Focus Out",
"Window Hide"... cycle.


BR,

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
Index: data/themes/default.edc
===================================================================
--- data/themes/default.edc	(revision 47960)
+++ data/themes/default.edc	(working copy)
@@ -35108,9 +35108,20 @@
                }
             }
          }
+         part { name: "clipper-content";
+            type: RECT;
+            mouse_events: 0;
+            description { state: "default" 0.0;
+               color: 180 180 180 255;
+            }
+            description { state: "focus" 0.0;
+               inherit: "default" 0.0;
+               color: 255 255 255 255;
+            }
+         }
          part { name: "e.swallow.content";
             type: SWALLOW;
-            clip_to: "clipper";
+            clip_to: "clipper-content";
             mouse_events: 0;
             description { state: "default" 0.0;
                rel1 {
@@ -35120,26 +35131,6 @@
                   to: "shower";
                }
             }
-            description { state: "focus1" 0.0;
-               inherit: "default" 0.0;
-               rel1.offset: -10 -10;
-               rel2.offset:   9   9;
-            }
-            description { state: "focus2" 0.0;
-               inherit: "default" 0.0;
-               rel1.offset:   4   4;
-               rel2.offset:  -5  -5;
-            }
-            description { state: "focus3" 0.0;
-               inherit: "default" 0.0;
-               rel1.offset:  -3  -3;
-               rel2.offset:   2   2;
-            }
-            description { state: "focus4" 0.0;
-               inherit: "default" 0.0;
-               rel1.offset:   1   1;
-               rel2.offset:  -2  -2;
-            }
          }
          part { name: "glow";
             mouse_events: 0;
@@ -35208,37 +35199,20 @@
          program { name: "hide2";
             action: SIGNAL_EMIT "e,action,hide,done" "e";
          }
-         program { name: "focus1";
-            signal: "e,state,focus,on";
+         program { name: "unfocus";
+            signal: "e,state,focus,off";
             source: "e";
-            action: STATE_SET "focus1" 0.0;
+            action: STATE_SET "default" 0.0;
             transition: SINUSOIDAL 0.1;
-            target: "e.swallow.content";
-            after: "focus2";
+            target: "clipper-content";
          }
-         program { name: "focus2";
-            action: STATE_SET "focus2" 0.0;
+         program { name: "focus";
+            signal: "e,state,focus,on";
+            source: "e";
+            action: STATE_SET "focus" 0.0;
             transition: SINUSOIDAL 0.1;
-            target: "e.swallow.content";
-            after: "focus3";
+            target: "clipper-content";
          }
-         program { name: "focus3";
-            action: STATE_SET "focus3" 0.0;
-            transition: SINUSOIDAL 0.1;
-            target: "e.swallow.content";
-            after: "focus4";
-         }
-         program { name: "focus4";
-            action: STATE_SET "focus4" 0.0;
-            transition: SINUSOIDAL 0.1;
-            target: "e.swallow.content";
-            after: "focus5";
-         }
-         program { name: "focus5";
-            action: STATE_SET "default" 0.0;
-            transition: SINUSOIDAL 0.1;
-            target: "e.swallow.content";
-         }
          program { name: "urgent-on";
             signal: "e,state,urgent,on";
             source: "e";
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to