Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/data/themes Modified Files: default.edc Log Message: battery modules now... works... in theory. i have to test it on a real laptop... =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/data/themes/default.edc,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- default.edc 27 Dec 2004 08:33:50 -0000 1.16 +++ default.edc 27 Dec 2004 10:49:46 -0000 1.17 @@ -268,6 +268,7 @@ image: "e17_battery_080.png" COMP; image: "e17_battery_090.png" COMP; image: "e17_battery_100.png" COMP; + image: "e17_battery_ac.png" COMP; } collections { @@ -5204,9 +5205,19 @@ group { name: "modules/battery/main"; max: 128 128; + script { + public message(Msg_Type:type, id, ...) { + if ((type == MSG_FLOAT) && (id == 1)) { + new Float:val; + val = getfarg(2); + set_state(PART:"battery", "default", val); + } + } + } parts { part { name: "battery"; + clip_to: "fade_clip"; description { state: "default" 0.0; aspect: 0.669291339 0.669291339; @@ -5297,6 +5308,7 @@ name: "reading"; type: TEXT; effect: SOFT_SHADOW; + clip_to: "fade_clip"; description { state: "default" 0.0; align: 1.0 0.0; @@ -5305,7 +5317,7 @@ to_x: "battery"; } rel2 { - relative: 1.0 1.0; + relative: 1.0 0.0; } color: 255 255 255 255; color3: 0 0 0 32; @@ -5314,10 +5326,113 @@ font: "Edje Vera"; size: 7; min: 1 1; - align: 0.0 0.0; + align: 1.0 0.0; } } } + part { + name: "time"; + type: TEXT; + effect: SOFT_SHADOW; + clip_to: "fade_clip"; + description { + state: "default" 0.0; + align: 1.0 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "battery"; + to_y: "reading"; + } + rel2 { + relative: 1.0 1.0; + to_y: "reading"; + } + color: 255 255 255 255; + color3: 0 0 0 32; + text { + text: "00:00"; + font: "Edje Vera"; + size: 7; + min: 1 1; + align: 1.0 0.0; + } + } + } + part { + name: "ac"; + clip_to: "fade_clip"; + description { + state: "default" 0.0; + aspect: 0.975609756 0.975609756; + align: 1.0 1.0; + max: 40 41; + visible: 0; + rel1 { + relative: 0.5 0.5; + } + rel2 { + relative: 1.0 1.0; + } + image { + normal: "e17_battery_ac.png"; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + 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; + } + } + } + programs { + program { + name: "charge"; + signal: "charge"; + source: ""; + action: STATE_SET "default" 0.0; + target: "fade_clip"; + } + program { + name: "charge2"; + signal: "charge"; + source: ""; + action: STATE_SET "active" 0.0; + target: "ac"; + } + program { + name: "discharge"; + signal: "discharge"; + source: ""; + action: STATE_SET "default" 0.0; + target: "fade_clip"; + } + program { + name: "discharge2"; + signal: "discharge"; + source: ""; + action: STATE_SET "default" 0.0; + target: "ac"; + } + program { + name: "unknown"; + signal: "unknown"; + source: ""; + action: STATE_SET "faded" 0.0; + target: "fade_clip"; + } } } } ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs