Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/data/themes/e17/groups
Modified Files:
combo.edc
Log Message:
- use signals instead of separate groups to change the button appearance on
the combo widget
===================================================================
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/combo.edc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- combo.edc 2 Jan 2007 15:19:15 -0000 1.3
+++ combo.edc 2 Jan 2007 17:02:17 -0000 1.4
@@ -64,13 +64,14 @@
group
{
- name: "ewl/combo/increment";
+ name: "ewl/combo/button";
min: 24 24;
max: 24 24;
data
{
item: "pad" 0;
+ item: "pad/right" 4;
item: "inset" 0;
item: "inset/top" 3;
item: "inset/bottom" 3;
@@ -172,13 +173,22 @@
}
image
{
- normal: "e17_button_detail_up.png";
+ normal: "e17_button_detail_down.png";
}
fill
{
smooth: 0;
}
}
+ description
+ {
+ state: "expanded" 0.0;
+ inherit: "default" 0.0;
+ image
+ {
+ normal: "e17_button_detail_up.png";
+ }
+ }
}
}
@@ -221,166 +231,23 @@
target: "button_image";
target: "button_image";
}
- }
-}
-
-group
-{
- name: "ewl/combo/decrement";
- min: 24 24;
- max: 24 24;
-
- data
- {
- item: "pad" 0;
- item: "pad/right" 4;
- item: "inset/top" 3;
- item: "inset/bottom" 3;
- }
-
- parts
- {
- part
- {
- name: "button_image";
- type: IMAGE;
- mouse_events: 1;
-
- description
- {
- state: "default" 0.0;
- min: 56 16;
-
- rel1
- {
- relative: 0.0 0.0;
- offset: 0 0;
- }
- rel2
- { relative: 1.0 1.0;
- offset: -1 -2;
- }
- image
- {
- normal: "ewl_combo_button_sm.png";
- border: 8 8 8 8;
- }
- }
- description
- {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image
- {
- normal: "e17_button_sm2.png";
- }
- }
- description
- {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part
- {
- name: "button_image2";
- type: IMAGE;
- mouse_events: 1;
- description
- {
- state: "default" 0.0;
- visible: 0;
- rel1
- {
- to: "button_image";
- }
- rel2
- {
- to: "button_image";
- }
- image
- {
- normal: "e17_button_sm_disabled.png";
- border: 8 8 8 8;
- }
- }
- description
- {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part
- {
- name: "arrow";
- type: IMAGE;
- description
- {
- state: "default" 0.0;
- align: 0.5 0.5;
- max: 16 16;
- rel1
- {
- relative: 0.0 0.0;
- offset: 0 0;
- }
- rel2
- {
- relative: 1.0 1.0;
- offset: -1 -1;
- }
- image
- {
- normal: "e17_button_detail_down.png";
- }
- fill
- {
- smooth: 0;
- }
- }
- }
- }
-
- programs
- {
- program
- {
- name: "button,click";
- signal: "mouse,down,1";
- source: "button_image";
- action: STATE_SET "clicked" 0.0;
- target: "button_image";
- }
-
- program
- {
- name: "button,unclick";
- signal: "mouse,up,1";
- source: "button_image";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- }
program
{
- name: "disable";
- signal: "disabled";
+ name: "expand";
+ signal: "expanded";
source: "EWL";
- action: STATE_SET "disabled" 0.0;
- target: "button_image";
- target: "button_image2";
+ action: STATE_SET "expanded" 0.0;
+ target: "arrow";
}
program
{
- name: "enable";
- signal: "enabled";
+ name: "collapse";
+ signal: "collapsed";
source: "EWL";
action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "button_image";
+ target: "arrow";
}
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
