Enlightenment CVS committal
Author : handyande
Project : misc
Module : engage
Dir : misc/engage/data/themes
Modified Files:
module.edc
Log Message:
align text properly now :) (except right, which seems to show an edje bug)
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/data/themes/module.edc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- module.edc 2 Dec 2005 15:39:17 -0000 1.10
+++ module.edc 7 Dec 2005 14:26:51 -0000 1.11
@@ -424,67 +424,119 @@
name: "EngageIconText";
type: TEXT;
mouse_events: 0;
+ clip_to: "textClip";
effect: SOFT_SHADOW;
description {
state: "default" 0.0;
rel1 {
- relative: 0.0 0.5;
- offset: 0 0;
+ relative: 0.5 0.0;
+ offset: -200 -3;
}
rel2 {
- relative: 1.0 0.5;
- offset: 300 0;
+ relative: 0.5 0.0;
+ offset: 200 -3;
}
- color: 0 0 0 0;
- color3: 255 255 255 0;
- text {
- text: "";
- font: "Edje Vera";
- size: 12;
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- description {
- state: "visible" 0.0;
- rel1 {
- relative: 0.0 0.5;
- offset: 0 0;
- }
- rel2 {
- relative: 1.0 0.5;
- offset: 300 0;
- }
- color: 0 0 0 0;
- color3: 255 255 255 0;
+ color: 0 0 0 192;
+ color3: 255 255 255 64;
text {
- text: "";
+ text: "Text";
font: "Edje Vera";
size: 12;
min: 1 1;
- align: 0.0 0.0;
+ align: 0.5 0.5;
}
}
+ description {
+ state: "top" 0.0;
+ rel1 {
+ relative: 0.5 1.0;
+ offset: -200 6;
+ }
+ rel2 {
+ relative: 0.5 1.0;
+ offset: 200 6;
+ }
+ color: 0 0 0 192;
+ color3: 255 255 255 64;
+ text {
+ text: "Text";
+ font: "Edje Vera";
+ size: 12;
+ min: 1 1;
+ align: 0.5 0.5;
+ }
+ }
+ description {
+ state: "left" 0.0;
+ rel1 {
+ relative: 1.0 0.5;
+ offset: -1 0;
+ }
+ rel2 {
+ relative: 1.0 0.5;
+ offset: 299 0;
+ }
+ color: 0 0 0 192;
+ color3: 255 255 255 64;
+ text {
+ text: "Text";
+ font: "Edje Vera";
+ size: 12;
+ min: 1 1;
+ align: 0.0 0.5;
+ }
+ }
+ description {
+ state: "right" 0.0;
+ rel1 {
+ relative: 0.0 0.5;
+ offset: 0 0;
+ }
+ rel2 {
+ relative: 0.0 0.5;
+ offset: -300 0;
+ }
+ color: 0 0 0 192;
+ color3: 255 255 255 64;
+ text {
+ text: "Text";
+ font: "Edje Vera";
+ size: 12;
+ min: 1 1;
+ align: 1.0 0.5;
+ }
+ }
+ }
+ part {
+ name: "textClip";
+ type: RECT;
+ mouse_events: 0;
description {
state: "hidden" 0.0;
+ visible: 0;
rel1 {
- relative: 0.0 0.5;
- offset: 0 0;
+ relative: 0.0 0.0;
+ offset: -300 -300;
}
rel2 {
- relative: 1.0 0.5;
- offset: 300 0;
- }
- color: 0 0 0 192;
- color3: 255 255 255 64;
- text {
- text: "";
- font: "Edje Vera";
- size: 12;
- min: 1 1;
- align: 0.0 0.0;
+ relative: 1.0 1.0;
+ offset: 300 300;
}
+ color: 0 0 0 0;
}
+ description {
+ state: "visible" 0.0;
+ visible: 1;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: -300 -300;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 300 300;
+ }
+ color: 255 255 255 255;
+ }
}
part {
name: "background";
@@ -511,18 +563,38 @@
name: "go_active";
signal: "active";
source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.5;
- target: "EngageIconText";
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.0;
+ target: "textClip";
}
program {
name: "go_passive";
signal: "passive";
source: "";
- action: STATE_SET "visible" 0.0;
+ action: STATE_SET "hidden" 0.0;
transition: LINEAR 0.5;
- target: "EngageIconText";
+ target: "textClip";
}
+ program {
+ name: "orient";
+ signal: "set_orientation";
+ source: "*";
+ script {
+ // sig, src
+ if (!strcmp(src, "left")) {
+ set_state(PART:"EngageIconText", "left", 0.0);
+ }
+ else if (!strcmp(src, "right")) {
+ set_state(PART:"EngageIconText", "right", 0.0);
+ }
+ else if (!strcmp(src, "top")) {
+ set_state(PART:"EngageIconText", "top", 0.0);
+ }
+ else if (!strcmp(src, "bottom")) {
+ set_state(PART:"EngageIconText", "default", 0.0);
+ }
+ }
+ }
}
}
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs