Re: [E-devel] [PATCH] Simple patch for default E theme

2009-03-27 Thread Toma
No need to make an alternate shelf, just need to make it respond to
orientation. Its detailed in the commented out section of your patch.
:)

-Toma


2009/3/27 Mike Rutter roo...@loopfree.net:

 Here is a patch to create a version of the alternate shelf
 theme that works when the shelf is vertical.  All it does
 is take the alternate version and removes the shine part.
 The shine part bands horribly when the shelf is vertical.
 Removing it creates a nice gradient with the over part
 creating separation for the darker portion of the shelf.

 Mike


 --

 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



--
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] Simple patch for default E theme

2009-03-26 Thread Mike Rutter

Here is a patch to create a version of the alternate shelf
theme that works when the shelf is vertical.  All it does
is take the alternate version and removes the shine part.
The shine part bands horribly when the shelf is vertical.
Removing it creates a nice gradient with the over part
creating separation for the darker portion of the shelf.

Mike

Index: e/data/themes/default.edc
===
--- e/data/themes/default.edc   (revision 39699)
+++ e/data/themes/default.edc   (working copy)
@@ -6779,6 +6779,159 @@
   }
}
 
+   /* This is a vertical version of the alternate shelf. It provides a 
+* stylistic alternative, that works vertically, to  make the shelf
+* more dynamic to your tastes and wallpaper. It is  selected in the 
+* Shelf Configuration. More alternative shelfs can be provided by 
+* using more group names. eg, e/shelf/black/base */
+   group { name: e/shelf/alternate_vert/base;
+  images {
+image: shelf_alt_bg.png COMP;
+image: shelf_alt_over.png COMP;
+  }
+  parts {
+part { name: base;
+   mouse_events: 0;
+   description { state: default 0.0;
+   color_class: shelf_base;
+  image.normal: shelf_alt_bg.png;
+  fill.smooth: 0;
+   }
+}
+part { name: e.swallow.content;
+   type: SWALLOW;
+   description { state: default 0.0;
+  rel1 {
+ relative: 0.0 0.0;
+ offset: 3 3;
+  }
+  rel2 {
+ relative: 1.0 1.0;
+ offset: -4 -4;
+  }
+   }
+}
+part { name: over;
+   mouse_events: 0;
+   description { state: default 0.0;
+  image.normal: shelf_alt_over.png;
+  image.border: 5 5 5 5;
+  image.middle: 0;
+  fill.smooth: 0;
+   }
+}
+  }
+  /* Because programs can not respond to 2 different types of signals,
+   * the programs are split into individual programs that point towards
+   * the base program for its orientation. */
+  programs {
+/* Left orientation */
+//  program { name: left;
+// signal: e,state,orientation,left;
+// source: e;
+// action: STATE_SET left 0.0;
+// target: base;
+// target: over;
+// target: shine;
+//  }
+//  program { name: left_top;
+// signal: e,state,orientation,left_top;
+// source: e;
+// after: left;
+//  }
+//  program { name: left_bottom;
+// signal: e,state,orientation,left_bottom;
+// source: e;
+// after: left;
+//  }
+//  /* Right orientation */
+//  program { name: right;
+// signal: e,state,orientation,right;
+// source: e;
+// action: STATE_SET right 0.0;
+// target: base;
+// target: over;
+// target: shine;
+//  }
+//  program { name: right_top;
+// signal: e,state,orientation,right_top;
+// source: e;
+// after: right;
+//  }
+//  program { name: right_bottom;
+// signal: e,state,orientation,right_bottom;
+// source: e;
+// after: right;
+//  }
+  }
+   }
+   group { name: e/shelf/alternate_vert/inset;
+  images {
+image: inset_raised.png COMP;
+  }
+  parts {
+part { name: base;
+   type: RECT;
+   description { state: default 0.0;
+  rel1 {
+ to: inset;
+ offset: 4 4;
+  }
+  rel2 {
+ to: inset;
+ offset: -5 -5;
+  }
+  color: 0 0 0 0;
+   }
+}
+part { name: clip;
+   type: RECT;
+   description { state: default 0.0;
+  rel1.to: base;
+  rel2.to: base;
+  color: 255 255 255 255;
+   }
+}
+part { name: e.swallow.content;
+   type: SWALLOW;
+   clip_to: clip;
+   description { state: default 0.0;
+  rel1 {
+ to: base;
+ offset: 0 0;
+  }
+  rel2 {
+ to: base;
+ offset: -1 -1;
+  }
+   }
+}
+part { name: inset;
+   mouse_events: 0;
+   description { state: default 0.0;
+  rel1.offset: -1 -1;
+  rel2.offset: 0 0;
+  image.normal: inset_raised.png;
+  image.middle: 0;
+  image.border: 7 7 7 7;
+  fill.smooth: 0;
+   }
+}
+  }
+   }
+   group { name: e/shelf/alternate_vert/plain;
+  parts {
+part { name: e.swallow.content;
+   type: SWALLOW;
+   description { state: default 0.0;
+  rel1.offset: 1 1;
+