Enlightenment CVS committal Author : technikolor Project : misc Module : eplayer
Dir : misc/eplayer/data/themes/default
Modified Files:
default.edc
Log Message:
Addition of playlist control buttons to the default theme. This pushes the total
height by 20px and adds 3 buttons: Add, Del, and Edit. No programs have been added to
emit the signals, only the programs that control the click/release animation. Height
can't be pushed any more than 320 pixel (where it is currently) as thats the height of
a Zaurus screen... hint hint.
===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/data/themes/default/default.edc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- default.edc 7 Dec 2003 13:30:08 -0000 1.3
+++ default.edc 8 Jan 2004 10:01:30 -0000 1.4
@@ -56,6 +56,9 @@
* PNG image data, 8 x 8, 8-bit/color RGBA, non-interlaced
* minimize.png:
* PNG image data, 7 x 2, 8-bit/color RGBA, non-interlaced
+ function-button-clicked.png: PNG image data, 54 x 20, 8-bit/color RGB, non-interlaced
+ function-button-normal.png: PNG image data, 54 x 20, 8-bit/color RGB, non-interlaced
+
*/
@@ -84,6 +87,8 @@
image, "button-off.png" RAW;
image, "close_button.png" RAW;
image, "minimize.png" RAW;
+ image, "function-button-clicked.png" RAW;
+ image, "function-button-normal.png" RAW;
}
collections {
@@ -1047,8 +1052,8 @@
}
}
group {
- min, 200 300;
- max, 200 300;
+ min, 200 320;
+ max, 200 320;
name, "eplayer";
parts {
/* Border Scaled Image for Background */
@@ -2236,7 +2241,7 @@
rel2 {
relative, 1.0 1.0;
- offset, -6 -6;
+ offset, -6 -24;
}
image {
@@ -2273,6 +2278,279 @@
}
}
+ /********* PLAYLIST CONTROLS ****************************/
+ /* Button Area */
+ part {
+ name, "controls_background";
+ type, IMAGE;
+ mouse_events, 0;
+ description {
+ state, "default" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 0 1;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -6 -3;
+ //to, "playlist_backdrop";
+ }
+
+ image {
+ normal, "controls-back.png";
+ }
+
+ border, 5 5 5 5;
+
+ fill {
+ smooth, 0;
+ }
+ }
+ }
+
+ part {
+ name, "add_button";
+ type, IMAGE;
+ mouse_events, 1;
+
+ description {
+ state, "default" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 2 2;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 0.0 1.0;
+ offset, 56 20;
+ to, "playlist_backdrop";
+ }
+
+
+ image {
+ normal, "function-button-normal.png";
+ }
+ border, 5 5 5 5;
+ }
+ description {
+ state, "clicked" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 2 2;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 0.0 1.0;
+ offset, 56 20;
+ to, "playlist_backdrop";
+ }
+
+ image {
+ normal, "function-button-clicked.png";
+ }
+ border, 5 5 5 5;
+ }
+ }
+
+ part {
+ name, "del_button";
+ type, IMAGE;
+ mouse_events, 1;
+
+ description {
+ state, "default" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 67 2;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 0.0 1.0;
+ offset, 121 20;
+ to, "playlist_backdrop";
+ }
+
+ image {
+ normal, "function-button-normal.png";
+ }
+ border, 5 5 5 5;
+ }
+ description {
+ state, "clicked" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 67 2;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 0.0 1.0;
+ offset, 121 20;
+ to, "playlist_backdrop";
+ }
+
+ image {
+ normal, "function-button-clicked.png";
+ }
+ border, 5 5 5 5;
+ }
+ }
+ part {
+ name, "edit_button";
+ type, IMAGE;
+ mouse_events, 1;
+
+ description {
+ state, "default" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 132 2;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 0.0 1.0;
+ offset, 188 20;
+ to, "playlist_backdrop";
+ }
+
+ image {
+ normal, "function-button-normal.png";
+ }
+ border, 5 5 5 5;
+ }
+ description {
+ state, "clicked" 0.0;
+
+ rel1 {
+ relative, 0.0 1.0;
+ offset, 132 2;
+ to, "playlist_backdrop";
+ }
+
+ rel2 {
+ relative, 0.0 1.0;
+ offset, 188 20;
+ to, "playlist_backdrop";
+ }
+
+ image {
+ normal, "function-button-clicked.png";
+ }
+ border, 5 5 5 5;
+ }
+ }
+
+ /*** CONTROL TEXT ***/
+
+ part {
+ name, "add_text";
+ type, TEXT;
+ mouse_events, 0;
+
+ description {
+ state, "default" 0.0;
+ visible, 1;
+
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ to, "add_button";
+ }
+
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -1 -1;
+ to, "add_button";
+ }
+
+ text {
+ text, "Add";
+ font, "Vera";
+ size, 6;
+ align, 0.5 0.7;
+ }
+
+ color, 255 255 255 255;
+ }
+ }
+
+ part {
+ name, "del_text";
+ type, TEXT;
+ mouse_events, 0;
+
+ description {
+ state, "default" 0.0;
+ visible, 1;
+
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ to, "del_button";
+ }
+
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -1 -1;
+ to, "del_button";
+ }
+
+ text {
+ text, "Delete";
+ font, "Vera";
+ size, 6;
+ align, 0.5 0.7;
+ }
+
+ color, 255 255 255 255;
+ }
+ }
+
+ part {
+ name, "edit_text";
+ type, TEXT;
+ mouse_events, 0;
+
+ description {
+ state, "default" 0.0;
+ visible, 1;
+
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ to, "edit_button";
+ }
+
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -1 -1;
+ to, "edit_button";
+ }
+
+ text {
+ text, "Edit";
+ font, "Vera";
+ size, 6;
+ align, 0.5 0.7;
+ }
+
+ color, 255 255 255 255;
+ }
+ }
+
+
} /* Close Parts */
@@ -2633,6 +2911,62 @@
name, "repeat_toggle_signal";
action, SIGNAL_EMIT "TOGGLE_REPEAT_MODE" "repeat_mode";
}
+
+ /** Playlist control programs **/
+ program {
+ name, "add_click";
+ signal, "mouse,down,1";
+ source, "add_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR, 0.0;
+ target, "add_button";
+ }
+ program {
+ name, "add_unclick";
+ signal, "mouse,up,1";
+ source, "add_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE, 0.25;
+ target, "add_button";
+ }
+
+ program {
+ name, "del_click";
+ signal, "mouse,down,1";
+ source, "del_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR, 0.0;
+ target, "del_button";
+ }
+ program {
+ name, "del_unclick";
+ signal, "mouse,up,1";
+ source, "del_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE, 0.25;
+ target, "del_button";
+ }
+
+ program {
+ name, "edit_click";
+ signal, "mouse,down,1";
+ source, "edit_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR, 0.0;
+ target, "edit_button";
+ }
+ program {
+ name, "edit_unclick";
+ signal, "mouse,up,1";
+ source, "edit_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE, 0.25;
+ target, "edit_button";
+ }
+
+
+
+
} /* Close Programs */
} /* Close Group */
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
