> From: "David Seikel" <onef...@gmail.com>
> To: enlightenment-devel@lists.sourceforge.net
> Sent: Friday, January 4, 2013 6:20:38 PM
> Subject: Re: [E-devel] Transparent unfocused windows.
> 
> On Sat, 5 Jan 2013 00:59:17 +0900 Carsten Haitzler (The Rasterman)
> <ras...@rasterman.com> wrote:
> 
> > On Sat, 5 Jan 2013 00:58:22 +1000 David Seikel <onef...@gmail.com>
> > said:
> > 
> > > On Fri, 4 Jan 2013 23:37:28 +0900 Carsten Haitzler (The
> > > Rasterman)
> > > <ras...@rasterman.com> wrote:
> > > 
> > > >  On Fri, 4 Jan 2013 23:28:39 +1000 David Seikel
> > > > <onef...@gmail.com> said:
> > > > 
> > > > > On Fri, 4 Jan 2013 18:29:52 +0900 Carsten Haitzler (The
> > > > > Rasterman) <ras...@rasterman.com> wrote:
> > > > > 
> > > > > > On Mon, 31 Dec 2012 12:14:30 -0200 Gustavo Sverzut Barbieri
> > > > > > <barbi...@profusion.mobi> said:
> > > > > > 
> > > > > > > On Mon, Dec 31, 2012 at 2:44 AM, David Seikel
> > > > > > > <onef...@gmail.com> wrote:
> > > > > > > 
> > > > > > > > On Sat, 22 Dec 2012 16:26:06 -0200 Gustavo Sverzut
> > > > > > > > Barbieri <barbi...@profusion.mobi> wrote:
> > > > > > > >
> > > > > > > > > On Saturday, December 22, 2012, David Seikel wrote:
> > > > > > > > >
> > > > > > > > > > I remember in the not too distant past I could set
> > > > > > > > > > the E17 compositor to make unfocused windows
> > > > > > > > > > partially see through. Did that get removed? If
> > > > > > > > > > it's
> > > > > > > > > > still there, how to turn it on?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Set the color class. At least detourious can handle
> > > > > > > > > that
> > > > > > > > > (Settings > Look > Colors)
> > > > > > > >
> > > > > > > > That did not work in the main theme.
> > > > > > > 
> > > > > > > 
> > > > > > > yeah, raster forgot about colorclasses in his hurry to do
> > > > > > > the dark theme. Detourious do have them.
> > > > > > > 
> > > > > > > basically we need to change the theme:
> > > > > > >  - use color classes names supported by the configuration
> > > > > > > module (there is a fixed array of names in C)
> > > > > > >  - use color as white (255 255 255 255);
> > > > > > >  - use the color class with the actual value. it will
> > > > > > > multiply the white and will become itself (red x white =
> > > > > > > red)
> > > > > > 
> > > > > > well i gave MOSt things that i saw had color and font
> > > > > > classes
> > > > > > - i gavce them colorclasses - but i didnt define a
> > > > > > colorclasses section with every entry there indeed. this is
> > > > > > something i just had to put off until "later". one of those
> > > > > > things that need attention in the default theme. now the
> > > > > > pressure is off i'm open to the idea of streamlining the
> > > > > > theme and making it as nice as is doable visually.
> > > > > > 
> > > > > > and yes i know - gustavo wont be happy until it looks just
> > > > > > like macos-x (or maybe windows 8). :) non-solid/plain
> > > > > > gradient colors seem to burn his eyes in. eg any
> > > > > > bevels/highlights/shadows at all. :)
> > > > > > 
> > > > > > though things that are still "urgent":
> > > > > > 
> > > > > > icons that were not changed for release (still old ones)
> > > > > > icons that were changed "in a hurry" need attention.
> > > > > > module icons (in the module icon edj files)
> > > > > > .directory files for enlightenment.menu and accompanying
> > > > > > icons
> > > > > > needed.
> > > > > > 
> > > > > > basically. :)
> > > > > > 
> > > > > > then yes - color/font classes i need to do nicely. as i
> > > > > > went
> > > > > > through i noticed many elements recycled font/colorclasses
> > > > > > where we really should have added a new one for that use
> > > > > > case.
> > > > > > 
> > > > > > after some use i notice the mixer just feels/looks
> > > > > > wrong/different. cpufreq and analogue clock really look
> > > > > > right/nice in the shelf. i think that recycling the outer
> > > > > > circle from the cpufreq/clock just with the inner speaker
> > > > > > from mixer is the way to go there. theres other things that
> > > > > > could do with nicening up and improvements of course.
> > > > > 
> > > > > Soooo, transparent windows not working anymore then, huh?
> > > > 
> > > > eh? of course they work.
> > > 
> > > How?  That is the topic of this thread that I started.  How do I
> > > turn on unfocused windows being transparent?  It used to work, I
> > > can't find the knob on the compositor that I hit before that
> > > turned
> > > it on.  The
> > 
> > there never was a knob or slider in the compositor settings - ever.
> > there may have been a colorclass. transparent windows work - if the
> > theme sets them up.
> > 
> > > thread got side tracked into colour classes, but THAT did not
> > > work,
> > > and is not the "knob on the compositor config dialog" that worked
> > > before.  The colour class thingy apparently only works if I use
> > > some
> > > other theme than the default E17 theme.
> > 
> > there never was one. there was a style that may have been
> > semi-transparent when unfocused - i didnt make any such styles when
> > i
> > redid the theme. all windows are solid.
> > 
> > > So I ask again, how do I turn it on?  "It" being that unfocused
> > > windows are partially transparent.  I'll qualify that with "and
> > > works with the default theme".
> 
> There definitely was some method of getting unfocused windows to be
> transparent by swizzling the composite config dialog, using the old
> default theme, I was using it for a long time.  Exactly how that
> worked,
> via a colour class that just happened to be included in some style,
> or
> something else, it used to be there.  Now it's gone.  That's the
> answer
> to my original question...
> 
> Transparent unfocused windows are not working any more.
> 
> Yes, they can be made to work if the theme supports it, but the
> current
> default theme no longer supports it, so it don't work out of the box.
> 
> It got removed.  To get it to work again, you'll need a different
> theme.
> 
> Now that I have my answer, I can relax, and hope it gets added to the
> default theme at some point in the future.  B-)

