|
From: <enl...@li...> - 2005-05-21 12:56:01
|
Enlightenment CVS committal
Author : moom16
Project : e17
Module : apps/eclair
Dir : e17/apps/eclair/data/themes/default/parts
Modified Files:
navigation_buttons.edc
Log Message:
* [Default theme]Improve the animation of the play/pause button
* Autoplay thing implemented
* Add few ideas and bugs to the TODO file
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/eclair/data/themes/default/parts/navigation_buttons.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- navigation_buttons.edc 17 Apr 2005 08:30:57 -0000 1.1
+++ navigation_buttons.edc 21 May 2005 12:55:23 -0000 1.2
@@ -1,5 +1,6 @@
part {
- name: "button_play";
+ name: "play_pause_clip";
+ type: RECT;
description {
state: "default" 0.0;
color: 255 255 255 255;
@@ -12,6 +13,24 @@
relative: 0 0;
offset: 93 84;
to: "body";
+ }
+ }
+ description {
+ state: "over" 0.0;
+ inherit: "default" 0.0;
+ color: 255 247 217 255;
+ }
+}
+part {
+ name: "button_play";
+ clip_to: "play_pause_clip";
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "play_pause_clip";
+ }
+ rel2 {
+ to: "play_pause_clip";
}
image {
normal: "button_play.png";
@@ -33,16 +52,15 @@
}
description {
state: "down" 0.0;
- color: 255 255 255 255;
rel1 {
relative: 0 0;
- offset: 52 43;
- to: "body";
+ offset: 8 8;
+ to: "play_pause_clip";
}
rel2 {
- relative: 0 0;
- offset: 85 76;
- to: "body";
+ relative: 1 1;
+ offset: -8 -8;
+ to: "play_pause_clip";
}
image {
normal: "button_play_down.png";
@@ -51,19 +69,17 @@
}
part {
name: "button_pause";
+ repeat_events: 1;
+ clip_to: "play_pause_clip";
description {
state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
rel1 {
- relative: 0 0;
- offset: 44 35;
- to: "body";
+ to: "play_pause_clip";
}
rel2 {
- relative: 0 0;
- offset: 93 84;
- to: "body";
+ to: "play_pause_clip";
}
image {
normal: "button_pause.png";
@@ -88,13 +104,13 @@
color: 255 255 255 255;
rel1 {
relative: 0 0;
- offset: 52 43;
- to: "body";
+ offset: 8 8;
+ to: "play_pause_clip";
}
rel2 {
- relative: 0 0;
- offset: 85 76;
- to: "body";
+ relative: 1 1;
+ offset: -8 -8;
+ to: "play_pause_clip";
}
image {
normal: "button_pause_down.png";
@@ -102,32 +118,6 @@
}
}
part {
- name: "button_play_over";
- repeat_events: 1;
- description {
- state: "default" 0.0;
- color: 255 255 255 0;
- rel1 {
- relative: 0 0;
- offset: 52 43;
- to: "body";
- }
- rel2 {
- relative: 0 0;
- offset: 85 76;
- to: "body";
- }
- image {
- normal: "button_play_pause_over.png";
- }
- }
- description {
- state: "over" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
-}
-part {
name: "button_open";
description {
state: "default" 0.0;
|