added elementary layout, clock. prototyped plugin configuration
[ego.git] / data / default / default.edc
blobb9b4e34fac6654f03fff1dfb26d44cab7dffab4c
1 fonts {
2         font: "Vera.ttf" "default";
3         font: "VeraBd.ttf" "bold";
6 images {
7         image: "border.png" COMP;
8         image: "busy-1.png" COMP; // from b_and_w theme
9         image: "busy-2.png" COMP; // from b_and_w theme
10         image: "busy-3.png" COMP; // from b_and_w theme
11         image: "busy-4.png" COMP; // from b_and_w theme
12         image: "busy-5.png" COMP; // from b_and_w theme
13         image: "busy-6.png" COMP; // from b_and_w theme
14         image: "busy-7.png" COMP; // from b_and_w theme
15         image: "busy-8.png" COMP; // from b_and_w theme
16         image: "busy-9.png" COMP; // from b_and_w theme
19 collections {
20         group {
21                 name: "ego/theme";
23                 parts {
24                         part {
25                                 name :"bg";
26                                 type: RECT;
27                                 description {
28                                         state: "default" 0.0;
29                                         rel1.relative: 0 0;
30                                         rel2.relative: 1 1;
31                                         color: 32 32 32 255;
32                                 }
33                         }
35                         part {
36                                 name: "content";
37                                 type: SWALLOW;
38                                 description {
39                                         state: "default" 0.0;
40                                         rel1.relative: 0.0 0.0;
41                                         rel2.relative: 1.0 1.0;
42                                 }
43                         }
45                         part {
46                                 name: "busy";
47                                 type: IMAGE;
48                                 mouse_events: 0;
49                                 repeat_events: 1;
50                                 description {
51                                         state: "default" 0.0;
52                                         aspect: 1 1;
53                                         rel1.relative: 0.05 0.90;
54                                         rel2.relative: 0.10 0.95;
55                                         image {
56                                                 tween: "busy-1.png";
57                                                 tween: "busy-2.png";
58                                                 tween: "busy-3.png";
59                                                 tween: "busy-4.png";
60                                                 tween: "busy-5.png";
61                                                 tween: "busy-6.png";
62                                                 tween: "busy-7.png";
63                                                 tween: "busy-8.png";
64                                                 normal: "busy-9.png";
65                                         }
66                                         color: 255 255 255 0;
67                                 }
68                                 description {
69                                         state: "default" 1.0;
70                                         inherit: "default" 0.0;
71                                         color: 255 255 255 255;
72                                 }
73                         }
74                         
75                         part {
76                                 name: "message";
77                                 type: TEXT;
78                                 effect: SOFT_SHADOW;
79                                 mouse_events: 0;
80                                 repeat_events: 1;
81                                 description {
82                                         state: "default" 0.0;
83                                         rel1.relative: 0.10 0.90;
84                                         rel1.offset: 16 0;
85                                         rel2.relative: 1.00 0.95;
86                                         text {
87                                                 align: 0 0.5;
88                                                 text: "";
89                                                 font: "default";
90                                                 size: 16;
91                                         }
92                                         color: 0 0 0 0;
93                                         color3: 232 232 232 0;
94                                 }
95                                 description {
96                                         state: "default" 1.0;
97                                         inherit: "default" 0.0;
98                                         color: 0 0 0 255;
99                                         color3: 232 232 232 255;
100                                 }
101                         }
103                         part {
104                                 name: "config.clip";
105                                 type: RECT;
106                                 mouse_events: 1;
107                                 repeat_events: 1;
108                                 description {
109                                         state: "default" 0.0;
110                                         rel1.relative: 0.5 0.5;
111                                         rel2.relative: 0.5 0.5;
112                                         color: 255 255 255 0;
113                                 }
114                                 description {
115                                         state: "default" 1.0;
116                                         rel1.relative: 0.3 0.3;
117                                         rel2.relative: 0.7 0.7;
118                                         color: 255 255 255 255;
119                                 }
120                         }
121                         part {
122                                 name: "config.content";
123                                 type: SWALLOW;
124                                 clip_to: "config.clip";
125                                 description {
126                                         state: "default" 0.0;
127                                         rel1.relative: 0 0;
128                                         rel1.to: "config.clip";
129                                         rel2.relative: 1 1;
130                                         rel2.to: "config.clip";
131                                 }
132                         }
134                         part {
135                                 name: "overlay";
136                                 type: RECT;
137                                 mouse_events: 1;
138                                 repeat_events: 1;
139                                 description {
140                                         state: "default" 0.0;
141                                         rel1.relative: 0 0;
142                                         rel2.relative: 1 1;
143                                         color: 255 255 255 0;
144                                 }
145                         }
146                 }
148                 programs {
149                         program {
150                                 signal: "idle,start";
151                                 after: "idle,loop";
152                         }
153                         program {
154                                 signal: "idle,stop";
155                                 action: ACTION_STOP;
156                                 target: "idle,loop";
157                                 after: "idle,halt";
158                         }
159                         program {
160                                 name: "idle,loop";
161                                 action: STATE_SET "default" 1.0;
162                                 transition: LINEAR 0.3;
163                                 target: "busy";
164                                 target: "message";
165                                 after: "idle,loop";
166                         }
167                         program {
168                                 name: "idle,halt";
169                                 action: STATE_SET "default" 0.0;
170                                 transition: LINEAR 0.3;
171                                 target: "busy";
172                                 target: "message";
173                         }
175                         program {
176                                 signal: "mouse,clicked,3";
177                                 source: "overlay";
178                                 after: "config,show";
179                         }
180                         program {
181                                 signal: "mouse,clicked,3";
182                                 source: "config.content";
183                                 after: "config,hide";
184                         }
185                         program {
186                                 name: "config,show";
187                                 action: STATE_SET "default" 1.0;
188                                 transition: DECELERATE 0.3;
189                                 target: "config.clip";
190                         }
191                         program {
192                                 name: "config,hide";
193                                 action: STATE_SET "default" 0.0;
194                                 transition: ACCELERATE 0.3;
195                                 target: "config.clip";
196                         }
197                 }
198         }