summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2013-02-18 08:58:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2013-02-18 08:58:32 +0000
commit66ebe5172598d582da8090988db36806acf42d2c (patch)
tree9da67e7a61ea8da5ed873127ce40958d55c1dea6 /data
parent10c88cf2220c23b219bc3b05a8b935ad102c4dab (diff)
remove unused edcs from old bnw theme.
SVN revision: 84043
Diffstat (limited to 'data')
-rw-r--r--data/themes/Makefile.am25
-rw-r--r--data/themes/default.edc25
-rw-r--r--data/themes/edc/O/about.edc708
-rw-r--r--data/themes/edc/O/backlight.edc58
-rw-r--r--data/themes/edc/O/battery.edc324
-rw-r--r--data/themes/edc/O/border.edc119
-rw-r--r--data/themes/edc/O/border_icons.edc46
-rw-r--r--data/themes/edc/O/clock.edc1031
-rw-r--r--data/themes/edc/O/colors.edc118
-rw-r--r--data/themes/edc/O/conf_gad.edc131
-rw-r--r--data/themes/edc/O/cpufreq.edc340
-rw-r--r--data/themes/edc/O/cslider.edc110
-rw-r--r--data/themes/edc/O/desklock.edc314
-rw-r--r--data/themes/edc/O/edgebindings.edc253
-rw-r--r--data/themes/edc/O/evrything.edc2598
-rw-r--r--data/themes/edc/O/fontpreview.edc26
-rw-r--r--data/themes/edc/O/gadman.edc1202
-rw-r--r--data/themes/edc/O/ibarbox.edc892
-rw-r--r--data/themes/edc/O/illume_gad.edc508
-rw-r--r--data/themes/edc/O/init.edc1012
-rw-r--r--data/themes/edc/O/mixer.edc206
-rw-r--r--data/themes/edc/O/randr.edc619
-rw-r--r--data/themes/edc/O/spectrum.edc107
-rw-r--r--data/themes/edc/O/temperature.edc214
-rw-r--r--data/themes/edc/O/transitions.edc221
-rw-r--r--data/themes/edc/O/winlist.edc414
-rw-r--r--data/themes/edc/O/wizard.edc230
27 files changed, 0 insertions, 11851 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 0cb73bd6e..67e92cefd 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -77,34 +77,9 @@ edc/transitions.edc \
77edc/winlist.edc \ 77edc/winlist.edc \
78edc/wizard.edc \ 78edc/wizard.edc \
79edc/xkbswitch.edc \ 79edc/xkbswitch.edc \
80edc/O/about.edc \
81edc/O/backlight.edc \
82edc/O/battery.edc \
83edc/O/border.edc \
84edc/O/border_icons.edc \
85edc/O/clock.edc \
86edc/O/colors.edc \
87edc/O/conf_gad.edc \
88edc/O/cpufreq.edc \
89edc/O/cslider.edc \
90edc/O/desklock.edc \
91edc/O/edgebindings.edc \
92edc/O/efm_icons.edc \ 80edc/O/efm_icons.edc \
93edc/O/evrything.edc \
94edc/O/fontpreview.edc \
95edc/O/gadman.edc \
96edc/O/ibarbox.edc \
97edc/O/icons.edc \ 81edc/O/icons.edc \
98edc/O/illume_gad.edc \
99edc/O/init.edc \
100edc/O/mixer.edc \
101edc/O/randr.edc \
102edc/O/spectrum.edc \
103edc/O/temperature.edc \
104edc/O/transitions.edc \
105edc/O/wallpaper.edc \ 82edc/O/wallpaper.edc \
106edc/O/winlist.edc \
107edc/O/wizard.edc \
108img/add_glow_small.png \ 83img/add_glow_small.png \
109img/ball_small_glow_intense.png \ 84img/ball_small_glow_intense.png \
110img/ball_small_glow.png \ 85img/ball_small_glow.png \
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 047d26e92..c90f99b77 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -71,29 +71,4 @@ collections {
71#include "edc/O/efm_icons.edc" 71#include "edc/O/efm_icons.edc"
72#include "edc/O/icons.edc" 72#include "edc/O/icons.edc"
73#include "edc/O/wallpaper.edc" 73#include "edc/O/wallpaper.edc"
74//#include "edc/O/border_icons.edc"
75//#include "edc/O/illume_gad.edc"
76//#include "edc/O/conf_gad.edc"
77//#include "edc/O/evrything.edc"
78//#include "edc/O/battery.edc"
79//#include "edc/O/mixer.edc"
80//#include "edc/O/backlight.edc"
81//#include "edc/O/temperature.edc"
82//#include "edc/O/cpufreq.edc"
83//#include "edc/O/gadman.edc"
84//#include "edc/O/randr.edc"
85//#include "edc/O/edgebindings.edc"
86//#include "edc/O/colors.edc"
87//#include "edc/O/spectrum.edc"
88//#include "edc/O/cslider.edc"
89//#include "edc/O/fontpreview.edc"
90//#include "edc/O/transitions.edc"
91//#include "edc/O/about.edc"
92//#include "edc/O/init.edc"
93//#include "edc/O/ibarbox.edc"
94//#include "edc/O/wizard.edc"
95//#include "edc/O/desklock.edc"
96//#include "edc/O/winlist.edc"
97//#include "edc/O/border.edc"
98//#include "edc/O/clock.edc"
99} 74}
diff --git a/data/themes/edc/O/about.edc b/data/themes/edc/O/about.edc
deleted file mode 100644
index e00d7ba72..000000000
--- a/data/themes/edc/O/about.edc
+++ /dev/null
@@ -1,708 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** ABOUT E ***/
3/*
4 group {
5 name: "e/widgets/about/main";
6 images {
7 image: "O/vgrad_dark.png" COMP;
8 image: "O/about_top.png" COMP;
9 image: "O/about_mid.png" COMP;
10 image: "O/about_bot.png" COMP;
11 image: "O/dia_botshad.png" COMP;
12 image: "O/topsh.png" COMP;
13 image: "O/logo_white_128.png" COMP;
14 image: "O/bt_base1.png" COMP;
15 image: "O/bt_base2.png" COMP;
16 image: "O/bt_hilight.png" COMP;
17 image: "O/bt_shine.png" COMP;
18 image: "O/bt_glow.png" COMP;
19 }
20 // data.item: "borderless" "1";
21 // data.item: "shaped" "1";
22 styles {
23 style {
24 name: "about_style";
25 base: "font=Sans:style=Bold font_size=10 align=center text_class=tb_plain color=#e0e0e0ff style=soft_shadow shadow_color=#00000020 wrap=word";
26 tag: "hilight" "+ font=Sans:style=Bold text_class=tb_light color=#f00 style=soft_shadow";
27 tag: "title" "+ font_size=12 font=Sans:style=Bold text_class=tb_big style=soft_shadow color=#fff shadow_color=#00000020";
28 tag: "/title" "- \n \n";
29 tag: "br" "\n";
30 }
31 }
32 min: 300 240;
33 max: 640 640;
34 parts {
35 part {
36 name: "sizer";
37 type: RECT;
38 mouse_events: 0;
39 scale: 1;
40 description {
41 state: "default" 0.0;
42 min: 300 240;
43 visible: 0;
44 }
45 }
46 part {
47 name: "about_clip";
48 type: RECT;
49 mouse_events: 0;
50 description {
51 state: "default" 0.0;
52 rel1 {
53 to: "top";
54 relative: 0.0 0.0;
55 offset: 6 0;
56 }
57 rel2 {
58 to: "top";
59 relative: 1.0 1.0;
60 offset: -7 -7;
61 }
62 color: 255 255 255 255;
63 }
64 }
65 part {
66 name: "authors_clip";
67 type: RECT;
68 mouse_events: 0;
69 description {
70 state: "default" 0.0;
71 rel1 {
72 to: "bot";
73 relative: 0.0 0.0;
74 offset: 6 6;
75 }
76 rel2 {
77 to: "bot";
78 relative: 1.0 1.0;
79 offset: -7 -1;
80 }
81 color: 255 255 255 255;
82 }
83 }
84 part {
85 name: "background_image";
86 description {
87 state: "default" 0.0;
88 image.normal: "O/vgrad_dark.png";
89 fill {
90 smooth: 0;
91 size {
92 relative: 0 1.0;
93 offset: 36 0;
94 }
95 }
96 }
97 }
98 part {
99 name: "e.textblock.about";
100 type: TEXTBLOCK;
101 mouse_events: 0;
102 clip_to: "about_clip";
103 scale: 1;
104 description {
105 state: "default" 0.0;
106 fixed: 1 1;
107 align: 0.5 0.0;
108 max: 10000 10000;
109 min: 160 0;
110 rel1 {
111 to: "top";
112 relative: 0.0 1.0;
113 offset: 32 -17;
114 }
115 rel2 {
116 to: "top";
117 relative: 1.0 1.0;
118 offset: -33 -17;
119 }
120 text {
121 style: "about_style";
122 min: 0 1;
123 }
124 }
125 description {
126 state: "up" 0.0;
127 inherit: "default" 0.0;
128 align: 0.5 1.0;
129 rel1 {
130 relative: 0.0 0.0;
131 offset: 32 0;
132 }
133 rel2 {
134 relative: 1.0 0.0;
135 offset: -33 -1;
136 }
137 }
138 }
139 part {
140 name: "e.textblock.authors";
141 type: TEXTBLOCK;
142 mouse_events: 0;
143 clip_to: "authors_clip";
144 scale: 1;
145 description {
146 state: "default" 0.0;
147 fixed: 1 1;
148 align: 0.5 0.0;
149 max: 10000 10000;
150 min: 160 0;
151 rel1 {
152 to: "bot";
153 relative: 0.0 1.0;
154 offset: 32 0;
155 }
156 rel2 {
157 to: "bot";
158 relative: 1.0 1.0;
159 offset: -33 0;
160 }
161 text {
162 style: "about_style";
163 min: 0 1;
164 }
165 }
166 description {
167 state: "up" 0.0;
168 inherit: "default" 0.0;
169 align: 0.5 1.0;
170 rel1 {
171 relative: 0.0 0.0;
172 offset: 32 16;
173 }
174 rel2 {
175 relative: 1.0 0.0;
176 offset: -33 16;
177 }
178 }
179 }
180 part {
181 name: "top";
182 description {
183 state: "default" 0.0;
184 image.normal: "O/about_top.png";
185 image.middle: 0;
186 image.border: 28 28 0 28;
187 rel2.to_y: "e.text.title";
188 rel2.relative: 1.0 0.0;
189 rel2.offset: -1 6;
190 fill.smooth: 0;
191 }
192 }
193 part {
194 name: "bot";
195 description {
196 state: "default" 0.0;
197 image.normal: "O/about_bot.png";
198 image.middle: 0;
199 image.border: 28 28 28 0;
200 rel1.to_y: "e.text.title";
201 rel1.relative: 0.0 1.0;
202 rel1.offset: 0 -5;
203 fill.smooth: 0;
204 }
205 }
206 part {
207 name: "mid";
208 description {
209 state: "default" 0.0;
210 image.normal: "O/about_mid.png";
211 rel1 {
212 to: "top";
213 relative: 0.0 1.0;
214 offset: 0 -1;
215 }
216 rel2 {
217 to: "bot";
218 relative: 1.0 0.0;
219 offset: -1 0;
220 }
221 fill.smooth: 0;
222 }
223 }
224 part {
225 name: "e.text.title";
226 type: TEXT;
227 mouse_events: 0;
228 scale: 1;
229 description {
230 state: "default" 0.0;
231 color: 0 0 0 255;
232 align: 1.0 0.5;
233 rel1 {
234 relative: 0.0 0.5;
235 offset: 0 0;
236 }
237 rel2 {
238 to_x: "logo";
239 relative: 0.0 0.5;
240 offset: 11 -1;
241 }
242 text {
243 font: "Sans:style=Bold";
244 size: 10;
245 min: 1 1;
246 align: 1.0 0.5;
247 text_class: "about_title";
248 }
249 }
250 }
251 part {
252 name: "e.text.version";
253 type: TEXT;
254 mouse_events: 0;
255 scale: 1;
256 description {
257 state: "default" 0.0;
258 color: 0 0 0 255;
259 align: 0.0 0.5;
260 rel1 {
261 to_x: "logo";
262 relative: 1.0 0.5;
263 offset: -12 0;
264 }
265 rel2 {
266 relative: 1.0 0.5;
267 offset: -1 -1;
268 }
269 text {
270 font: "Sans:style=Bold";
271 size: 10;
272 min: 1 1;
273 align: 0.0 0.5;
274 text_class: "about_version";
275 }
276 }
277 }
278 part {
279 name: "shadow";
280 scale: 1;
281 description {
282 state: "default" 0.0;
283 image.normal: "O/topsh.png";
284 align: 0.0 0.0;
285 min: 1 16;
286 max: 99999 16;
287 fill.smooth: 0;
288 }
289 }
290 part {
291 name: "shadow2";
292 mouse_events: 0;
293 description {
294 state: "default" 0.0;
295 rel1.relative: 0.0 1.0;
296 rel1.offset: 0 -4;
297 image.normal: "O/dia_botshad.png";
298 fill {
299 smooth: 0;
300 size {
301 relative: 0.0 1.0;
302 offset: 64 0;
303 }
304 }
305 }
306 }
307 part {
308 name: "logo";
309 description {
310 state: "default" 0.0;
311 aspect: 1.0 1.0;
312 aspect_preference: VERTICAL;
313 image.normal: "O/logo_white_128.png";
314 rel1 {
315 to: "top";
316 relative: 0.5 1.0;
317 offset: 0 -30;
318 }
319 rel2 {
320 to: "bot";
321 relative: 0.5 0.0;
322 offset: -1 29;
323 }
324 }
325 }
326 part {
327 name: "button_image";
328 mouse_events: 1;
329 scale: 1;
330 description {
331 state: "default" 0.0;
332 fixed: 1 1;
333 align: 0.5 1.0;
334 rel1.relative: 0.5 0.98;
335 rel1.offset: 0 -1;
336 rel2.relative: 0.5 0.98;
337 rel2.offset: 0 -1;
338 min: 64 32;
339 max: 64 32;
340 image {
341 normal: "O/bt_base2.png";
342 border: 7 7 7 7;
343 }
344 }
345 description {
346 state: "clicked" 0.0;
347 inherit: "default" 0.0;
348 image.normal: "O/bt_base1.png";
349 }
350 }
351 part {
352 name: "e.text.label";
353 type: TEXT;
354 effect: SOFT_SHADOW;
355 mouse_events: 0;
356 scale: 1;
357 description {
358 state: "default" 0.0;
359 rel1 {
360 to: "button_image";
361 relative: 0.0 0.0;
362 offset: 3 3;
363 }
364 rel2 {
365 relative: 1.0 1.0;
366 offset: -4 -4;
367 to: "button_image";
368 }
369 color_class: "button_text";
370 text {
371 text: "Close";
372 font: "Sans";
373 size: 10;
374 min: 1 1;
375 align: 0.5 0.5;
376 text_class: "button";
377 }
378 }
379 }
380 part {
381 name: "over1";
382 mouse_events: 0;
383 description {
384 state: "default" 0.0;
385 rel1.to: "button_image";
386 rel2.to: "button_image";
387 rel2.relative: 1.0 0.5;
388 image {
389 normal: "O/bt_hilight.png";
390 border: 7 7 7 0;
391 }
392 }
393 }
394 part {
395 name: "over2";
396 mouse_events: 0;
397 description {
398 state: "default" 0.0;
399 rel1.to: "button_image";
400 rel2.to: "button_image";
401 image {
402 normal: "O/bt_shine.png";
403 border: 7 7 7 7;
404 }
405 }
406 }
407 part {
408 name: "over3";
409 mouse_events: 0;
410 description {
411 state: "default" 0.0;
412 rel1.to: "button_image";
413 rel2.to: "button_image";
414 visible: 0;
415 color: 255 255 255 0;
416 image {
417 normal: "O/bt_glow.png";
418 border: 12 12 12 12;
419 }
420 fill.smooth : 0;
421 }
422 description {
423 state: "clicked" 0.0;
424 inherit: "default" 0.0;
425 visible: 1;
426 color: 255 255 255 255;
427 }
428 }
429 }
430 programs {
431 program {
432 name: "showa";
433 signal: "show";
434 source: "";
435 action: STATE_SET "up" 0.0;
436 transition: LINEAR 45.0;
437 target: "e.textblock.about";
438 after: "showa2";
439 }
440 program {
441 name: "showa2";
442 action: STATE_SET "default" 0.0;
443 target: "e.textblock.about";
444 after: "showa";
445 }
446 program {
447 name: "showb";
448 signal: "show";
449 source: "";
450 action: STATE_SET "up" 0.0;
451 transition: LINEAR 45.0;
452 target: "e.textblock.authors";
453 after: "showb2";
454 }
455 program {
456 name: "showb2";
457 action: STATE_SET "default" 0.0;
458 target: "e.textblock.authors";
459 after: "showb";
460 }
461 program {
462 name: "button_click";
463 signal: "mouse,down,1";
464 source: "button_image";
465 action: STATE_SET "clicked" 0.0;
466 target: "button_image";
467 target: "over3";
468 }
469 program {
470 name: "button_unclick";
471 signal: "mouse,up,1";
472 source: "button_image";
473 action: STATE_SET "default" 0.0;
474 target: "button_image";
475 target: "over3";
476 }
477 program {
478 name: "button_unclick2";
479 signal: "mouse,clicked,1";
480 source: "button_image";
481 action: SIGNAL_EMIT "e,action,close" "";
482 }
483 }
484 }
485*/
486
487/////////////////////////////////////////////////////////////////////////////
488/*** THEME ABOUT ***/
489
490 group {
491 name: "e/theme/about";
492 images {
493 image: "O/silk.png" LOSSY 90;
494 image: "O/topsh.png" COMP;
495 image: "O/bnw.png" COMP;
496 image: "O/bt_base1.png" COMP;
497 image: "O/bt_base2.png" COMP;
498 image: "O/bt_hilight.png" COMP;
499 image: "O/bt_shine.png" COMP;
500 image: "O/bt_glow.png" COMP;
501 }
502 styles {
503 style {
504 name: "theme_about_style";
505 base: "font=Sans:style=Bold font_size=10 align=center color=#e0e0e0ff style=soft_shadow shadow_color=#0000001f wrap=word";
506 tag: "br" "\n";
507 }
508 }
509 // data.item: "borderless" "1";
510 // data.item: "shaped" "1";
511 min: 300 240;
512 max: 640 640;
513 parts {
514 part {
515 name: "background_image";
516 description {
517 state: "default" 0.0;
518 image.normal: "O/silk.png";
519 aspect: 1.0 1.0;
520 aspect_preference: NONE;
521 }
522 }
523 part {
524 name: "shadow";
525 scale: 1;
526 description {
527 state: "default" 0.0;
528 image.normal: "O/topsh.png";
529 align: 0.0 0.0;
530 min: 1 16;
531 max: 99999 16;
532 fill.smooth: 0;
533 }
534 }
535 part {
536 name: "logo";
537 description {
538 state: "default" 0.0;
539 image.normal: "O/bnw.png";
540 align: 0.5 0.05;
541 min: 230 110;
542 max: 460 220;
543 aspect: 2.090909091 2.090909091;
544 aspect_preference: HORIZONTAL;
545 }
546 }
547 part {
548 name: "about";
549 type: TEXTBLOCK;
550 mouse_events: 0;
551 scale: 1;
552 description {
553 state: "default" 0.0;
554 rel1 {
555 to_y: "logo";
556 relative: 0.0 1.0;
557 offset: 8 0;
558 }
559 rel2 {
560 to_y: "button_image";
561 offset: -9 -19;
562 relative: 1.0 0.0;
563 }
564 text {
565 style: "theme_about_style";
566 min: 1 1;
567 text:
568 "Smooth as silk<br>"
569 "The default theme for<br>"
570 "Enlightenment<br>"
571 ;
572 }
573 }
574 }
575 part {
576 name: "button_image";
577 mouse_events: 1;
578 scale: 1;
579 description {
580 state: "default" 0.0;
581 fixed: 1 1;
582 align: 0.5 1.0;
583 rel1.relative: 0.5 0.98;
584 rel1.offset: 0 -1;
585 rel2.relative: 0.5 0.98;
586 rel2.offset: 0 -1;
587 min: 64 32;
588 max: 64 32;
589 image {
590 normal: "O/bt_base2.png";
591 border: 7 7 7 7;
592 }
593 }
594 description {
595 state: "clicked" 0.0;
596 inherit: "default" 0.0;
597 image.normal: "O/bt_base1.png";
598 }
599 }
600 // also have e.text.theme for theme settings
601 part {
602 name: "e.text.label";
603 type: TEXT;
604 effect: SOFT_SHADOW;
605 mouse_events: 0;
606 scale: 1;
607 description {
608 state: "default" 0.0;
609 rel1 {
610 to: "button_image";
611 relative: 0.0 0.0;
612 offset: 3 3;
613 }
614 rel2 {
615 relative: 1.0 1.0;
616 offset: -4 -4;
617 to: "button_image";
618 }
619 color_class: "button_text";
620 text {
621 text: "Close";
622 font: "Sans";
623 size: 10;
624 min: 1 1;
625 align: 0.5 0.5;
626 text_class: "button";
627 }
628 }
629 }
630 part {
631 name: "over1";
632 mouse_events: 0;
633 description {
634 state: "default" 0.0;
635 rel1.to: "button_image";
636 rel2.to: "button_image";
637 rel2.relative: 1.0 0.5;
638 image {
639 normal: "O/bt_hilight.png";
640 border: 7 7 7 0;
641 }
642 }
643 }
644 part {
645 name: "over2";
646 mouse_events: 0;
647 description {
648 state: "default" 0.0;
649 rel1.to: "button_image";
650 rel2.to: "button_image";
651 image {
652 normal: "O/bt_shine.png";
653 border: 7 7 7 7;
654 }
655 }
656 }
657 part {
658 name: "over3";
659 mouse_events: 0;
660 description {
661 state: "default" 0.0;
662 rel1.to: "button_image";
663 rel2.to: "button_image";
664 visible: 0;
665 color: 255 255 255 0;
666 image {
667 normal: "O/bt_glow.png";
668 border: 12 12 12 12;
669 }
670 fill.smooth : 0;
671 }
672 description {
673 state: "clicked" 0.0;
674 inherit: "default" 0.0;
675 visible: 1;
676 color: 255 255 255 255;
677 }
678 }
679 }
680 programs {
681 program {
682 name: "button_click";
683 signal: "mouse,down,1";
684 source: "button_image";
685 action: STATE_SET "clicked" 0.0;
686 target: "button_image";
687 target: "over3";
688 }
689 program {
690 name: "button_unclick";
691 signal: "mouse,up,1";
692 source: "button_image";
693 action: STATE_SET "default" 0.0;
694 target: "button_image";
695 target: "over3";
696 }
697 program {
698 name: "button_unclick2";
699 signal: "mouse,clicked,1";
700 source: "button_image";
701 action: SIGNAL_EMIT "e,action,close" "";
702 // also have "e,action,settings,theme" ""
703 // for theme settings
704 }
705 }
706 }
707
708
diff --git a/data/themes/edc/O/backlight.edc b/data/themes/edc/O/backlight.edc
deleted file mode 100644
index de7ace5d6..000000000
--- a/data/themes/edc/O/backlight.edc
+++ /dev/null
@@ -1,58 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: BACKLIGHT ***/
3 group { name: "e/modules/backlight/main";
4 images {
5 image: "O/bulb-0.png" COMP;
6 image: "O/bulb-1.png" COMP;
7 image: "O/bulb-2.png" COMP;
8 }
9 min: 16 16;
10 max: 128 128;
11 script {
12 public message(Msg_Type:type, id, ...) {
13 if ((type == MSG_FLOAT) && (id == 0)) {
14 new Float:val;
15 val = getfarg(2);
16 set_tween_state(PART:"glow", val, "default", 0.0, "full", 0.0);
17 set_tween_state(PART:"glow2", val, "default", 0.0, "full", 0.0);
18 }
19 }
20 }
21 parts {
22 part {
23 name: "glow";
24 description { state: "default" 0.0;
25 rel1.to: "base";
26 rel2.to: "base";
27 image.normal: "O/bulb-1.png";
28 color: 255 255 255 0;
29 }
30 description { state: "full" 0.0;
31 inherit: "default" 0.0;
32 color: 255 255 255 255;
33 }
34 }
35 part {
36 name: "base";
37 description { state: "default" 0.0;
38 aspect: 1.0 1.0;
39 aspect_preference: BOTH;
40 image.normal: "O/bulb-0.png";
41 }
42 }
43 part {
44 name: "glow2";
45 description { state: "default" 0.0;
46 rel1.to: "base";
47 rel2.to: "base";
48 image.normal: "O/bulb-2.png";
49 color: 255 255 255 0;
50 }
51 description { state: "full" 0.0;
52 inherit: "default" 0.0;
53 color: 255 255 255 255;
54 }
55 }
56 }
57 }
58
diff --git a/data/themes/edc/O/battery.edc b/data/themes/edc/O/battery.edc
deleted file mode 100644
index d4e6e7c55..000000000
--- a/data/themes/edc/O/battery.edc
+++ /dev/null
@@ -1,324 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: BATTERY ***/
3
4 group {
5 name: "e/modules/battery/main";
6 images {
7 image: "O/batt_base.png" COMP;
8 image: "O/batt_level.png" COMP;
9 image: "O/batt_over.png" COMP;
10 image: "O/batt_power.png" COMP;
11 }
12 min: 16 16;
13 max: 128 128;
14 script {
15 public message(Msg_Type:type, id, ...) {
16 if ((type == MSG_FLOAT) && (id == 1)) {
17 new Float:val;
18 new r;
19 new g;
20 new b;
21 val = getfarg(2);
22 if (val < 0.35) {
23 new Float:val1;
24 new Float:val2;
25 val1 = val - 0.10;
26 if (val1 < 0.0) val1 = 0.0;
27 val2 = 0.125 - val1;
28 if (val2 < 0.0) val2 = 0.0;
29 val2 = val2 / 0.125;
30 r = round(val2 * 255.0, ROUND);
31 val2 = val1;
32 if (val2 > 0.125) val2 = 0.125;
33 val2 = val2 / 0.125;
34 g = round(val2 * 255.0, ROUND);
35 b = 0;
36 }
37 else {
38 r = 0;
39 g = 255;
40 b = 0;
41 }
42 custom_state(PART:"fill", "default", 0.0);
43 set_state_val(PART:"fill", STATE_COLOR, r, g, b, 255);
44 set_state_val(PART:"fill", STATE_COLOR, r, g, b, 255);
45 set_state_val(PART:"fill", STATE_COLOR, r, g, b, 255);
46 set_state(PART:"fill", "custom", 0.0);
47
48 custom_state(PART:"fill_clip", "default", 0.0);
49 set_state_val(PART:"fill_clip", STATE_REL1, 0.0, 1.0 - val);
50 set_state(PART:"fill_clip", "custom", 0.0);
51 }
52 }
53 }
54 parts {
55 part { name: "fade_clip";
56 type: RECT;
57 mouse_events: 0;
58 description { state: "default" 0.0;
59 color: 255 255 255 255;
60 }
61 description { state: "faded" 0.0;
62 color: 255 255 255 160;
63 }
64 }
65 part { name: "info_clip";
66 type: RECT;
67 mouse_events: 0;
68 clip_to: "fade_clip";
69 description { state: "default" 0.0;
70 color: 255 255 255 0;
71 }
72 description { state: "visible" 0.0;
73 color: 255 255 255 255;
74 }
75 }
76 part { name: "pulse_clip";
77 type: RECT;
78 mouse_events: 0;
79 clip_to: "fade_clip";
80 description { state: "default" 0.0;
81 color: 255 255 255 255;
82 }
83 description { state: "faded" 1.0;
84 color: 255 255 255 255;
85 }
86 description { state: "faded" 0.0;
87 color: 255 255 255 0;
88 }
89 }
90 part { name: "fill_region";
91 mouse_events: 0;
92 type: RECT;
93 description { state: "default" 0.0;
94 visible: 0;
95 rel1.relative: 0.0 (26/128);
96 rel2.relative: 1.0 ((128-14)/128);
97 }
98 }
99 part { name: "fill_clip";
100 type: RECT;
101 mouse_events: 0;
102 clip_to: "pulse_clip";
103 description { state: "default" 0.0;
104 rel1.to: "fill_region";
105 rel1.relative: 0.0 0.5;
106 rel2.to: "fill_region";
107 color: 255 255 255 255;
108 }
109 }
110 part { name: "base";
111 clip_to: "pulse_clip";
112 description { state: "default" 0.0;
113 aspect: 1.0 1.0;
114 aspect_preference: BOTH;
115 image.normal: "O/batt_base.png";
116 }
117 }
118 part { name: "fill";
119 mouse_events: 0;
120 clip_to: "fill_clip";
121 description { state: "default" 0.0;
122 rel1.to: "base";
123 rel2.to: "base";
124 image.normal: "O/batt_level.png";
125 }
126 }
127 part { name: "over";
128 mouse_events: 0;
129 clip_to: "pulse_clip";
130 description { state: "default" 0.0;
131 rel1.to: "base";
132 rel2.to: "base";
133 image.normal: "O/batt_over.png";
134 }
135 }
136 part { name: "power";
137 mouse_events: 0;
138 description { state: "default" 0.0;
139 rel1.to: "base";
140 rel2.to: "base";
141 image.normal: "O/batt_power.png";
142 visible: 0;
143 }
144 description { state: "visible" 0.0;
145 inherit: "default" 0.0;
146 visible: 1;
147 }
148 }
149 part { name: "e.text.reading";
150 mouse_events: 0;
151 type: TEXT;
152 scale: 1;
153 clip_to: "info_clip";
154 effect: OUTLINE;
155 description { state: "default" 0.0;
156 align: 1.0 0.5;
157 rel1.relative: 0.5 0.0;
158 rel2.relative: 1.0 0.3;
159 color: 0 0 0 255;
160 color2: 255 255 255 128;
161 color_class: "module_label";
162 text {
163 font: "Sans";
164 size: 8;
165 min: 1 1;
166 align: 1.0 0.5;
167 text_class: "module_small";
168 }
169 }
170 }
171 part { name: "e.text.time";
172 mouse_events: 0;
173 type: TEXT;
174 scale: 1;
175 clip_to: "info_clip";
176 effect: OUTLINE;
177 description { state: "default" 0.0;
178 align: 1.0 0.5;
179 rel1.relative: 0.5 0.3;
180 rel2.relative: 1.0 0.6;
181 color: 0 0 0 255;
182 color2: 255 255 255 128;
183 color_class: "module_label";
184 text {
185 font: "Sans";
186 size: 8;
187 min: 1 1;
188 align: 1.0 0.5;
189 text_class: "module_small";
190 }
191 }
192 }
193 }
194 programs {
195 program { name: "hover1";
196 signal: "mouse,in";
197 source: "base";
198 action: STATE_SET "visible" 0.0;
199 transition: LINEAR 0.3;
200 target: "info_clip";
201 }
202 program { name: "hover2";
203 signal: "mouse,out";
204 source: "base";
205 action: STATE_SET "default" 0.0;
206 transition: LINEAR 0.3;
207 target: "info_clip";
208 }
209 program { name: "charge";
210 signal: "e,state,charging";
211 source: "e";
212 action: STATE_SET "visible" 0.0;
213 target: "power";
214 }
215 program { name: "discharge";
216 signal: "e,state,discharging";
217 source: "e";
218 action: STATE_SET "default" 0.0;
219 target: "power";
220 }
221 program { name: "unknown";
222 signal: "e,state,unknown";
223 source: "e";
224 action: STATE_SET "faded" 0.0;
225 target: "fade_clip";
226 }
227 program { name: "pulse";
228 signal: "e,action,pulse,start";
229 source: "e";
230 action: STATE_SET "faded" 0.0;
231 transition: ACCELERATE 0.3;
232 after: "pulse2";
233 target: "pulse_clip";
234 }
235 program { name: "pulse2";
236 action: STATE_SET "faded" 1.0;
237 transition: ACCELERATE 0.1;
238 target: "pulse_clip";
239 }
240 program { name: "pulsestop";
241 signal: "e,action,pulse,stop";
242 source: "e";
243 action: STATE_SET "default" 0.0;
244 target: "pulse_clip";
245 }
246 }
247 }
248 group {
249 name: "e/modules/battery/popup";
250 min: 240 64;
251 parts {
252 part {
253 name: "battery";
254 type: SWALLOW;
255 mouse_events: 1;
256 repeat_events: 1;
257 description {
258 state: "default" 0.0;
259 min: 1 1;
260 max: 120 120;
261 aspect: 1.0 1.0;
262 aspect_preference: VERTICAL;
263 align: 0.0 0.5;
264 rel1.relative: 0.0 0.0;
265 rel2.relative: 1.0 1.0;
266 color: 255 255 255 255;
267 }
268 }
269 part {
270 name: "e.text.title";
271 type: TEXT;
272 mouse_events: 0;
273 scale: 1;
274 description {
275 state: "default" 0.0;
276 rel1 {
277 relative: 1.0 0.0;
278 to_x: battery;
279 offset: 0 0;
280 }
281 rel2 {
282 relative: 1.0 0.5;
283 offset: -1 -1;
284 }
285 color: 0 0 0 255;
286 text {
287 text: "Your battery is low!";
288 font: "Sans:style=Bold";
289 size: 10;
290 min: 1 1;
291 align: 0.5 0.5;
292 text_class: "module_large";
293 }
294 }
295 }
296 part {
297 name: "e.text.label";
298 type: TEXT;
299 mouse_events: 0;
300 scale: 1;
301 description {
302 state: "default" 0.0;
303 rel1 {
304 relative: 1.0 0.5;
305 to_x: battery;
306 offset: 0 0;
307 }
308 rel2 {
309 relative: 1.0 1.0;
310 offset: -1 -1;
311 }
312 color: 0 0 0 255;
313 text {
314 text: "AC power is recommended.";
315 font: "Sans";
316 size: 10;
317 min: 1 1;
318 align: 0.5 0.5;
319 text_class: "module_normal";
320 }
321 }
322 }
323 }
324 }
diff --git a/data/themes/edc/O/border.edc b/data/themes/edc/O/border.edc
deleted file mode 100644
index 8f499592f..000000000
--- a/data/themes/edc/O/border.edc
+++ /dev/null
@@ -1,119 +0,0 @@
1 group {
2 name: "e/widgets/border/default/move";
3 images {
4 image: "O/base_bg.png" COMP;
5 image: "O/icon_win_move.png" COMP;
6 }
7 parts {
8 part {
9 name: "base";
10 mouse_events: 0;
11 description {
12 state: "default" 0.0;
13 image {
14 normal: "O/base_bg.png";
15 border: 2 2 2 2;
16 }
17 fill.smooth: 0;
18 }
19 }
20 part {
21 name: "icon";
22 mouse_events: 0;
23 description {
24 state: "default" 0.0;
25 align: 0.0 0.5;
26 min: 21 21;
27 max: 21 21;
28 fixed: 1 1;
29 rel1.offset: 2 2;
30 rel2.relative: 0.0 1.0;
31 rel2.offset: 2 -3;
32 image.normal: "O/icon_win_move.png";
33 }
34 }
35 part {
36 name: "e.text.label";
37 type: TEXT;
38 scale: 1;
39 description {
40 state: "default" 0.0;
41 rel1.to_x: "icon";
42 rel1.offset: 2 4;
43 rel1.relative: 1.0 0.0;
44 rel2.offset: -5 -5;
45 color_class: "move_text";
46 color: 0 0 0 255;
47 text {
48 text: "X Y";
49 font: "Sans";
50 size: 10;
51 align: 0.5 0.5;
52 min: 1 1;
53 text_class: "move_text";
54 }
55 }
56 }
57 }
58 }
59 group {
60 name: "e/widgets/border/default/resize";
61 images {
62 image: "O/base_bg.png" COMP;
63 image: "O/icon_win_resize.png" COMP;
64 }
65 parts {
66 part {
67 name: "base";
68 mouse_events: 0;
69 description {
70 state: "default" 0.0;
71 align: 0.5 0.0;
72 image {
73 normal: "O/base_bg.png";
74 border: 2 2 2 2;
75 }
76 fill.smooth: 0;
77 }
78 }
79 part {
80 name: "icon";
81 mouse_events: 0;
82 description {
83 state: "default" 0.0;
84 align: 0.0 0.5;
85 min: 21 21;
86 max: 21 21;
87 fixed: 1 1;
88 rel1.offset: 2 2;
89 rel2.relative: 0.0 1.0;
90 rel2.offset: 2 -3;
91 image.normal: "O/icon_win_resize.png";
92 }
93 }
94 part {
95 name: "e.text.label";
96 type: TEXT;
97 scale: 1;
98 description {
99 state: "default" 0.0;
100 rel1.to_x: "icon";
101 rel1.offset: 2 4;
102 rel1.relative: 1.0 0.0;
103 rel2.offset: -5 -5;
104 color_class: "resize_text";
105 color: 0 0 0 255;
106 text {
107 text: "WxH";
108 font: "Sans";
109 size: 10;
110 align: 0.5 0.5;
111 min: 1 1;
112 text_class: "resize_text";
113 }
114 }
115 }
116 }
117 }
118
119
diff --git a/data/themes/edc/O/border_icons.edc b/data/themes/edc/O/border_icons.edc
deleted file mode 100644
index a77eba04b..000000000
--- a/data/themes/edc/O/border_icons.edc
+++ /dev/null
@@ -1,46 +0,0 @@
1 // Window Border menu icons //
2 #define BORDERICON(NAME, FILE) \
3 group { \
4 name: "e/widgets/border/default/"NAME ; \
5 max: 64 64; \
6 parts { \
7 part { \
8 name: "icon"; \
9 mouse_events: 0; \
10 description { \
11 state: "default" 0.0; \
12 aspect: 1.0 1.0; \
13 aspect_preference: BOTH; \
14 image.image: "O/"FILE COMP; \
15 image.normal: "O/"FILE ; \
16 } \
17 } \
18 } \
19 }
20
21 BORDERICON("basic","icon_border_more.png")
22 BORDERICON("close","icon_border_close.png")
23 BORDERICON("kill","icon_border_kill.png")
24 BORDERICON("stacking","icon_border_stack_norm.png")
25 BORDERICON("stack_on_top","icon_border_stack_top.png")
26 BORDERICON("stack_normal","icon_border_stack_norm.png")
27 BORDERICON("stack_below","icon_border_stack_bot.png")
28 BORDERICON("move_icon", "icon_win_move.png")
29 BORDERICON("resize_icon", "icon_win_resize.png");
30 BORDERICON("maximize","icon_border_maximize.png")
31 BORDERICON("fullscreen","icon_border_maximize.png")
32 BORDERICON("minimize","icon_border_minimize.png")
33 BORDERICON("stick","icon_border_pin.png")
34 BORDERICON("sendto","icon_border_sendto.png")
35 BORDERICON("skip","icon_border_skip.png")
36 BORDERICON("skip_pager","icon_border_pager.png")
37 BORDERICON("skip_taskbar","icon_border_skip.png")
38 BORDERICON("skip_winlist","icon_border_skip.png")
39 BORDERICON("borderless","icon_border_border.png")
40 BORDERICON("remember","icon_border_remember.png")
41 BORDERICON("shade","icon_border_shaded.png")
42 BORDERICON("locks","icon_border_lock.png")
43 BORDERICON("locks_user","icon_border_lock.png")
44 BORDERICON("locks_application","icon_border_lock.png")
45 BORDERICON("properties","icon_border_properties.png")
46
diff --git a/data/themes/edc/O/clock.edc b/data/themes/edc/O/clock.edc
deleted file mode 100644
index 8ac34391a..000000000
--- a/data/themes/edc/O/clock.edc
+++ /dev/null
@@ -1,1031 +0,0 @@
1/*** MOD: CLOCK ***/
2 group { name: "e/modules/clock/digital";
3 min: 56 16;
4 max: 512 128;
5 images {
6 image: "O/flip_base.png" COMP;
7 image: "O/flip_base_shad.png" COMP;
8 image: "O/flip_shad.png" COMP;
9 image: "O/flip_0t.png" COMP;
10 image: "O/flip_0b.png" COMP;
11 image: "O/flip_1t.png" COMP;
12 image: "O/flip_1b.png" COMP;
13 image: "O/flip_2t.png" COMP;
14 image: "O/flip_2b.png" COMP;
15 image: "O/flip_3t.png" COMP;
16 image: "O/flip_3b.png" COMP;
17 image: "O/flip_4t.png" COMP;
18 image: "O/flip_4b.png" COMP;
19 image: "O/flip_5t.png" COMP;
20 image: "O/flip_5b.png" COMP;
21 image: "O/flip_6t.png" COMP;
22 image: "O/flip_6b.png" COMP;
23 image: "O/flip_7t.png" COMP;
24 image: "O/flip_7b.png" COMP;
25 image: "O/flip_8t.png" COMP;
26 image: "O/flip_8b.png" COMP;
27 image: "O/flip_9t.png" COMP;
28 image: "O/flip_9b.png" COMP;
29 image: "O/flip_amt.png" COMP;
30 image: "O/flip_amb.png" COMP;
31 image: "O/flip_pmt.png" COMP;
32 image: "O/flip_pmb.png" COMP;
33 image: "O/flip_colon.png" COMP;
34 }
35 script {
36#define DIGPRG(nom, ns) \
37 public ns ## v0_cur, ns ## v0_pre, ns ## v0_lock, ns ## v0_next; \
38 public ns ## animator2(val, Float:pos) { \
39 new st1[11], st2[11], v; \
40 v = get_int(ns ## v0_cur); \
41 snprintf(st1, 10, "%ih", v); \
42 snprintf(st2, 10, "%i", v); \
43 set_tween_state(PART:nom"bot", pos, st1, 0.0, st2, 0.0); \
44 set_tween_state(PART:nom"sh", pos, "half", 0.0, "full", 0.0); \
45 if (pos >= 1.0) { \
46 set_state(PART:nom"sh", "default", 0.0); \
47 set_int(ns ## v0_lock, 0); \
48 } \
49 } \
50 public ns ## animator1(val, Float:pos) { \
51 new st1[11], st2[11], v; \
52 v = get_int(ns ## v0_pre); \
53 snprintf(st1, 10, "%i", v); \
54 snprintf(st2, 10, "%ih", v); \
55 set_tween_state(PART:nom"top", pos, st1, 0.0, st2, 0.0); \
56 set_tween_state(PART:nom"sh", pos, "default", 0.0, "half", 0.0); \
57 if (pos >= 1.0) anim(0.1, #ns"animator2", val); \
58 } \
59 public ns ## valset(value) { \
60 new v, buf[11]; \
61 v = get_int(ns ## v0_cur); \
62 if (v == value) return; \
63 if (get_int(ns ## v0_lock) == 1) { \
64 set_state(PART:nom"sh", "default", 0.0); \
65 } \
66 set_int(ns ## v0_pre, v); \
67 set_int(ns ## v0_cur, value); \
68 set_int(ns ## v0_lock, 1); \
69 snprintf(buf, 10, "%i", get_int(ns ## v0_pre)); \
70 set_state(PART:nom"bot0", buf, 0.0); \
71 snprintf(buf, 10, "%ih", get_int(ns ## v0_cur)); \
72 set_state(PART:nom"bot", buf, 0.0); \
73 snprintf(buf, 10, "%i", get_int(ns ## v0_cur)); \
74 set_state(PART:nom"top0", buf, 0.0); \
75 snprintf(buf, 10, "%i", get_int(ns ## v0_pre)); \
76 set_state(PART:nom"top", buf, 0.0); \
77 set_state(PART:nom"sh", "default", 0.0); \
78 anim(0.1, #ns"animator1", 1); \
79 }
80
81 DIGPRG("s1", s1)
82 DIGPRG("s2", s2)
83
84 DIGPRG("m1", m1)
85 DIGPRG("m2", m2)
86
87 DIGPRG("h1", h1)
88 DIGPRG("h2", h2)
89
90 DIGPRG("ap", ap)
91
92 public do_seconds, do_24h, tick_timer;
93
94 public clock_cb(val) {
95 new year, month, day, yearday, weekday, hour, minute;
96 new Float:second;
97 new v, dosec, do24h, tim;
98
99 date(year, month, day, yearday, weekday, hour, minute, second);
100 dosec = get_int(do_seconds);
101 if (dosec) {
102 v = round(second);
103 tim = timer(1.0 - (second - v), "clock_cb", 1);
104 // set seconds to v
105 s1valset(v / 10);
106 s2valset(v % 10);
107 }
108 else {
109 tim = timer(60.0 - (second), "clock_cb", 1);
110 }
111 set_int(tick_timer, tim);
112
113 // set minutes to minute
114 m1valset(minute / 10);
115 m2valset(minute % 10);
116
117 // set hours to hour
118 do24h = get_int(do_24h);
119 if (do24h) {
120 h1valset(hour / 10);
121 h2valset(hour % 10);
122 }
123 else {
124 new pm;
125
126 // if 12 or later, its pm
127 if (hour >= 12) {
128 pm = 1;
129 // if we are after 12 (1, 2, 3 etc.) then mod by 12
130 if (hour > 12) hour = hour % 12;
131 }
132 else {
133 pm = 0;
134 // make after midnight be 12:XX AM :)
135 if (hour == 0) hour = 12;
136 }
137 h1valset(hour / 10);
138 h2valset(hour % 10);
139 apvalset(pm);
140 }
141 }
142
143 public eval_fields() {
144 new do24h, dosec;
145
146 dosec = get_int(do_seconds);
147 do24h = get_int(do_24h);
148 custom_state(PART:"hours1", "default", 0.0);
149 custom_state(PART:"hours2", "default", 0.0);
150 custom_state(PART:"mins1", "default", 0.0);
151 custom_state(PART:"mins2", "default", 0.0);
152 custom_state(PART:"secs1", "default", 0.0);
153 custom_state(PART:"secs2", "default", 0.0);
154 custom_state(PART:"ampm", "default", 0.0);
155 if ((dosec) && (!do24h)) { // sec + ampm
156 set_state_val(PART:"hours1", STATE_REL1, (0.0/16.0), 0.0);
157 set_state_val(PART:"hours1", STATE_REL2, (2.0/16.0), 1.0);
158 set_state_val(PART:"hours2", STATE_REL1, (2.0/16.0), 0.0);
159 set_state_val(PART:"hours2", STATE_REL2, (4.0/16.0), 1.0);
160 set_state_val(PART:"mins1", STATE_REL1, (5.0/16.0), 0.0);
161 set_state_val(PART:"mins1", STATE_REL2, (7.0/16.0), 1.0);
162 set_state_val(PART:"mins2", STATE_REL1, (7.0/16.0), 0.0);
163 set_state_val(PART:"mins2", STATE_REL2, (9.0/16.0), 1.0);
164 set_state_val(PART:"secs1", STATE_REL1, (10.0/16.0), 0.0);
165 set_state_val(PART:"secs1", STATE_REL2, (12.0/16.0), 1.0);
166 set_state_val(PART:"secs2", STATE_REL1, (12.0/16.0), 0.0);
167 set_state_val(PART:"secs2", STATE_REL2, (14.0/16.0), 1.0);
168 set_state_val(PART:"ampm", STATE_REL1, (14.0/16.0), 0.0);
169 set_state_val(PART:"ampm", STATE_REL2, (16.0/16.0), 1.0);
170 set_min_size(16 * 4, 16);
171 set_max_size(16 * 32, 128);
172 }
173 else if ((dosec) && (do24h)) { // sec + -
174 set_state_val(PART:"hours1", STATE_REL1, (0.0/14.0), 0.0);
175 set_state_val(PART:"hours1", STATE_REL2, (2.0/14.0), 1.0);
176 set_state_val(PART:"hours2", STATE_REL1, (2.0/14.0), 0.0);
177 set_state_val(PART:"hours2", STATE_REL2, (4.0/14.0), 1.0);
178 set_state_val(PART:"mins1", STATE_REL1, (5.0/14.0), 0.0);
179 set_state_val(PART:"mins1", STATE_REL2, (7.0/14.0), 1.0);
180 set_state_val(PART:"mins2", STATE_REL1, (7.0/14.0), 0.0);
181 set_state_val(PART:"mins2", STATE_REL2, (9.0/14.0), 1.0);
182 set_state_val(PART:"secs1", STATE_REL1, (10.0/14.0), 0.0);
183 set_state_val(PART:"secs1", STATE_REL2, (12.0/14.0), 1.0);
184 set_state_val(PART:"secs2", STATE_REL1, (12.0/14.0), 0.0);
185 set_state_val(PART:"secs2", STATE_REL2, (14.0/14.0), 1.0);
186 set_state_val(PART:"ampm", STATE_REL1, (0.0/1.0), 0.0);
187 set_state_val(PART:"ampm", STATE_REL2, (0.0/1.0), 1.0);
188 set_min_size(14 * 4, 16);
189 set_max_size(14 * 32, 128);
190 }
191 else if ((!dosec) && (!do24h)) { // - + ampm
192 set_state_val(PART:"hours1", STATE_REL1, (0.0/11.0), 0.0);
193 set_state_val(PART:"hours1", STATE_REL2, (2.0/11.0), 1.0);
194 set_state_val(PART:"hours2", STATE_REL1, (2.0/11.0), 0.0);
195 set_state_val(PART:"hours2", STATE_REL2, (4.0/11.0), 1.0);
196 set_state_val(PART:"mins1", STATE_REL1, (5.0/11.0), 0.0);
197 set_state_val(PART:"mins1", STATE_REL2, (7.0/11.0), 1.0);
198 set_state_val(PART:"mins2", STATE_REL1, (7.0/11.0), 0.0);
199 set_state_val(PART:"mins2", STATE_REL2, (9.0/11.0), 1.0);
200 set_state_val(PART:"secs1", STATE_REL1, (0.0/1.0), 0.0);
201 set_state_val(PART:"secs1", STATE_REL2, (0.0/1.0), 1.0);
202 set_state_val(PART:"secs2", STATE_REL1, (0.0/1.0), 0.0);
203 set_state_val(PART:"secs2", STATE_REL2, (0.0/1.0), 1.0);
204 set_state_val(PART:"ampm", STATE_REL1, (9.0/11.0), 0.0);
205 set_state_val(PART:"ampm", STATE_REL2, (11.0/11.0), 1.0);
206 set_min_size(11 * 4, 16);
207 set_max_size(11 * 32, 128);
208 }
209 else if ((!dosec) && (do24h)) { // - + -
210 set_state_val(PART:"hours1", STATE_REL1, (0.0/9.0), 0.0);
211 set_state_val(PART:"hours1", STATE_REL2, (2.0/9.0), 1.0);
212 set_state_val(PART:"hours2", STATE_REL1, (2.0/9.0), 0.0);
213 set_state_val(PART:"hours2", STATE_REL2, (4.0/9.0), 1.0);
214 set_state_val(PART:"mins1", STATE_REL1, (5.0/9.0), 0.0);
215 set_state_val(PART:"mins1", STATE_REL2, (7.0/9.0), 1.0);
216 set_state_val(PART:"mins2", STATE_REL1, (7.0/9.0), 0.0);
217 set_state_val(PART:"mins2", STATE_REL2, (9.0/9.0), 1.0);
218 set_state_val(PART:"secs1", STATE_REL1, (0.0/1.0), 0.0);
219 set_state_val(PART:"secs1", STATE_REL2, (0.0/1.0), 1.0);
220 set_state_val(PART:"secs2", STATE_REL1, (0.0/1.0), 0.0);
221 set_state_val(PART:"secs2", STATE_REL2, (0.0/1.0), 1.0);
222 set_state_val(PART:"ampm", STATE_REL1, (0.0/1.0), 0.0);
223 set_state_val(PART:"ampm", STATE_REL2, (0.0/1.0), 1.0);
224 set_min_size(9 * 4, 16);
225 set_max_size(9 * 32, 128);
226 }
227 set_state(PART:"hours1", "custom", 0.0);
228 set_state(PART:"hours2", "custom", 0.0);
229 set_state(PART:"mins1", "custom", 0.0);
230 set_state(PART:"mins2", "custom", 0.0);
231 set_state(PART:"secs1", "custom", 0.0);
232 set_state(PART:"secs2", "custom", 0.0);
233 set_state(PART:"ampm", "custom", 0.0);
234 emit("e,state,sizing,changed", "");
235 }
236 }
237 parts {
238 part { name: "hclip"; type: RECT;
239 description { state: "default" 0.0;
240 }
241 description { state: "hidden" 0.0;
242 visible: 0;
243 }
244 }
245 part { name: "mclip"; type: RECT;
246 description { state: "default" 0.0;
247 }
248 description { state: "hidden" 0.0;
249 visible: 0;
250 }
251 }
252 part { name: "sclip"; type: RECT;
253 description { state: "default" 0.0;
254 }
255 description { state: "hidden" 0.0;
256 visible: 0;
257 }
258 }
259 part { name: "ampmclip"; type: RECT;
260 description { state: "default" 0.0;
261 }
262 description { state: "hidden" 0.0;
263 visible: 0;
264 }
265 }
266 part { name: "hours1"; type: RECT;
267 description { state: "default" 0.0;
268 visible: 0;
269 rel1.relative: (0/16) 0.0;
270 rel2.relative: (2/16) 1.0;
271 }
272 }
273 part { name: "hours2"; type: RECT;
274 description { state: "default" 0.0;
275 visible: 0;
276 rel1.relative: (2/16) 0.0;
277 rel2.relative: (4/16) 1.0;
278 }
279 }
280 part { name: "hcolon1";
281 clip_to: "mclip";
282 description { state: "default" 0.0;
283 rel1.to: "hours2";
284 rel1.relative: 1.0 0.0;
285 rel1.offset: 1 1;
286 rel2.to: "mins1";
287 rel2.relative: 0.0 1.0;
288 rel2.offset: 0 0;
289 image.normal: "O/flip_colon.png";
290 min: 2 4;
291 aspect: 0.25 0.25;
292 aspect_preference: BOTH;
293 }
294 }
295 part { name: "hcolon2";
296 clip_to: "mclip";
297 description { state: "default" 0.0;
298 rel1.to: "hcolon1";
299 rel1.offset: -1 -1;
300 rel2.to: "hcolon1";
301 rel2.offset: -2 -2;
302 color: 0 0 0 255;
303 image.normal: "O/flip_colon.png";
304 }
305 }
306 part { name: "mins1"; type: RECT;
307 description { state: "default" 0.0;
308 visible: 0;
309 rel1.relative: (5/16) 0.0;
310 rel2.relative: (7/16) 1.0;
311 }
312 }
313 part { name: "mins2"; type: RECT;
314 description { state: "default" 0.0;
315 visible: 0;
316 rel1.relative: (7/16) 0.0;
317 rel2.relative: (9/16) 1.0;
318 }
319 }
320 part { name: "mcolon1";
321 clip_to: "sclip";
322 description { state: "default" 0.0;
323 rel1.to: "mins2";
324 rel1.relative: 1.0 0.0;
325 rel1.offset: 1 1;
326 rel2.to: "secs1";
327 rel2.relative: 0.0 1.0;
328 rel2.offset: 0 0;
329 image.normal: "O/flip_colon.png";
330 min: 2 4;
331 aspect: 0.25 0.25;
332 aspect_preference: BOTH;
333 }
334 }
335 part { name: "mcolon2";
336 clip_to: "sclip";
337 description { state: "default" 0.0;
338 rel1.to: "mcolon1";
339 rel1.offset: -1 -1;
340 rel2.to: "mcolon1";
341 rel2.offset: -2 -2;
342 color: 0 0 0 255;
343 image.normal: "O/flip_colon.png";
344 }
345 }
346 part { name: "secs1"; type: RECT;
347 description { state: "default" 0.0;
348 visible: 0;
349 rel1.relative: (10/16) 0.0;
350 rel2.relative: (12/16) 1.0;
351 }
352 }
353 part { name: "secs2"; type: RECT;
354 description { state: "default" 0.0;
355 visible: 0;
356 rel1.relative: (12/16) 0.0;
357 rel2.relative: (14/16) 1.0;
358 }
359 }
360 part { name: "ampm"; type: RECT;
361 description { state: "default" 0.0;
362 visible: 0;
363 rel1.relative: (14/16) 0.0;
364 rel2.relative: (16/16) 1.0;
365 }
366 }
367
368#define DIGIT(nom, relto, clipto) \
369 part { name: nom"base"; \
370 scale: 1; \
371 description { state: "default" 0.0; \
372 rel1.to: relto; \
373 rel1.offset: 1 1; \
374 rel2.to: relto; \
375 rel2.offset: -2 -2; \
376 min: 2 4; \
377 aspect: 0.5 0.5; \
378 aspect_preference: BOTH; \
379 } \
380 } \
381 part { name: nom"shad"; \
382 clip_to: clipto; \
383 description { state: "default" 0.0; \
384 rel1.offset: -4 -4; \
385 rel1.to: nom"base"; \
386 rel2.offset: 3 3; \
387 rel2.to: nom"base"; \
388 image { \
389 normal: "O/flip_base_shad.png"; \
390 border: 8 8 8 8; \
391 } \
392 } \
393 } \
394 part { name: nom"b"; type: RECT; \
395 description { state: "default" 0.0; \
396 visible: 0; \
397 rel1.to: nom"base"; \
398 rel1.relative: 0.0 0.5; \
399 rel2.to: nom"base"; \
400 } \
401 } \
402 part { name: nom"t"; type: RECT; \
403 description { state: "default" 0.0; \
404 visible: 0; \
405 rel1.to: nom"base"; \
406 rel2.to: nom"base"; \
407 rel2.relative: 1.0 0.5; \
408 } \
409 } \
410 part { name: nom"bot0"; \
411 clip_to: clipto; \
412 description { state: "default" 0.0; \
413 rel1.to: nom"b"; \
414 rel2.to: nom"b"; \
415 image.normal: "O/flip_0b.png"; \
416 } \
417 description { state: "0" 0.0; \
418 inherit: "default" 0.0; \
419 image.normal: "O/flip_0b.png"; \
420 } \
421 description { state: "1" 0.0; \
422 inherit: "default" 0.0; \
423 image.normal: "O/flip_1b.png"; \
424 } \
425 description { state: "2" 0.0; \
426 inherit: "default" 0.0; \
427 image.normal: "O/flip_2b.png"; \
428 } \
429 description { state: "3" 0.0; \
430 inherit: "default" 0.0; \
431 image.normal: "O/flip_3b.png"; \
432 } \
433 description { state: "4" 0.0; \
434 inherit: "default" 0.0; \
435 image.normal: "O/flip_4b.png"; \
436 } \
437 description { state: "5" 0.0; \
438 inherit: "default" 0.0; \
439 image.normal: "O/flip_5b.png"; \
440 } \
441 description { state: "6" 0.0; \
442 inherit: "default" 0.0; \
443 image.normal: "O/flip_6b.png"; \
444 } \
445 description { state: "7" 0.0; \
446 inherit: "default" 0.0; \
447 image.normal: "O/flip_7b.png"; \
448 } \
449 description { state: "8" 0.0; \
450 inherit: "default" 0.0; \
451 image.normal: "O/flip_8b.png"; \
452 } \
453 description { state: "9" 0.0; \
454 inherit: "default" 0.0; \
455 image.normal: "O/flip_9b.png"; \
456 } \
457 } \
458 part { name: nom"sh"; \
459 clip_to: clipto; \
460 description { state: "default" 0.0; \
461 rel1.to: nom"b"; \
462 rel2.to: nom"b"; \
463 rel2.relative: 1.0 0.0; \
464 image.normal: "O/flip_shad.png"; \
465 } \
466 description { state: "half" 0.0; \
467 inherit: "default" 0.0; \
468 rel2.relative: 1.0 0.5; \
469 } \
470 description { state: "full" 0.0; \
471 inherit: "default" 0.0; \
472 rel2.relative: 1.0 1.0; \
473 } \
474 } \
475 part { name: nom"bot"; \
476 clip_to: clipto; \
477 description { state: "default" 0.0; \
478 rel1.to: nom"b"; \
479 rel2.to: nom"b"; \
480 image.normal: "O/flip_0b.png"; \
481 } \
482 description { state: "0" 0.0; \
483 inherit: "default" 0.0; \
484 rel2.relative: 1.0 1.0; \
485 image.normal: "O/flip_0b.png"; \
486 } \
487 description { state: "0h" 0.0; \
488 inherit: "default" 0.0; \
489 visible: 0; \
490 rel2.relative: 1.0 0.0; \
491 image.normal: "O/flip_0b.png"; \
492 } \
493 description { state: "1" 0.0; \
494 inherit: "default" 0.0; \
495 rel2.relative: 1.0 1.0; \
496 image.normal: "O/flip_1b.png"; \
497 } \
498 description { state: "1h" 0.0; \
499 inherit: "default" 0.0; \
500 visible: 0; \
501 rel2.relative: 1.0 0.0; \
502 image.normal: "O/flip_1b.png"; \
503 } \
504 description { state: "2" 0.0; \
505 inherit: "default" 0.0; \
506 rel2.relative: 1.0 1.0; \
507 image.normal: "O/flip_2b.png"; \
508 } \
509 description { state: "2h" 0.0; \
510 inherit: "default" 0.0; \
511 visible: 0; \
512 rel2.relative: 1.0 0.0; \
513 image.normal: "O/flip_2b.png"; \
514 } \
515 description { state: "3" 0.0; \
516 inherit: "default" 0.0; \
517 rel2.relative: 1.0 1.0; \
518 image.normal: "O/flip_3b.png"; \
519 } \
520 description { state: "3h" 0.0; \
521 inherit: "default" 0.0; \
522 visible: 0; \
523 rel2.relative: 1.0 0.0; \
524 image.normal: "O/flip_3b.png"; \
525 } \
526 description { state: "4" 0.0; \
527 inherit: "default" 0.0; \
528 rel2.relative: 1.0 1.0; \
529 image.normal: "O/flip_4b.png"; \
530 } \
531 description { state: "4h" 0.0; \
532 inherit: "default" 0.0; \
533 visible: 0; \
534 rel2.relative: 1.0 0.0; \
535 image.normal: "O/flip_4b.png"; \
536 } \
537 description { state: "5" 0.0; \
538 inherit: "default" 0.0; \
539 rel2.relative: 1.0 1.0; \
540 image.normal: "O/flip_5b.png"; \
541 } \
542 description { state: "5h" 0.0; \
543 inherit: "default" 0.0; \
544 visible: 0; \
545 rel2.relative: 1.0 0.0; \
546 image.normal: "O/flip_5b.png"; \
547 } \
548 description { state: "6" 0.0; \
549 inherit: "default" 0.0; \
550 rel2.relative: 1.0 1.0; \
551 image.normal: "O/flip_6b.png"; \
552 } \
553 description { state: "6h" 0.0; \
554 inherit: "default" 0.0; \
555 visible: 0; \
556 rel2.relative: 1.0 0.0; \
557 image.normal: "O/flip_6b.png"; \
558 } \
559 description { state: "7" 0.0; \
560 inherit: "default" 0.0; \
561 rel2.relative: 1.0 1.0; \
562 image.normal: "O/flip_7b.png"; \
563 } \
564 description { state: "7h" 0.0; \
565 inherit: "default" 0.0; \
566 visible: 0; \
567 rel2.relative: 1.0 0.0; \
568 image.normal: "O/flip_7b.png"; \
569 } \
570 description { state: "8" 0.0; \
571 inherit: "default" 0.0; \
572 rel2.relative: 1.0 1.0; \
573 image.normal: "O/flip_8b.png"; \
574 } \
575 description { state: "8h" 0.0; \
576 inherit: "default" 0.0; \
577 visible: 0; \
578 rel2.relative: 1.0 0.0; \
579 image.normal: "O/flip_8b.png"; \
580 } \
581 description { state: "9" 0.0; \
582 inherit: "default" 0.0; \
583 rel2.relative: 1.0 1.0; \
584 image.normal: "O/flip_9b.png"; \
585 } \
586 description { state: "9h" 0.0; \
587 inherit: "default" 0.0; \
588 visible: 0; \
589 rel2.relative: 1.0 0.0; \
590 image.normal: "O/flip_9b.png"; \
591 } \
592 } \
593 part { name: nom"top0"; \
594 clip_to: clipto; \
595 description { state: "default" 0.0; \
596 rel1.to: nom"t"; \
597 rel2.to: nom"t"; \
598 image.normal: "O/flip_0t.png"; \
599 } \
600 description { state: "0" 0.0; \
601 inherit: "default" 0.0; \
602 image.normal: "O/flip_0t.png"; \
603 } \
604 description { state: "1" 0.0; \
605 inherit: "default" 0.0; \
606 image.normal: "O/flip_1t.png"; \
607 } \
608 description { state: "2" 0.0; \
609 inherit: "default" 0.0; \
610 image.normal: "O/flip_2t.png"; \
611 } \
612 description { state: "3" 0.0; \
613 inherit: "default" 0.0; \
614 image.normal: "O/flip_3t.png"; \
615 } \
616 description { state: "4" 0.0; \
617 inherit: "default" 0.0; \
618 image.normal: "O/flip_4t.png"; \
619 } \
620 description { state: "5" 0.0; \
621 inherit: "default" 0.0; \
622 image.normal: "O/flip_5t.png"; \
623 } \
624 description { state: "6" 0.0; \
625 inherit: "default" 0.0; \
626 image.normal: "O/flip_6t.png"; \
627 } \
628 description { state: "7" 0.0; \
629 inherit: "default" 0.0; \
630 image.normal: "O/flip_7t.png"; \
631 } \
632 description { state: "8" 0.0; \
633 inherit: "default" 0.0; \
634 image.normal: "O/flip_8t.png"; \
635 } \
636 description { state: "9" 0.0; \
637 inherit: "default" 0.0; \
638 image.normal: "O/flip_9t.png"; \
639 } \
640 } \
641 part { name: nom"top"; \
642 clip_to: clipto; \
643 description { state: "default" 0.0; \
644 rel1.to: nom"t"; \
645 rel2.to: nom"t"; \
646 image.normal: "O/flip_0t.png"; \
647 } \
648 description { state: "0" 0.0; \
649 inherit: "default" 0.0; \
650 rel1.relative: 0.0 0.0; \
651 image.normal: "O/flip_0t.png"; \
652 } \
653 description { state: "0h" 0.0; \
654 inherit: "default" 0.0; \
655 color: 128 128 128 255; \
656 visible: 0; \
657 rel1.relative: 0.0 1.0; \
658 image.normal: "O/flip_0t.png"; \
659 } \
660 description { state: "1" 0.0; \
661 inherit: "default" 0.0; \
662 rel1.relative: 0.0 0.0; \
663 image.normal: "O/flip_1t.png"; \
664 } \
665 description { state: "1h" 0.0; \
666 inherit: "default" 0.0; \
667 color: 128 128 128 255; \
668 visible: 0; \
669 rel1.relative: 0.0 1.0; \
670 image.normal: "O/flip_1t.png"; \
671 } \
672 description { state: "2" 0.0; \
673 inherit: "default" 0.0; \
674 rel1.relative: 0.0 0.0; \
675 image.normal: "O/flip_2t.png"; \
676 } \
677 description { state: "2h" 0.0; \
678 inherit: "default" 0.0; \
679 color: 128 128 128 255; \
680 visible: 0; \
681 rel1.relative: 0.0 1.0; \
682 image.normal: "O/flip_2t.png"; \
683 } \
684 description { state: "3" 0.0; \
685 inherit: "default" 0.0; \
686 rel1.relative: 0.0 0.0; \
687 image.normal: "O/flip_3t.png"; \
688 } \
689 description { state: "3h" 0.0; \
690 inherit: "default" 0.0; \
691 color: 128 128 128 255; \
692 visible: 0; \
693 rel1.relative: 0.0 1.0; \
694 image.normal: "O/flip_3t.png"; \
695 } \
696 description { state: "4" 0.0; \
697 inherit: "default" 0.0; \
698 rel1.relative: 0.0 0.0; \
699 image.normal: "O/flip_4t.png"; \
700 } \
701 description { state: "4h" 0.0; \
702 inherit: "default" 0.0; \
703 color: 128 128 128 255; \
704 visible: 0; \
705 rel1.relative: 0.0 1.0; \
706 image.normal: "O/flip_4t.png"; \
707 } \
708 description { state: "5" 0.0; \
709 inherit: "default" 0.0; \
710 rel1.relative: 0.0 0.0; \
711 image.normal: "O/flip_5t.png"; \
712 } \
713 description { state: "5h" 0.0; \
714 inherit: "default" 0.0; \
715 color: 128 128 128 255; \
716 visible: 0; \
717 rel1.relative: 0.0 1.0; \
718 image.normal: "O/flip_5t.png"; \
719 } \
720 description { state: "6" 0.0; \
721 inherit: "default" 0.0; \
722 rel1.relative: 0.0 0.0; \
723 image.normal: "O/flip_6t.png"; \
724 } \
725 description { state: "6h" 0.0; \
726 inherit: "default" 0.0; \
727 color: 128 128 128 255; \
728 visible: 0; \
729 rel1.relative: 0.0 1.0; \
730 image.normal: "O/flip_6t.png"; \
731 } \
732 description { state: "7" 0.0; \
733 inherit: "default" 0.0; \
734 rel1.relative: 0.0 0.0; \
735 image.normal: "O/flip_7t.png"; \
736 } \
737 description { state: "7h" 0.0; \
738 inherit: "default" 0.0; \
739 color: 128 128 128 255; \
740 visible: 0; \
741 rel1.relative: 0.0 1.0; \
742 image.normal: "O/flip_7t.png"; \
743 } \
744 description { state: "8" 0.0; \
745 inherit: "default" 0.0; \
746 rel1.relative: 0.0 0.0; \
747 image.normal: "O/flip_8t.png"; \
748 } \
749 description { state: "8h" 0.0; \
750 inherit: "default" 0.0; \
751 color: 128 128 128 255; \
752 visible: 0; \
753 rel1.relative: 0.0 1.0; \
754 image.normal: "O/flip_8t.png"; \
755 } \
756 description { state: "9" 0.0; \
757 inherit: "default" 0.0; \
758 rel1.relative: 0.0 0.0; \
759 image.normal: "O/flip_9t.png"; \
760 } \
761 description { state: "9h" 0.0; \
762 inherit: "default" 0.0; \
763 color: 128 128 128 255; \
764 visible: 0; \
765 rel1.relative: 0.0 1.0; \
766 image.normal: "O/flip_9t.png"; \
767 } \
768 }
769
770 DIGIT("h1", "hours1", "hclip");
771 DIGIT("h2", "hours2", "hclip");
772
773 DIGIT("m1", "mins1", "mclip");
774 DIGIT("m2", "mins2", "mclip");
775
776 DIGIT("s1", "secs1", "sclip");
777 DIGIT("s2", "secs2", "sclip");
778
779#define DIGAP(nom, relto, clipto) \
780 part { name: nom"base"; \
781 scale: 1; \
782 description { state: "default" 0.0; \
783 rel1.to: relto; \
784 rel1.offset: 1 1; \
785 rel2.to: relto; \
786 rel2.offset: -2 -2; \
787 min: 2 4; \
788 aspect: 0.5 0.5; \
789 aspect_preference: BOTH; \
790 } \
791 } \
792 part { name: nom"shad"; \
793 clip_to: clipto; \
794 description { state: "default" 0.0; \
795 rel1.offset: -4 -4; \
796 rel1.to: nom"base"; \
797 rel2.offset: 3 3; \
798 rel2.to: nom"base"; \
799 image { \
800 normal: "O/flip_base_shad.png"; \
801 border: 8 8 8 8; \
802 } \
803 } \
804 } \
805 part { name: nom"b"; type: RECT; \
806 description { state: "default" 0.0; \
807 visible: 0; \
808 rel1.to: nom"base"; \
809 rel1.relative: 0.0 0.5; \
810 rel2.to: nom"base"; \
811 } \
812 } \
813 part { name: nom"t"; type: RECT; \
814 description { state: "default" 0.0; \
815 visible: 0; \
816 rel1.to: nom"base"; \
817 rel2.to: nom"base"; \
818 rel2.relative: 1.0 0.5; \
819 } \
820 } \
821 part { name: nom"bot0"; \
822 clip_to: clipto; \
823 description { state: "default" 0.0; \
824 rel1.to: nom"b"; \
825 rel2.to: nom"b"; \
826 image.normal: "O/flip_amb.png"; \
827 } \
828 description { state: "0" 0.0; \
829 inherit: "default" 0.0; \
830 image.normal: "O/flip_amb.png"; \
831 } \
832 description { state: "1" 0.0; \
833 inherit: "default" 0.0; \
834 image.normal: "O/flip_pmb.png"; \
835 } \
836 } \
837 part { name: nom"sh"; \
838 clip_to: clipto; \
839 description { state: "default" 0.0; \
840 rel1.to: nom"b"; \
841 rel2.to: nom"b"; \
842 rel2.relative: 1.0 0.0; \
843 image.normal: "O/flip_shad.png"; \
844 } \
845 description { state: "half" 0.0; \
846 inherit: "default" 0.0; \
847 rel2.relative: 1.0 0.5; \
848 } \
849 description { state: "full" 0.0; \
850 inherit: "default" 0.0; \
851 rel2.relative: 1.0 1.0; \
852 } \
853 } \
854 part { name: nom"bot"; \
855 clip_to: clipto; \
856 description { state: "default" 0.0; \
857 rel1.to: nom"b"; \
858 rel2.to: nom"b"; \
859 image.normal: "O/flip_amb.png"; \
860 } \
861 description { state: "0" 0.0; \
862 inherit: "default" 0.0; \
863 rel2.relative: 1.0 1.0; \
864 image.normal: "O/flip_amb.png"; \
865 } \
866 description { state: "0h" 0.0; \
867 inherit: "default" 0.0; \
868 visible: 0; \
869 rel2.relative: 1.0 0.0; \
870 image.normal: "O/flip_amb.png"; \
871 } \
872 description { state: "1" 0.0; \
873 inherit: "default" 0.0; \
874 rel2.relative: 1.0 1.0; \
875 image.normal: "O/flip_pmb.png"; \
876 } \
877 description { state: "1h" 0.0; \
878 inherit: "default" 0.0; \
879 visible: 0; \
880 rel2.relative: 1.0 0.0; \
881 image.normal: "O/flip_pmb.png"; \
882 } \
883 } \
884 part { name: nom"top0"; \
885 clip_to: clipto; \
886 description { state: "default" 0.0; \
887 rel1.to: nom"t"; \
888 rel2.to: nom"t"; \
889 image.normal: "O/flip_amt.png"; \
890 } \
891 description { state: "0" 0.0; \
892 inherit: "default" 0.0; \
893 image.normal: "O/flip_amt.png"; \
894 } \
895 description { state: "1" 0.0; \
896 inherit: "default" 0.0; \
897 image.normal: "O/flip_pmt.png"; \
898 } \
899 } \
900 part { name: nom"top"; \
901 clip_to: clipto; \
902 description { state: "default" 0.0; \
903 rel1.to: nom"t"; \
904 rel2.to: nom"t"; \
905 image.normal: "O/flip_amt.png"; \
906 } \
907 description { state: "0" 0.0; \
908 inherit: "default" 0.0; \
909 rel1.relative: 0.0 0.0; \
910 image.normal: "O/flip_amt.png"; \
911 } \
912 description { state: "0h" 0.0; \
913 inherit: "default" 0.0; \
914 color: 128 128 128 255; \
915 visible: 0; \
916 rel1.relative: 0.0 1.0; \
917 image.normal: "O/flip_amt.png"; \
918 } \
919 description { state: "1" 0.0; \
920 inherit: "default" 0.0; \
921 rel1.relative: 0.0 0.0; \
922 image.normal: "O/flip_pmt.png"; \
923 } \
924 description { state: "1h" 0.0; \
925 inherit: "default" 0.0; \
926 color: 128 128 128 255; \
927 visible: 0; \
928 rel1.relative: 0.0 1.0; \
929 image.normal: "O/flip_pmt.png"; \
930 } \
931 }
932
933 DIGAP("ap", "ampm", "ampmclip");
934
935///////////////////////////////////////////////////////////////////
936
937 part { name: "event"; type: RECT;
938 mouse_events: 1;
939 description { state: "default" 0.0;
940 color: 0 0 0 0;
941 }
942 }
943 }
944 programs {
945 program { name: "init";
946 signal: "load";
947 source: "";
948 script {
949 clock_cb(0);
950 }
951 }
952 program { name: "secon";
953 signal: "e,state,seconds,on";
954 source: "e";
955 action: STATE_SET "default" 0.0;
956 target: "secs1";
957 after: "sec2";
958 }
959 program { name: "sec2";
960 script {
961 new tim;
962
963 set_int(do_seconds, 1);
964 set_state(PART:"sclip", "default", 0.0);
965 eval_fields();
966 tim = get_int(tick_timer);
967 if (tim) {
968 cancel_timer(tim);
969 set_int(tick_timer, 0);
970 }
971 clock_cb(0);
972 }
973 }
974 program { name: "secoff";
975 signal: "e,state,seconds,off";
976 source: "e";
977 action: STATE_SET "default" 0.0;
978 target: "secs1";
979 after: "sec3";
980 }
981 program { name: "sec3";
982 script {
983 new tim;
984
985 set_int(do_seconds, 0);
986 set_state(PART:"sclip", "hidden", 0.0);
987 eval_fields();
988 tim = get_int(tick_timer);
989 if (tim) {
990 cancel_timer(tim);
991 set_int(tick_timer, 0);
992 }
993 clock_cb(0);
994 }
995 }
996 program { name: "24h";
997 signal: "e,state,24h,on";
998 source: "e";
999 script {
1000 new tim;
1001
1002 set_int(do_24h, 1);
1003 set_state(PART:"ampmclip", "hidden", 0.0);
1004 eval_fields();
1005 tim = get_int(tick_timer);
1006 if (tim) {
1007 cancel_timer(tim);
1008 set_int(tick_timer, 0);
1009 }
1010 clock_cb(0);
1011 }
1012 }
1013 program { name: "12h";
1014 signal: "e,state,24h,off";
1015 source: "e";
1016 script {
1017 new tim;
1018
1019 set_int(do_24h, 0);
1020 set_state(PART:"ampmclip", "default", 0.0);
1021 eval_fields();
1022 tim = get_int(tick_timer);
1023 if (tim) {
1024 cancel_timer(tim);
1025 set_int(tick_timer, 0);
1026 }
1027 clock_cb(0);
1028 }
1029 }
1030 }
1031 }
diff --git a/data/themes/edc/O/colors.edc b/data/themes/edc/O/colors.edc
deleted file mode 100644
index 0264e6c17..000000000
--- a/data/themes/edc/O/colors.edc
+++ /dev/null
@@ -1,118 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: CONF_COLORS ***/
3
4 group {
5 name: "e/modules/conf_colors/preview/solid";
6 parts {
7 part {
8 name: "e.rect";
9 type: RECT;
10 mouse_events: 0;
11 description {
12 state: "default" 0.0;
13 color: 255 255 255 255;
14 color_class: "color_preview";
15 rel1 {
16 relative: 0.0 0.0;
17 offset: 0 0;
18 }
19 rel2 {
20 relative: 1.0 1.0;
21 offset: -1 -1;
22 }
23 }
24 }
25 }
26 }
27 group {
28 name: "e/modules/conf_colors/preview/text";
29 parts {
30 part {
31 name: "e.text";
32 type: TEXT;
33 effect: OUTLINE_SOFT_SHADOW;
34 mouse_events: 0;
35 description {
36 state: "default" 0.0;
37 color: 255 255 255 255;
38 color2: 255 255 255 255;
39 color3: 255 255 255 255;
40 color_class: "color_preview";
41 rel1 {
42 relative: 0.0 0.0;
43 offset: 0 0;
44 }
45 rel2 {
46 relative: 1.0 1.0;
47 offset: -1 -1;
48 }
49 text {
50 font: "Sans:style=Bold";
51 size: 16;
52 text: "Aa";
53 min: 1 1;
54 }
55 }
56 }
57 }
58 }
59 group {
60 name: "e/modules/conf_colors/preview/unknown";
61 parts {
62 part {
63 name: "c1";
64 type: RECT;
65 mouse_events: 0;
66 description {
67 state: "default" 0.0;
68 color: 255 255 255 255;
69 color_class: "color_preview_c1";
70 rel1 {
71 relative: 0.0 0.0;
72 offset: 0 0;
73 }
74 rel2 {
75 relative: 1.0 1.0;
76 offset: -7 -1;
77 }
78 }
79 }
80 part {
81 name: "c2";
82 type: RECT;
83 mouse_events: 0;
84 description {
85 state: "default" 0.0;
86 color: 255 255 255 255;
87 color_class: "color_preview_c2";
88 rel1 {
89 relative: 1.0 0.0;
90 offset: -6 0;
91 }
92 rel2 {
93 relative: 1.0 1.0;
94 offset: -4 -1;
95 }
96 }
97 }
98 part {
99 name: "c3";
100 type: RECT;
101 mouse_events: 0;
102 description {
103 state: "default" 0.0;
104 color: 255 255 255 255;
105 color_class: "color_preview_c3";
106 rel1 {
107 relative: 1.0 0.0;
108 offset: -3 0;
109 }
110 rel2 {
111 relative: 1.0 1.0;
112 offset: -1 -1;
113 }
114 }
115 }
116 }
117 }
118
diff --git a/data/themes/edc/O/conf_gad.edc b/data/themes/edc/O/conf_gad.edc
deleted file mode 100644
index 8076dc8e2..000000000
--- a/data/themes/edc/O/conf_gad.edc
+++ /dev/null
@@ -1,131 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: CONF ***/
3
4 group {
5 name: "e/modules/conf/main";
6 images {
7 image: "O/icon_configuration.png" COMP;
8 image: "O/bt_base1.png" COMP;
9 image: "O/bt_base2.png" COMP;
10 image: "O/bt_hilight.png" COMP;
11 image: "O/bt_shine.png" COMP;
12 image: "O/bt_glow.png" COMP;
13 }
14 min: 16 16;
15 max: 128 128;
16 parts {
17 part {
18 name: "button_image";
19 mouse_events: 1;
20 scale: 1;
21 description {
22 state: "default" 0.0;
23 fixed: 1 1;
24 align: 0.5 0.5;
25 min: 32 16;
26 image {
27 normal: "O/bt_base2.png";
28 border: 7 7 7 7;
29 }
30 }
31 description {
32 state: "clicked" 0.0;
33 inherit: "default" 0.0;
34 image.normal: "O/bt_base1.png";
35 }
36 program {
37 name: "button_down";
38 signal: "mouse,down,1";
39 source: "button_image";
40 action: STATE_SET "clicked" 0.0;
41 target: "button_image";
42 target: "over3";
43 }
44 program {
45 name: "button_up";
46 signal: "mouse,up,1";
47 source: "button_image";
48 action: STATE_SET "default" 0.0;
49 target: "button_image";
50 target: "over3";
51 }
52 program {
53 name: "button_click";
54 signal: "mouse,clicked,1";
55 source: "button_image";
56 action: SIGNAL_EMIT "e,action,conf" "";
57 }
58 }
59 part {
60 name: "icon";
61 mouse_events: 0;
62 description {
63 state: "default" 0.0;
64 aspect: 1.0 1.0;
65 aspect_preference: BOTH;
66 visible: 1;
67 image.normal: "O/icon_configuration.png";
68 rel1 {
69 to: "button_image";
70 relative: 0.0 0.0;
71 offset: 3 3;
72 }
73 rel2 {
74 relative: 1.0 1.0;
75 offset: -4 -4;
76 to: "button_image";
77 }
78 }
79 }
80 part {
81 name: "over1";
82 mouse_events: 0;
83 description {
84 state: "default" 0.0;
85 rel1.to: "button_image";
86 rel2.to: "button_image";
87 rel2.relative: 1.0 0.5;
88 image {
89 normal: "O/bt_hilight.png";
90 border: 7 7 7 0;
91 }
92 }
93 }
94 part {
95 name: "over2";
96 mouse_events: 0;
97 description {
98 state: "default" 0.0;
99 rel1.to: "button_image";
100 rel2.to: "button_image";
101 image {
102 normal: "O/bt_shine.png";
103 border: 7 7 7 7;
104 }
105 }
106 }
107 part {
108 name: "over3";
109 mouse_events: 0;
110 description {
111 state: "default" 0.0;
112 rel1.to: "button_image";
113 rel2.to: "button_image";
114 visible: 0;
115 color: 255 255 255 0;
116 image {
117 normal: "O/bt_glow.png";
118 border: 12 12 12 12;
119 }
120 fill.smooth : 0;
121 }
122 description {
123 state: "clicked" 0.0;
124 inherit: "default" 0.0;
125 visible: 1;
126 color: 255 255 255 255;
127 }
128 }
129 }
130 }
131
diff --git a/data/themes/edc/O/cpufreq.edc b/data/themes/edc/O/cpufreq.edc
deleted file mode 100644
index 9eec47f6b..000000000
--- a/data/themes/edc/O/cpufreq.edc
+++ /dev/null
@@ -1,340 +0,0 @@
1 group {
2 name: "e/modules/cpufreq/main";
3 images {
4 image: "O/tacho_bg.png" COMP;
5 image: "O/tacho_fg.png" COMP;
6 image: "O/t0.png" COMP;
7 image: "O/t0-sh.png" COMP;
8 image: "O/t1.png" COMP;
9 image: "O/t1-sh.png" COMP;
10 image: "O/t2.png" COMP;
11 }
12 min: 16 16;
13 max: 128 128;
14 script {
15 public available_frequencies;
16 public available_governors;
17
18 public cur_freq_old;
19 public cur_freq_new;
20 public cur_freq_now;
21 public cur_freq_anim;
22
23 public min_freq_old;
24 public min_freq_new;
25 public min_freq_now;
26
27 public max_freq_old;
28 public max_freq_new;
29 public max_freq_now;
30
31 public slide_cur_freq(val, Float:v) {
32 new Float:freq, Float:min_freq, Float:max_freq, Float:tf;
33 new f, f0, f1;
34
35 v = (1.0 - cos(v * 3.141592654)) / 2.0;
36
37 min_freq = fetch_int(available_frequencies, 0);
38 max_freq = fetch_int(available_frequencies,
39 count(available_frequencies) - 1);
40
41 f0 = get_int(cur_freq_old);
42 f1 = get_int(cur_freq_new);
43 f = f1 - f0;
44 freq = float(f) * v;
45 f = round(freq);
46 f = f + f0;
47 set_int(cur_freq_now, f);
48
49 freq = (float(f) - min_freq) / (max_freq - min_freq);
50 tf = (freq * 225.0) - 135.0;
51 custom_state(PART:"meter", "default", 0.0);
52 set_state_val(PART:"meter", STATE_MAP_ROT_Z, tf);
53 set_state(PART:"meter", "custom", 0.0);
54 custom_state(PART:"meter_sh", "default", 0.0);
55 set_state_val(PART:"meter_sh", STATE_MAP_ROT_Z, tf);
56 set_state(PART:"meter_sh", "custom", 0.0);
57
58 f0 = get_int(min_freq_old);
59 f1 = get_int(min_freq_new);
60 f = f1 - f0;
61 freq = float(f) * v;
62 f = round(freq);
63 f = f + f0;
64 set_int(min_freq_now, f);
65
66 freq = (float(f) - min_freq) / (max_freq - min_freq);
67 tf = (freq * 225.0) - 135.0;
68 custom_state(PART:"meter_min", "default", 0.0);
69 set_state_val(PART:"meter_min", STATE_MAP_ROT_Z, tf);
70 set_state(PART:"meter_min", "custom", 0.0);
71 custom_state(PART:"meter_min_sh", "default", 0.0);
72 set_state_val(PART:"meter_min_sh", STATE_MAP_ROT_Z, tf);
73 set_state(PART:"meter_min_sh", "custom", 0.0);
74
75 f0 = get_int(max_freq_old);
76 f1 = get_int(max_freq_new);
77 f = f1 - f0;
78 freq = float(f) * v;
79 f = round(freq);
80 f = f + f0;
81 set_int(max_freq_now, f);
82
83 freq = (float(f) - min_freq) / (max_freq - min_freq);
84 tf = (freq * 225.0) - 135.0;
85 custom_state(PART:"meter_max", "default", 0.0);
86 set_state_val(PART:"meter_max", STATE_MAP_ROT_Z, tf);
87 set_state(PART:"meter_max", "custom", 0.0);
88 custom_state(PART:"meter_max_sh", "default", 0.0);
89 set_state_val(PART:"meter_max_sh", STATE_MAP_ROT_Z, tf);
90 set_state(PART:"meter_max_sh", "custom", 0.0);
91
92 if (v >= 1.0) {
93 set_int(cur_freq_anim, 0);
94 return 0;
95 }
96 return 1;
97 }
98
99 public message(Msg_Type:type, id, ...) {
100 if ((type == MSG_INT_SET) && (id == 1)) { // add an available freq
101 while (count(available_frequencies) > 0) {
102 remove(available_frequencies, 0);
103 }
104 for (new i = 2; i < numargs(); i++) {
105 append_int(available_frequencies, getarg(i));
106 }
107 }
108 else if ((type == MSG_STRING_SET) && (id == 2)) { // add a governor
109 new text[100];
110 while (count(available_governors) > 0) {
111 remove(available_governors, 0);
112 }
113 for (new i = 2; i < numargs(); i++) {
114 snprintf(text, 100, "%s", getarg(i));
115 append_str(available_governors, text);
116 }
117 }
118 else if ((type == MSG_INT_SET) && (id == 3)) { // avg freq
119 new f;
120 new ani, curf, minf, maxf;
121 new text[100];
122
123 f = getarg(2);
124 if (f < 1000000) {
125 f += 500;
126 snprintf(text, 100, "%i", f / 1000);
127 }
128 else {
129 f += 50000;
130 snprintf(text, 100, "%i.%i", f / 1000000,
131 (f % 1000000) / 100000);
132 }
133 set_text(PART:"readout", text);
134
135 ani = get_int(cur_freq_anim);
136 if (ani > 0) cancel_anim(ani);
137 ani = anim(1.0, "slide_cur_freq", 0);
138 set_int(cur_freq_anim, ani);
139
140 f = getarg(2);
141 curf = get_int(cur_freq_now);
142 set_int(cur_freq_old, curf);
143 set_int(cur_freq_new, f);
144
145 f = getarg(4);
146 minf = get_int(min_freq_now);
147 set_int(min_freq_old, minf);
148 set_int(min_freq_new, f);
149
150 f = getarg(5);
151 maxf = get_int(max_freq_now);
152 set_int(max_freq_old, maxf);
153 set_int(max_freq_new, f);
154 }
155 else if ((type == MSG_STRING) && (id == 4)) {
156 new text[100];
157 snprintf(text, 100, "%s", getarg(2));
158 }
159 }
160 }
161 parts {
162 part {
163 name: "fade_clip";
164 type: RECT;
165 mouse_events: 0;
166 description {
167 state: "default" 0.0;
168 color: 255 255 255 255;
169 }
170 description {
171 state: "faded" 0.0;
172 color: 255 255 255 128;
173 }
174 }
175 part {
176 name: "base";
177 clip_to: "fade_clip";
178 description {
179 state: "default" 0.0;
180 aspect: 1.0 1.0;
181 aspect_preference: BOTH;
182 image.normal: "O/tacho_bg.png";
183 }
184 }
185 part {
186 name: "readout";
187 type: TEXT;
188 scale: 1;
189 // effect: OUTLINE_SOFT_SHADOW;
190 mouse_events: 0;
191 clip_to: "fade_clip";
192 description {
193 state: "default" 0.0;
194 rel1 {
195 relative: 0.6 0.7;
196 offset: 0 0;
197 }
198 rel2 {
199 relative: 0.6 0.7;
200 offset: 0 0;
201 }
202 color: 255 255 255 255;
203 color2: 0 0 0 128;
204 color3: 0 0 0 32;
205 color_class: "module_label";
206 text {
207 text: "??? Ghz";
208 font: "Sans:style=Bold";
209 size: 6;
210 align: 0.5 0.5;
211 min: 1 1;
212 text_class: "module_small";
213 }
214 }
215 }
216 part { name: "meter_min_sh";
217 clip_to: "fade_clip";
218 mouse_events: 0;
219 description { state: "default" 0.0000;
220 image.normal: "O/t1-sh.png";
221 rel1.to: "meter_min";
222 rel1.relative: 0.0+(2.0/64.0) 0.0+(2.0/64.0);
223 rel2.to: "meter_min";
224 rel2.relative: 1.0+(2.0/64.0) 1.0+(2.0/64.0);
225 map {
226 on: 1;
227 rotation {
228 center: "meter_min_sh";
229 }
230 }
231 }
232 }
233 part { name: "meter_min";
234 clip_to: "fade_clip";
235 mouse_events: 0;
236 description { state: "default" 0.0000;
237 image.normal: "O/t2.png";
238 rel1.to: "base";
239 rel2.to: "base";
240 map {
241 on: 1;
242 rotation {
243 center: "base";
244 }
245 }
246 }
247 }
248 part { name: "meter_max_sh";
249 clip_to: "fade_clip";
250 mouse_events: 0;
251 description { state: "default" 0.0000;
252 image.normal: "O/t1-sh.png";
253 rel1.to: "meter_max";
254 rel1.relative: 0.0+(2.0/64.0) 0.0+(2.0/64.0);
255 rel2.to: "meter_max";
256 rel2.relative: 1.0+(2.0/64.0) 1.0+(2.0/64.0);
257 map {
258 on: 1;
259 rotation {
260 center: "meter_max_sh";
261 }
262 }
263 }
264 }
265 part { name: "meter_max";
266 clip_to: "fade_clip";
267 mouse_events: 0;
268 description { state: "default" 0.0000;
269 image.normal: "O/t1.png";
270 rel1.to: "base";
271 rel2.to: "base";
272 map {
273 on: 1;
274 rotation {
275 center: "base";
276 }
277 }
278 }
279 }
280 part { name: "meter_sh";
281 clip_to: "fade_clip";
282 mouse_events: 0;
283 description { state: "default" 0.0000;
284 image.normal: "O/t0-sh.png";
285 rel1.to: "meter";
286 rel1.relative: 0.0+(2.0/64.0) 0.0+(2.0/64.0);
287 rel2.to: "meter";
288 rel2.relative: 1.0+(2.0/64.0) 1.0+(2.0/64.0);
289 map {
290 on: 1;
291 rotation {
292 center: "meter_sh";
293 }
294 }
295 }
296 }
297 part { name: "meter";
298 clip_to: "fade_clip";
299 mouse_events: 0;
300 description { state: "default" 0.0000;
301 image.normal: "O/t0.png";
302 rel1.to: "base";
303 rel2.to: "base";
304 map {
305 on: 1;
306 rotation {
307 center: "base";
308 }
309 }
310 }
311 }
312 part {
313 name: "over";
314 clip_to: "fade_clip";
315 mouse_events: 0;
316 description {
317 state: "default" 0.0;
318 rel1.to: "base";
319 rel2.to: "base";
320 image.normal: "O/tacho_fg.png";
321 }
322 }
323 }
324 programs {
325 program {
326 name: "enabled";
327 signal: "e,state,enabled";
328 source: "e";
329 action: STATE_SET "default" 0.0;
330 target: "fade_clip";
331 }
332 program {
333 name: "disabled";
334 signal: "e,state,disabled";
335 source: "e";
336 action: STATE_SET "faded" 0.0;
337 target: "fade_clip";
338 }
339 }
340 }
diff --git a/data/themes/edc/O/cslider.edc b/data/themes/edc/O/cslider.edc
deleted file mode 100644
index 4aee54090..000000000
--- a/data/themes/edc/O/cslider.edc
+++ /dev/null
@@ -1,110 +0,0 @@
1 /* Used to display RGB/HSV values via sliders
2 in Wallpaper Gradient Dialog */
3 group {
4 name: "e/widgets/cslider";
5 images.image: "O/inset_sunk.png" COMP;
6 parts {
7 part {
8 name: "content_clip";
9 type: RECT;
10 mouse_events: 0;
11 description {
12 state: "default" 0.0;
13 rel1.to: "e.swallow.content";
14 rel2.to: "e.swallow.content";
15 color: 255 255 255 255;
16 }
17 }
18 part {
19 name: "e.swallow.content";
20 type: SWALLOW;
21 clip_to: "content_clip";
22 description {
23 state: "default" 0.0;
24 min: 50 20;
25 rel1.offset: 4 4;
26 rel2.offset: -5 -5;
27 }
28 description {
29 state: "vertical" 0.0;
30 inherit: "default" 0.0;
31 min: 20 50;
32 }
33 }
34 part {
35 name: "border";
36 mouse_events: 1;
37 description {
38 state: "default" 0.0;
39 rel1 {
40 to: "e.swallow.content";
41 offset: -1 -1;
42 }
43 rel2 {
44 to: "e.swallow.content";
45 offset: 0 0;
46 }
47 image {
48 normal: "O/inset_sunk.png";
49 border: 7 7 7 7;
50 middle: 0;
51 }
52 fill.smooth : 0;
53 }
54 }
55 part {
56 name: "e.dragable.cursor";
57 type: RECT;
58 clip_to: "content_clip";
59 dragable {
60 confine: "e.swallow.content";
61 x: 1 1 0;
62 y: -1 1 0;
63 }
64 description {
65 state: "default" 0.0;
66 min: 1 24;
67 max: 1 9999;
68 fixed: 1 1;
69 rel1 {
70 to: "e.swallow.content";
71 relative: 0.5 0.0;
72 offset: 0 -2;
73 }
74 rel2 {
75 to: "e.swallow.content";
76 relative: 0.5 1.0;
77 offset: 0 +2;
78 }
79 color: 255 255 255 150;
80 }
81 description {
82 state: "vertical" 0.0;
83 min: 24 1;
84 max: 9999 1;
85 fixed: 1 1;
86 rel1 {
87 to: "e.swallow.content";
88 relative: 0.0 0.5 ;
89 offset: -2 0;
90 }
91 rel2 {
92 to: "e.swallow.content";
93 relative: 1.0 0.5;
94 offset: +2 0;
95 }
96 color: 255 255 255 150;
97 }
98 }
99 }
100 programs {
101 program {
102 name: "go_vertical";
103 signal: "e,state,direction,v";
104 source: "e";
105 action: STATE_SET "vertical" 0.0;
106 target: "e.dragable.cursor";
107 target: "e.swallow.content";
108 }
109 }
110 }
diff --git a/data/themes/edc/O/desklock.edc b/data/themes/edc/O/desklock.edc
deleted file mode 100644
index 4a466dbae..000000000
--- a/data/themes/edc/O/desklock.edc
+++ /dev/null
@@ -1,314 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: DESKLOCK ***/
3
4 group {
5 name: "e/desklock/background";
6 images {
7 image: "O/bg_shadow.png" COMP;
8 image: "O/wizard_pattern.png" COMP;
9 }
10 parts {
11 part { name: "base";
12 description { state: "default" 0.0;
13 image.normal: "O/wizard_pattern.png";
14 fill {
15 smooth: 0;
16 size {
17 relative: 0.0 0.0;
18 offset: 200 200;
19 }
20 }
21 }
22 }
23 part {
24 name: "e.swallow.login_box";
25 type: SWALLOW;
26 description {
27 state: "default" 0.0;
28 }
29 }
30 part { name: "shadow2";
31 mouse_events: 0;
32 description { state: "default" 0.0;
33 image.normal: "O/bg_shadow.png";
34 fill.smooth: 0;
35 }
36 }
37 }
38 }
39 group {
40 name: "e/desklock/login_box";
41 images {
42 image: "O/logo_white_128.png" COMP;
43 image: "O/inset_sunk.png" COMP;
44 }
45 parts {
46 part {
47 name: "logo";
48 mouse_events: 0;
49 description {
50 state: "default" 0.0;
51 min: 64 64;
52 max: 64 64;
53 image.normal: "O/logo_white_128.png";
54 }
55 }
56 part {
57 name: "e.text.title";
58 type: TEXT;
59 effect: SOFT_SHADOW;
60 scale: 1;
61 description {
62 state: "default" 0.0;
63 fixed: 0 1;
64 rel1 {
65 relative: 0.0 1.0;
66 offset: 0 8;
67 to_y: "logo";
68 }
69 rel2 {
70 relative: 1.0 1.0;
71 offset: -1 8;
72 to_y: "logo";
73 }
74 color: 224 224 224 255;
75 color3: 0 0 0 32;
76 text {
77 text: "Enter Password";
78 font: "Sans:style=Bold";
79 size: 10;
80 align: 0.5 0.5;
81 min: 1 1;
82 text_class: "desklock_title";
83 }
84 }
85 }
86 part {
87 name: "pulse_clip";
88 type: RECT;
89 mouse_events: 0;
90 description {
91 state: "default" 0.0;
92 rel1.to: "passwd_border";
93 rel2.to: "passwd_border";
94 }
95 description {
96 state: "pulse" 0.0;
97 inherit: "default" 0.0;
98 color: 255 255 255 128;
99 }
100 }
101 part {
102 name: "error";
103 type: RECT;
104 mouse_events: 0;
105 clip_to: "error_clip";
106 description {
107 state: "default" 0.0;
108 rel1.to: "passwd_border";
109 rel2.to: "passwd_border";
110 color: 255 255 255 255;
111 }
112 }
113 part {
114 name: "error_clip";
115 type: RECT;
116 mouse_events: 0;
117 clip_to: "pulse_clip";
118 description {
119 state: "default" 0.0;
120 rel1.to: "passwd_border";
121 rel2.to: "passwd_border";
122 color: 255 255 255 255;
123 }
124 description {
125 state: "invalid" 0.0;
126 inherit: "default" 0.0;
127 color: 255 128 128 255;
128 /*FIXME: Document how this works */
129 }
130 }
131 part {
132 name: "passwd_entry_clip";
133 type: RECT;
134 mouse_events: 0;
135 clip_to: "pulse_clip";
136 description {
137 state: "default" 0.0;
138 visible: 1;
139 rel1 {
140 offset: 6 3;
141 to: "passwd_border";
142 }
143 rel2 {
144 offset: -7 -4;
145 to: "passwd_border";
146 }
147 }
148 }
149 part {
150 name: "e.text.password";
151 type: TEXT;
152 clip_to: "passwd_entry_clip";
153 scale: 1;
154 description {
155 state: "default" 0.0;
156 fixed: 0 1;
157 align: 0.0 0.5;
158 rel1 {
159 relative: 0.0 0.0;
160 offset: 0 0;
161 to: "passwd_entry_clip";
162 }
163 rel2 {
164 relative: 0.0 1.0;
165 offset: 0 0;
166 to: "passwd_entry_clip";
167 }
168 color: 0 0 0 255;
169 text {
170 text: "****";
171 font: "Sans:style=Bold";
172 size: 16;
173 align: 0.0 0.5;
174 min: 1 1;
175 text_class: "desklock_passwd";
176 }
177 }
178 }
179 part {
180 name: "selection";
181 type: GROUP;
182 mouse_events: 0;
183 clip_to: "passwd_entry_clip";
184 source: "e/widgets/entry/selection";
185 description {
186 state: "default" 0.0;
187 visible: 0;
188 rel1.to: "e.text.password";
189 rel2.to: "e.text.password";
190 }
191 description {
192 state: "visible" 0.0;
193 inherit: "default" 0.0;
194 visible: 1;
195 }
196 }
197 part {
198 name: "cursor";
199 type: RECT;
200 mouse_events: 0;
201 clip_to: "passwd_entry_clip";
202 description {
203 state: "default" 0.0;
204 min: 1 16;
205 max: 1 16;
206 align: 0.0 0.5;
207 fixed: 1 1;
208 rel1 {
209 relative: 1.0 0.0;
210 offset: 0 -3;
211 to: "e.text.password";
212 }
213 rel2 {
214 relative: 1.0 1.0;
215 offset: 1 1;
216 to: "e.text.password";
217 }
218 color: 0 0 0 255;
219 }
220 }
221 part {
222 name: "passwd_border";
223 mouse_events: 0;
224 clip_to: "error_clip";
225 description {
226 state: "default" 0.0;
227 rel1 {
228 relative: 0.5 1.0;
229 offset: -80 2;
230 to_y: "e.text.title";
231 }
232 rel2 {
233 relative: 0.5 1.0;
234 offset: 79 20;
235 to_y: "e.text.title";
236 }
237 image {
238 normal: "O/inset_sunk.png";
239 middle: 0;
240 border: 7 7 7 7;
241 }
242 fill.smooth: 0;
243 }
244 description {
245 state: "checking" 0.0;
246 inherit: "default" 0.0;
247 color: 255 255 255 128;
248 }
249 }
250 }
251 programs {
252 program {
253 name: "pulse.1";
254 signal: "e,state,checking";
255 source: "e.desklock";
256 action: STATE_SET "pulse" 0.0;
257 target: "pulse_clip";
258 transition: SINUSOIDAL 0.5;
259 after: "pulse.2";
260 }
261 program {
262 name: "pulse.2";
263 action: STATE_SET "default" 0.0;
264 target: "pulse_clip";
265 transition: SINUSOIDAL 0.5;
266 after: "pulse.1";
267 }
268 program {
269 name: "pulse.stop";
270 signal: "e,state,invalid";
271 source: "e.desklock";
272 action: ACTION_STOP;
273 target: "pulse.1";
274 target: "pulse.2";
275 after: "pulse.reset";
276 }
277 program {
278 name: "pulse.reset";
279 action: STATE_SET "default" 0.0;
280 target: "pulse_clip";
281 transition: SINUSOIDAL 0.5;
282 }
283 program {
284 name: "go_invalid";
285 signal: "e,state,invalid";
286 source: "e.desklock";
287 action: STATE_SET "invalid" 0.0;
288 target: "error_clip";
289 transition: DECELERATE 0.5;
290 }
291 program {
292 name: "stop_invalid";
293 action: STATE_SET "default" 0.0;
294 target: "error_clip";
295 transition: DECELERATE 1.5;
296 }
297 program {
298 name: "select";
299 signal: "e,state,selected";
300 source: "e";
301 action: STATE_SET "visible" 0.0;
302 target: "selection";
303 }
304 program {
305 name: "unselect";
306 signal: "e,state,unselected";
307 source: "e";
308 action: STATE_SET "default" 0.0;
309 target: "selection";
310 }
311 }
312 }
313
314
diff --git a/data/themes/edc/O/edgebindings.edc b/data/themes/edc/O/edgebindings.edc
deleted file mode 100644
index 739ca8983..000000000
--- a/data/themes/edc/O/edgebindings.edc
+++ /dev/null
@@ -1,253 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: CONF_EDGEBINDINGS ***/
3
4/* This group draws the edge and corners for the user to pick.
5 * XXX: Needs some love from masters of the brush! */
6
7 group {
8 name: "e/modules/conf_edgebindings/selection";
9 parts {
10 part {
11 name: "e.swallow.background";
12 type: SWALLOW;
13 mouse_events: 0;
14 description {
15 state: "default" 0.0;
16 min: 210 150;
17 rel1.offset: 4 4;
18 rel2 {
19 relative: 0.5 1;
20 offset: -2 -5;
21 }
22 }
23 }
24 part {
25 name: "e.edge.top_left";
26 type: RECT;
27 description {
28 state: "default" 0.0;
29 rel1 {
30 to: "e.swallow.background";
31 }
32 rel2 {
33 relative: 0 0;
34 offset: 20 20;
35 to: "e.swallow.background";
36 }
37 color: 255 0 0 150;
38 }
39 }
40 part {
41 name: "e.edge.top";
42 type: RECT;
43 description {
44 state: "default" 0.0;
45 rel1 {
46 offset: 20 0;
47 to: "e.swallow.background";
48 }
49 rel2 {
50 relative: 1 0;
51 offset: -20 15;
52 to: "e.swallow.background";
53 }
54 color: 255 255 0 150;
55 }
56 }
57 part {
58 name: "e.edge.top_right";
59 type: RECT;
60 description {
61 state: "default" 0.0;
62 rel1 {
63 relative: 1 0;
64 offset: -20 0;
65 to: "e.swallow.background";
66 }
67 rel2 {
68 relative: 1 0;
69 offset: 0 20;
70 to: "e.swallow.background";
71 }
72 color: 255 0 0 150;
73 }
74 }
75 part {
76 name: "e.edge.right";
77 type: RECT;
78 description {
79 state: "default" 0.0;
80 rel1 {
81 relative: 1 0;
82 offset: -15 20;
83 to: "e.swallow.background";
84 }
85 rel2 {
86 relative: 1 1;
87 offset: 0 -20;
88 to: "e.swallow.background";
89 }
90 color: 255 255 0 150;
91 }
92 }
93 part {
94 name: "e.edge.bottom_right";
95 type: RECT;
96 description {
97 state: "default" 0.0;
98 rel1 {
99 relative: 1 1;
100 offset: -20 -20;
101 to: "e.swallow.background";
102 }
103 rel2 {
104 relative: 1 1;
105 offset: 0 0;
106 to: "e.swallow.background";
107 }
108 color: 255 0 0 150;
109 }
110 }
111 part {
112 name: "e.edge.bottom";
113 type: RECT;
114 description {
115 state: "default" 0.0;
116 rel1 {
117 relative: 0 1;
118 offset: 20 -15;
119 to: "e.swallow.background";
120 }
121 rel2 {
122 relative: 1 1;
123 offset: -20 0;
124 to: "e.swallow.background";
125 }
126 color: 255 255 0 150;
127 }
128 }
129 part {
130 name: "e.edge.bottom_left";
131 type: RECT;
132 description {
133 state: "default" 0.0;
134 rel1 {
135 relative: 0 1;
136 offset: 0 -20;
137 to: "e.swallow.background";
138 }
139 rel2 {
140 relative: 0 1;
141 offset: 20 0;
142 to: "e.swallow.background";
143 }
144 color: 255 0 0 150;
145 }
146 }
147 part {
148 name: "e.edge.left";
149 type: RECT;
150 description {
151 state: "default" 0.0;
152 rel1 {
153 relative: 0 0;
154 offset: 0 20;
155 to: "e.swallow.background";
156 }
157 rel2 {
158 relative: 0 1;
159 offset: 15 -20;
160 to: "e.swallow.background";
161 }
162 color: 255 255 0 150;
163 }
164 }
165 part {
166 name: "e.swallow.check";
167 type: SWALLOW;
168 description {
169 state: "default" 0.0;
170 rel1 {
171 relative: 1 1;
172 offset: 5 4;
173 to_x: "e.swallow.background";
174 to_y: "e.text.description";
175 }
176 rel2 {
177 relative: 1 1;
178 offset: -5 24;
179 to_y: "e.text.description";
180 }
181 }
182 }
183 part {
184 name: "e.swallow.slider";
185 type: SWALLOW;
186 description {
187 state: "default" 0.0;
188 rel1 {
189 relative: 1 1;
190 offset: 5 1;
191 to_x: "e.edge.bottom_right";
192 to_y: "e.swallow.check";
193 }
194 rel2 {
195 relative: 1 1;
196 offset: -5 -1;
197 }
198 }
199 }
200 part {
201 name: "e.text.description";
202 type: TEXTBLOCK;
203 mouse_events: 0;
204 scale: 1;
205 description {
206 state: "default" 0.0;
207 rel1 {
208 relative: 1 0;
209 offset: 5 4;
210 to_x: "e.swallow.background";
211 }
212 rel2 {
213 relative: 1 1;
214 offset: -5 -45;
215 }
216 text {
217 style: "dialog_style";
218 min: 1 1;
219 }
220 }
221 }
222 part {
223 name: "e.text.selection";
224 type: TEXT;
225 effect: SOFT_SHADOW;
226 mouse_events: 0;
227 description {
228 state: "default" 0.0;
229 align: 0.5 0.5;
230 rel1 {
231 relative: 1 1;
232 offset: 5 5;
233 to: "e.edge.top_left";
234 }
235 rel2 {
236 relative: 0 0;
237 offset: -5 -5;
238 to: "e.edge.bottom_right";
239 }
240 color: 224 224 224 255;
241 color3: 0 0 0 64;
242 text {
243 font: "Sans:style=Bold";
244 size: 12;
245 align: 0.5 0.5;
246 fit: 1 1;
247 }
248 }
249 }
250 }
251 }
252
253
diff --git a/data/themes/edc/O/evrything.edc b/data/themes/edc/O/evrything.edc
deleted file mode 100644
index 41505007d..000000000
--- a/data/themes/edc/O/evrything.edc
+++ /dev/null
@@ -1,2598 +0,0 @@
1/////////////////////////////////////////////////////////////////////////////
2/*** MOD: EVERYTHING ***/
3///////////////////////////////////////////////////////////////////////////////
4
5 group {
6 images.image: "O/vgrad_light.png" COMP;
7 name: "e/modules/everything/list";
8 parts {
9 part {
10 name: "list_frame";
11 type: RECT;
12 description {
13 state: "default" 0.0;
14 visible: 0;
15 }
16 }
17 part {
18 name: "base";
19 type: RECT;
20 /* description {
21 * state: "default" 0.0;
22 * rel1 {
23 * relative: 0.0 1.0;
24 * to_x: "list_frame";
25 * to_y: "input_base";
26 * }
27 * rel2 {
28 * to_x: "list_frame";
29 * to_y: "input_base";
30 * }
31 * } */
32 description {
33 state: "default" 0.0;
34 /*inherit: "default" 0.0;*/
35 rel1 {
36 relative: 0.0 1.0;
37 to_x: "list_frame";
38 to_y: "input_base";
39 }
40 rel2 {
41 to: "list_frame";
42 offset: -1 -1;
43 }
44 }
45 }
46 part {
47 name: "input_base";
48 type: RECT;
49 /* description {
50 * state: "default" 0.0;
51 * rel1 {
52 * to_x: "base";
53 * }
54 *
55 * rel2 {
56 * relative: 1.0 0.0;
57 * to_x: "base";
58 * offset: -1 1;
59 * }
60 * } */
61 description {
62 state: "default" 0.0;
63 /* inherit: "default" 0.0; */
64 rel1 {
65 to_x: "base";
66 }
67 rel2 {
68 relative: 1.0 0.0;
69 to_x: "base";
70 offset: -1 28;
71 }
72 }
73 }
74 part {
75 name: "list_win_bg";
76 type: RECT;
77 description {
78 state: "default" 0.0;
79 rel1.to_x: "base";
80 rel1.to_y: "input_base";
81
82 rel2.to: "base";
83 /* rel2.offset: -1 -3; */
84 color: 245 245 245 255;
85 }
86 }
87 part {
88 name: "bar_base";
89 type: RECT;
90 mouse_events: 0;
91 description {
92 state: "default" 0.0;
93 visible: 0;
94 rel1 {
95 relative: 0.0 1.0;
96 to: "base";
97 offset: 0 -26;
98 }
99 rel2 {
100 relative: 1.0 1.0;
101 to: "base";
102 offset: -1 -1;
103 }
104 }
105 }
106 part {
107 name: "bar_clip";
108 type: RECT;
109 mouse_events: 0;
110 description {
111 state: "default" 0.0;
112 rel1 {
113 to: "bar_base";
114 offset: 2 2;
115 }
116 rel2 {
117 to: "bar_base";
118 offset: -2 -2;
119 }
120 }
121 description {
122 state: "faded" 0.0;
123 inherit: "default" 0.0;
124 color: 255 255 255 0;
125 }
126 }
127 part {
128 name: "bar_bg";
129 clip_to: "base";
130 mouse_events: 0;
131 description {
132 state: "default" 0.0;
133 min: 32 25;
134 max: 9999 25;
135 fixed: 1 1;
136 rel1 {
137 offset: -1 2;
138 to: "bar_base";
139 }
140 rel2 {