Here's the necessary patch for default theme.
You can change the transparency level of "Composite focus out color", at the 
bottom of the list on "colors" configuration.
I've set it to default to white so it doesn't change anything without user 
intervention.

For your consideration.
Index: default.edc
===================================================================
--- default.edc	(revision 82220)
+++ default.edc	(working copy)
@@ -95,3 +95,9 @@ collections {
 //#include "edc/O/border.edc"
 //#include "edc/O/clock.edc"
 }
+
+color_classes {
+   color_class { name: "comp_focus-out_color";
+      color: 255 255 255 255;
+   }
+}
Index: edc/comp.edc
===================================================================
--- edc/comp.edc	(revision 82220)
+++ edc/comp.edc	(working copy)
@@ -168,7 +168,21 @@ group { name: "e/comp/default";
    images.image: "win_shadow.png" COMP;
    images.image: "win_glow.png" COMP;
    parts {
+      part { name: "focus_clipper"; type: RECT;
+         description { state: "default" 0.0;
+            rel1.relative: -1.0  -1.0;
+            rel1.offset: -9999 -9999;
+            rel2.relative: 2.0   2.0;
+            rel2.offset: 9999  9999;
+            color_class: "comp_focus-out_color";
+         }
+         description { state: "focused" 0.0;
+            inherit: "default" 0.0;
+            color_class: "";
+         }
+      }
       part { name: "clipper"; type: RECT;
+         clip_to: "focus_clipper";
          description { state: "default" 0.0;
             rel1.relative: -1.0  -1.0;
             rel1.offset: -9999 -9999;
@@ -277,6 +291,7 @@ group { name: "e/comp/default";
          action: STATE_SET "focused" 0.0;
          transition: SINUSOIDAL 0.1;
          target: "glow";
+         target: "focus_clipper";
          after: "focus2";
       }
       program { name: "focus2";
@@ -284,9 +299,12 @@ group { name: "e/comp/default";
          transition: SINUSOIDAL 0.4;
          target: "glow";
       }
-//      program {
-//         signal: "e,state,focus,off"; source: "e";
-//      }
+      program {
+         signal: "e,state,focus,off"; source: "e";
+         action: STATE_SET "default" 0.0;
+         transition: SINUSOIDAL 0.3;
+         target: "focus_clipper";
+      }
       program { name: "urgent1";
          signal: "e,state,urgent,on"; source: "e";
          action: STATE_SET "focused" 0.0;
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to