On Mon, Apr 12, 2010 at 8:35 AM, Gustavo Sverzut Barbieri
<[email protected]> wrote:
> 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.
new version that looks bit better, I just noticed that some utility
windows like popups, drop down boxes, shelves and menus do not get
none of focus,on/off, so I changed "default" to regular state and
"unfocused" instead of "focused" to be the alternative.
--
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 47999)
+++ data/themes/default.edc (working copy)
@@ -35191,9 +35191,21 @@
}
}
}
+ part { name: "clipper-content";
+ type: RECT;
+ clip_to: "clipper";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "unfocus" 0.0;
+ inherit: "default" 0.0;
+ color: 180 180 180 255;
+ }
+ }
part { name: "e.swallow.content";
type: SWALLOW;
- clip_to: "clipper";
+ clip_to: "clipper-content";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
@@ -35203,26 +35215,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;
@@ -35291,36 +35283,19 @@
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;
- transition: SINUSOIDAL 0.1;
- target: "e.swallow.content";
- after: "focus2";
+ action: STATE_SET "unfocus" 0.0;
+ transition: ACCELERATE 0.2;
+ target: "clipper-content";
}
- program { name: "focus2";
- action: STATE_SET "focus2" 0.0;
- transition: SINUSOIDAL 0.1;
- target: "e.swallow.content";
- after: "focus3";
- }
- 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";
+ program { name: "focus";
+ signal: "e,state,focus,on";
+ source: "e";
action: STATE_SET "default" 0.0;
- transition: SINUSOIDAL 0.1;
- target: "e.swallow.content";
+ transition: ACCELERATE 0.2;
+ target: "clipper-content";
}
program { name: "urgent-on";
signal: "e,state,urgent,on";
------------------------------------------------------------------------------
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