Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/data/themes


Modified Files:
        default.edc 


Log Message:


a temperature monitor module for acpi... it's simple... and really only
handles 1 temperature guage - but it's useful. fixed stuff in battery
modules, added config menus... ibar size change menu only works after a
restart for now.. need to fix that.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/data/themes/default.edc,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- default.edc 27 Dec 2004 10:49:46 -0000      1.17
+++ default.edc 2 Jan 2005 02:39:42 -0000       1.18
@@ -269,6 +269,11 @@
    image: "e17_battery_090.png" COMP;
    image: "e17_battery_100.png" COMP;
    image: "e17_battery_ac.png" COMP;
+   
+   image: "e17_temperature_base.png" COMP;
+   image: "e17_temperature_mid.png" COMP;
+   image: "e17_temperature_overlay.png" COMP;
+           
 }
 
 collections {
@@ -5435,4 +5440,175 @@
         }
       }
    }
+   group { 
+      name: "modules/temperature/main";
+      max:  128 128;
+      script {
+       public message(Msg_Type:type, id, ...) {
+         if ((type == MSG_FLOAT) && (id == 1)) {
+            new Float:val;
+            val = getfarg(2);
+            set_drag(PART:"temp_top", 0.0, val);
+         }
+       }
+      }
+      parts {
+        part {
+           name: "base";
+           clip_to: "fade_clip";
+           description {
+              state: "default" 0.0;
+              aspect: 0.387 0.387;
+              align: 0.0 0.5;
+              max: 48 124;
+              rel1 {
+                 relative: 0.0 0.0;
+              }
+              rel2 {
+                 relative: 1.0 1.0;
+              }
+              image {
+                 normal: "e17_temperature_base.png";
+              }
+           }
+        }
+        part {
+           name: "temp";
+           clip_to: "temp_clip";
+           description {
+              state: "default" 0.0;
+              rel1 {
+                 to: "base";
+              }
+              rel2 {
+                 to: "base";
+              }
+              image {
+                 normal: "e17_temperature_mid.png";
+              }
+           }
+        }
+        part {
+           name: "overlay";
+           clip_to: "fade_clip";
+           description {
+              state: "default" 0.0;
+              rel1 {
+                 to: "base";
+              }
+              rel2 {
+                 to: "base";
+              }
+              image {
+                 normal: "e17_temperature_overlay.png";
+              }
+           }
+        }
+        part {
+           name:           "reading";
+           type:           TEXT;
+            effect:         SOFT_SHADOW;
+           clip_to:        "fade_clip";
+           description {
+              state: "default" 0.0;
+              align: 1.0 0.0;
+              rel1 {
+                 relative: 1.0  0.0;
+                 to_x:     "temp";
+              }
+              rel2 {
+                 relative: 1.0  0.0;
+              }
+               color: 255 255 255 255;
+              color3: 0 0 0 32;
+              text {
+                 text:     "99^C";
+                 font:     "Edje Vera";
+                 size:     7;
+                 min:      1 1;
+                 align:    0.0 0.0;
+              }
+           }
+        }
+        part {
+           name:           "fade_clip";
+           type:           RECT;
+           mouse_events:   0;
+           description {
+              state: "default" 0.0;
+              color: 255 255 255 255;
+           }
+           description {
+              state: "faded" 0.0;
+              color: 255 255 255 128;
+           }
+        }
+        part {
+// +10 -46 / 124
+           name:           "temp_clip";
+           type:           RECT;
+           clip_to:        "fade_clip";
+           mouse_events:   0; 
+           description {
+              state: "default" 0.0;
+              rel1 {
+                 to_x: "base";
+                 to_y: "temp_top";
+              }
+              rel2 {
+                 to: "base";
+              }
+           }
+        }
+        part {
+// +10 -46 / 124
+           name:           "temp_top";
+           type:           RECT;
+           dragable {
+              x: 0 0 0;
+              y: -1 1 0;
+              confine: "temp_limit";
+           }
+           mouse_events:   0; 
+           description {
+              state: "default" 0.0;
+              visible: 0;
+           }
+        }
+        part {
+// +10 -46 / 124
+           name:           "temp_limit";
+           type:           RECT;
+           mouse_events:   0; 
+           description {
+              state: "default" 0.0;
+              visible: 0;
+              rel1 {
+                 relative: 0.0 0.081;
+                 to: "base";
+              }
+              rel2 {
+                 relative: 1.0 0.637;
+                 to: "base";
+              }
+           }
+        }
+      }
+      programs {
+        program {
+           name: "on";
+           signal: "enable";
+           source: "";
+           action: STATE_SET "default" 0.0;
+           target: "fade_clip";
+        }
+        program {
+           name: "off";
+           signal: "disable";
+           source: "";
+           action: STATE_SET "faded" 0.0;
+           target: "fade_clip";
+        }
+      }
+   }
 }




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to