summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rw-r--r--darkness.edc3
-rwxr-xr-xelm/darkness-common.edc4
-rw-r--r--elm/darkness-desktop.edc4
-rwxr-xr-xelm/darkness.edc1907
-rw-r--r--elm/macros/colors.h18
-rw-r--r--elm/macros/style.h1
7 files changed, 24 insertions, 1915 deletions
diff --git a/build.sh b/build.sh
index 98576d2..f58a80e 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2v=$(git log --oneline|wc -l) 2v=$(git log --oneline|wc -l)
3edje_cc -DVERSION=\"$v\" -id images/ -fd . darkness.edc -o darkness.edj 3edje_cc -DVERSION=\"$v\" -id images -id elm/images -fd . darkness.edc -o darkness.edj
4[[ $? != 0 ]] && exit 1 4[[ $? != 0 ]] && exit 1
5case "$1" in 5case "$1" in
6 '-p') 6 '-p')
diff --git a/darkness.edc b/darkness.edc
index e6ef874..c62f1ca 100644
--- a/darkness.edc
+++ b/darkness.edc
@@ -139,6 +139,7 @@
139 transition: SINUSOIDAL 0.2; \ 139 transition: SINUSOIDAL 0.2; \
140 } 140 }
141 141
142data.item: "version" "110";
142data { 143data {
143 item: "theme/name" "Darkness"; 144 item: "theme/name" "Darkness";
144 item: "theme/version" VERSION; 145 item: "theme/version" VERSION;
@@ -210,5 +211,7 @@ collections {
210#include "widgets/textblock.edc" 211#include "widgets/textblock.edc"
211#include "widgets/tlist.edc" 212#include "widgets/tlist.edc"
212#include "widgets/winlist.edc" 213#include "widgets/winlist.edc"
214
215#include "elm/darkness.edc"
213} 216}
214 217
diff --git a/elm/darkness-common.edc b/elm/darkness-common.edc
index 85d7655..8fda877 100755
--- a/elm/darkness-common.edc
+++ b/elm/darkness-common.edc
@@ -16,7 +16,6 @@
16#include "macros/tree_header.h" 16#include "macros/tree_header.h"
17#include "macros/widget.h" 17#include "macros/widget.h"
18 18
19data.item: "version" "110";
20styles 19styles
21{ 20{
22 STYLE("Label", "Sans", "Sans:style=Bold", "Sans:style=Oblique", "Sans:style=BoldOblique", "Sans-Mono", "10", 21 STYLE("Label", "Sans", "Sans:style=Bold", "Sans:style=Oblique", "Sans:style=BoldOblique", "Sans-Mono", "10",
@@ -38,8 +37,6 @@ styles
38 37
39externals.external: "elm"; 38externals.external: "elm";
40 39
41collections {
42
43/////////////////////////////////////////////////////////////////////////////// 40///////////////////////////////////////////////////////////////////////////////
44 group { name: "elm/focus_highlight/top/default"; 41 group { name: "elm/focus_highlight/top/default";
45 images { 42 images {
@@ -1296,4 +1293,3 @@ collections {
1296 } 1293 }
1297 } 1294 }
1298 } 1295 }
1299}
diff --git a/elm/darkness-desktop.edc b/elm/darkness-desktop.edc
index 4e21421..e70b550 100644
--- a/elm/darkness-desktop.edc
+++ b/elm/darkness-desktop.edc
@@ -1,4 +1,3 @@
1#include "darkness-common.edc"
2externals.external: "elm"; 1externals.external: "elm";
3 2
4#define SCROLLBARS_ADD() \ 3#define SCROLLBARS_ADD() \
@@ -689,8 +688,6 @@ externals.external: "elm";
689 } \ 688 } \
690 } \ 689 } \
691 690
692collections {
693
694 group { name: "elm/scroller/base/default"; 691 group { name: "elm/scroller/base/default";
695 alias: "elm/list/base/default"; 692 alias: "elm/list/base/default";
696 alias: "elm/genlist/base/default"; 693 alias: "elm/genlist/base/default";
@@ -1247,4 +1244,3 @@ collections {
1247 } 1244 }
1248 } 1245 }
1249 } 1246 }
1250}
diff --git a/elm/darkness.edc b/elm/darkness.edc
index 847a8cb..6607375 100755
--- a/elm/darkness.edc
+++ b/elm/darkness.edc
@@ -1,1907 +1,2 @@
1#include "darkness-common.edc" 1#include "darkness-common.edc"
2collections { 2#include "darkness-desktop.edc"
3 group { name: "elm/scroller/base/default";
4
5 alias: "elm/list/base/default";
6 alias: "elm/genlist/base/default";
7 alias: "elm/carousel/base/default";
8 alias: "elm/gengrid/base/default";
9 alias: "elm/scroller/base/map_bubble";
10
11 data {
12 item: "focus_highlight" "on";
13 }
14
15 script {
16 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
17 public timer0(val) {
18 new v;
19 v = get_int(sbvis_v);
20 if (v) {
21 v = get_int(sbalways_v);
22 if (!v) {
23 emit("do-hide-vbar", "");
24 set_int(sbvis_v, 0);
25 }
26 }
27 v = get_int(sbvis_h);
28 if (v) {
29 v = get_int(sbalways_h);
30 if (!v) {
31 emit("do-hide-hbar", "");
32 set_int(sbvis_h, 0);
33 }
34 }
35 set_int(sbvis_timer, 0);
36 return 0;
37 }
38 }
39 images {
40 image: "shelf_inset.png" COMP;
41 image: "slider_bar.png" COMP;
42 image: "scrollbar_vdrag1.png" COMP;
43 image: "scrollbar_hdrag1.png" COMP;
44 image: "scrollbar_vdrag_thumb.png" COMP;
45 image: "scrollbar_hdrag_thumb.png" COMP;
46 image: "entry_over.png" COMP;
47 }
48 parts {
49 part { name: "bg";
50 type: RECT;
51 description { state: "default" 0.0;
52 rel1.offset: 2 2;
53 rel2.offset: -3 -3;
54 color: 255 255 255 0;
55 }
56 }
57 part { name: "clipper";
58 type: RECT;
59 mouse_events: 0;
60 description { state: "default" 0.0;
61 rel1.to: "bg";
62 rel2.to: "bg";
63 rel1.offset: 2 2;
64 rel2.offset: -3 -3;
65 }
66 }
67 part { name: "elm.swallow.content";
68 clip_to: "clipper";
69 type: SWALLOW;
70 description { state: "default" 0.0;
71 rel1.to: "bg";
72 rel2.to: "bg";
73 rel1.offset: 2 2;
74 rel2.offset: -3 -3;
75 }
76 }
77 part { name: "conf_over";
78 mouse_events: 0;
79 description { state: "default" 0.0;
80 rel1.to: "bg";
81 rel2.to: "bg";
82 image {
83 normal: "shelf_inset.png";
84 border: 7 7 7 7;
85 middle: 0;
86 }
87 fill.smooth : 0;
88 }
89 description { state: "enabled" 0.0;
90 inherit: "default" 0.0;
91 color: 200 155 0 255;
92 }
93 }
94 part { name: "focus_highlight";
95 mouse_events: 0;
96 description { state: "default" 0.0;
97 rel1.offset: -1 -1;
98 rel2.offset: 0 0;
99 image {
100 normal: "entry_over.png";
101 border: 7 7 7 7;
102 middle: 0;
103 }
104 fill.smooth : 0;
105 color: 200 155 0 0;
106 }
107 description { state: "enabled" 0.0;
108 inherit: "default" 0.0;
109 color: 200 155 0 255;
110 }
111 }
112 SCROLLER_PART_VBAR_CLIP
113 part { name: "sb_vbar";
114 type: RECT;
115 mouse_events: 0;
116 description { state: "default" 0.0;
117 fixed: 1 1;
118 visible: 0;
119 min: 10 17;
120 align: 1.0 0.0;
121 rel1 {
122 relative: 1.0 0.0;
123 offset: 0 2;
124 to_y: "elm.swallow.content";
125 to_x: "elm.swallow.content";
126 }
127 rel2 {
128 relative: 1.0 0.0;
129 offset: -1 -1;
130 to_y: "sb_hbar";
131 to_x: "elm.swallow.content";
132 }
133 }
134 }
135 part { name: "elm.dragable.vbar";
136 clip_to: "sb_vbar_clip";
137 mouse_events: 0;
138 dragable {
139 x: 0 0 0;
140 y: 1 1 0;
141 confine: "sb_vbar";
142 }
143 description { state: "default" 0.0;
144 fixed: 1 1;
145 min: 10 17;
146 max: 10 99999;
147 rel1 {
148 relative: 0.5 0.5;
149 offset: 0 0;
150 to: "sb_vbar";
151 }
152 rel2 {
153 relative: 0.5 0.5;
154 offset: 0 0;
155 to: "sb_vbar";
156 }
157 image {
158 normal: "slider_bar.png";
159 border: 2 2 2 2;
160 }
161 }
162 }
163 part { name: "sb_vbar_over1";
164 clip_to: "sb_vbar_clip";
165 mouse_events: 0;
166 description { state: "default" 0.0;
167 color: 255 255 255 255;
168 rel1.to: "elm.dragable.vbar";
169 rel2.relative: 1.0 1.0;
170 rel2.to: "elm.dragable.vbar";
171 image {
172 normal: "scrollbar_vdrag1.png";
173 border: 6 6 6 0;
174 }
175 }
176 }
177 SCROLLER_PART_VBAR_THUMB
178 SCROLLER_PART_HBAR_CLIP
179 part { name: "sb_hbar";
180 type: RECT;
181 mouse_events: 0;
182 description { state: "default" 0.0;
183 fixed: 1 1;
184 visible: 0;
185 min: 17 10;
186 align: 0.0 1.0;
187 rel1 {
188 relative: 0.0 1.0;
189 offset: 2 0;
190 to_x: "elm.swallow.content";
191 to_y: "elm.swallow.content";
192 }
193 rel2 {
194 relative: 0.0 1.0;
195 offset: -1 -1;
196 to_x: "sb_vbar";
197 to_y: "elm.swallow.content";
198 }
199 }
200 }
201 part { name: "elm.dragable.hbar";
202 clip_to: "sb_hbar_clip";
203 mouse_events: 0;
204 dragable {
205 x: 1 1 0;
206 y: 0 0 0;
207 confine: "sb_hbar";
208 }
209 description { state: "default" 0.0;
210 fixed: 1 1;
211 min: 17 10;
212 max: 99999 10;
213 rel1 {
214 relative: 0.5 0.5;
215 to: "sb_hbar";
216 }
217 rel2 {
218 relative: 0.5 0.5;
219 to: "sb_hbar";
220 }
221 image {
222 normal: "slider_bar.png";
223 border: 2 2 2 2;
224 }
225 }
226 }
227 part { name: "sb_hbar_over1";
228 clip_to: "sb_hbar_clip";
229 mouse_events: 0;
230 description { state: "default" 0.0;
231 color: 255 255 255 255;
232 rel1.to: "elm.dragable.hbar";
233 rel2.relative: 1.0 1.0;
234 rel2.to: "elm.dragable.hbar";
235 image {
236 normal: "scrollbar_hdrag1.png";
237 border: 4 4 4 0;
238 }
239 }
240 }
241 SCROLLER_PART_HBAR_THUMB
242 SCROLLER_PART_DISABLER
243 }
244 programs {
245 program { name: "load";
246 signal: "load";
247 source: "";
248 script {
249 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
250 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
251 set_int(sbvis_h, 0);
252 set_int(sbvis_v, 0);
253 set_int(sbalways_v, 0);
254 set_int(sbalways_h, 0);
255 set_int(sbvis_timer, 0);
256 }
257 }
258
259 program { name: "vbar_show";
260 signal: "elm,action,show,vbar";
261 source: "elm";
262 action: STATE_SET "default" 0.0;
263 target: "sb_vbar_clip_master";
264 }
265 program { name: "vbar_hide";
266 signal: "elm,action,hide,vbar";
267 source: "elm";
268 action: STATE_SET "hidden" 0.0;
269 target: "sb_vbar_clip_master";
270 }
271 program { name: "vbar_show_always";
272 signal: "elm,action,show_always,vbar";
273 source: "elm";
274 script {
275 new v;
276 v = get_int(sbvis_v);
277 v |= get_int(sbalways_v);
278 if (!v) {
279 set_int(sbalways_v, 1);
280 emit("do-show-vbar", "");
281 set_int(sbvis_v, 1);
282 }
283 }
284 }
285 program { name: "vbar_show_notalways";
286 signal: "elm,action,show_notalways,vbar";
287 source: "elm";
288 script {
289 new v;
290 v = get_int(sbalways_v);
291 if (v) {
292 set_int(sbalways_v, 0);
293 v = get_int(sbvis_v);
294 if (!v) {
295 emit("do-hide-vbar", "");
296 set_int(sbvis_v, 0);
297 }
298 }
299 }
300 }
301 program { name: "sb_vbar_show";
302 signal: "do-show-vbar";
303 source: "";
304 action: STATE_SET "default" 0.0;
305 transition: LINEAR 0.5;
306 target: "sb_vbar_clip";
307 }
308 program { name: "sb_vbar_hide";
309 signal: "do-hide-vbar";
310 source: "";
311 action: STATE_SET "hidden" 0.0;
312 transition: LINEAR 0.5;
313 target: "sb_vbar_clip";
314 }
315
316 program { name: "hbar_show";
317 signal: "elm,action,show,hbar";
318 source: "elm";
319 action: STATE_SET "default" 0.0;
320 target: "sb_hbar_clip_master";
321 }
322 program { name: "hbar_hide";
323 signal: "elm,action,hide,hbar";
324 source: "elm";
325 action: STATE_SET "hidden" 0.0;
326 target: "sb_hbar_clip_master";
327 }
328 program { name: "hbar_show_always";
329 signal: "elm,action,show_always,hbar";
330 source: "elm";
331 script {
332 new v;
333 v = get_int(sbvis_h);
334 v |= get_int(sbalways_h);
335 if (!v) {
336 set_int(sbalways_h, 1);
337 emit("do-show-hbar", "");
338 set_int(sbvis_h, 1);
339 }
340 }
341 }
342 program { name: "hbar_show_notalways";
343 signal: "elm,action,show_notalways,hbar";
344 source: "elm";
345 script {
346 new v;
347 v = get_int(sbalways_h);
348 if (v) {
349 set_int(sbalways_h, 0);
350 v = get_int(sbvis_h);
351 if (!v) {
352 emit("do-hide-hbar", "");
353 set_int(sbvis_h, 0);
354 }
355 }
356 }
357 }
358 program { name: "sb_hbar_show";
359 signal: "do-show-hbar";
360 source: "";
361 action: STATE_SET "default" 0.0;
362 transition: LINEAR 0.5;
363 target: "sb_hbar_clip";
364 }
365 program { name: "sb_hbar_hide";
366 signal: "do-hide-hbar";
367 source: "";
368 action: STATE_SET "hidden" 0.0;
369 transition: LINEAR 0.5;
370 target: "sb_hbar_clip";
371 }
372
373 program { name: "scroll";
374 signal: "elm,action,scroll";
375 source: "elm";
376 script {
377 new v;
378 v = get_int(sbvis_v);
379 v |= get_int(sbalways_v);
380 if (!v) {
381 emit("do-show-vbar", "");
382 set_int(sbvis_v, 1);
383 }
384 v = get_int(sbvis_h);
385 v |= get_int(sbalways_h);
386 if (!v) {
387 emit("do-show-hbar", "");
388 set_int(sbvis_h, 1);
389 }
390 v = get_int(sbvis_timer);
391 if (v > 0) cancel_timer(v);
392 v = timer(1.0, "timer0", 0);
393 set_int(sbvis_timer, v);
394 }
395 }
396
397 program { name: "highlight_show";
398 signal: "elm,action,focus_highlight,show";
399 source: "elm";
400 action: STATE_SET "enabled" 0.0;
401 transition: ACCELERATE 0.3;
402 target: "focus_highlight";
403 target: "conf_over";
404 }
405 program { name: "highlight_hide";
406 signal: "elm,action,focus_highlight,hide";
407 source: "elm";
408 action: STATE_SET "default" 0.0;
409 transition: DECELERATE 0.3;
410 target: "focus_highlight";
411 target: "conf_over";
412 }
413 program { name: "disable";
414 signal: "elm,state,disabled";
415 source: "elm";
416 action: STATE_SET "disabled" 0.0;
417 target: "disabler";
418 }
419 program { name: "enable";
420 signal: "elm,state,enabled";
421 source: "elm";
422 action: STATE_SET "default" 0.0;
423 target: "disabler";
424 }
425 }
426 }
427
428///////////////////////////////////////////////////////////////////////////////
429 group { name: "elm/scroller/entry/default";
430
431 data {
432 item: "focus_highlight" "on";
433 }
434
435 script {
436 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
437 public timer0(val) {
438 new v;
439 v = get_int(sbvis_v);
440 if (v) {
441 v = get_int(sbalways_v);
442 if (!v) {
443 emit("do-hide-vbar", "");
444 set_int(sbvis_v, 0);
445 }
446 }
447 v = get_int(sbvis_h);
448 if (v) {
449 v = get_int(sbalways_h);
450 if (!v) {
451 emit("do-hide-hbar", "");
452 set_int(sbvis_h, 0);
453 }
454 }
455 set_int(sbvis_timer, 0);
456 return 0;
457 }
458 }
459 images {
460 image: "shelf_inset.png" COMP;
461 image: "slider_bar.png" COMP;
462 image: "slider_button_glow.png" COMP;
463 image: "entry_over.png" COMP;
464 }
465 parts {
466 part { name: "bg";
467 type: RECT;
468 description { state: "default" 0.0;
469 rel1.offset: 2 2;
470 rel2.offset: -3 -3;
471 color: 0 0 0 255;
472 }
473 }
474 part { name: "clipper";
475 type: RECT;
476 mouse_events: 0;
477 description { state: "default" 0.0;
478 rel1.to: "bg";
479 rel2.to: "bg";
480 rel1.offset: 2 2;
481 rel2.offset: -3 -3;
482 }
483 }
484 part { name: "contentclipper";
485 type: RECT;
486 mouse_events: 0;
487 clip_to: "clipper";
488 description { state: "default" 0.0;
489 rel1.to: "elm.swallow.icon";
490 rel1.relative: 1.0 0.0;
491 rel2.to: "elm.swallow.end";
492 rel2.relative: 0.0 1.0;
493 }
494 }
495 part { name: "elm.swallow.icon";
496 type: SWALLOW;
497 clip_to: "clipper";
498 description { state: "default" 0.0;
499 fixed: 1 1;
500 rel1 {
501 to: "bg";
502 relative: 0.0 0.0;
503 offset: 0 0;
504 }
505 rel2 {
506 to: "bg";
507 relative: 0.0 1.0;
508 offset: -1 -1;
509 }
510 visible: 0;
511 }
512 description { state: "visible" 0.0;
513 fixed: 1 1;
514 align: 0.0 1.0;
515 rel1 {
516 to: "bg";
517 relative: 0.0 0.0;
518 offset: 0 0;
519 }
520 rel2 {
521 to: "bg";
522 relative: 0.0 1.0;
523 offset: -1 -1;
524 }
525 visible: 1;
526 }
527 }
528 part { name: "elm.swallow.end";
529 type: SWALLOW;
530 clip_to: "clipper";
531 description { state: "default" 0.0;
532 fixed: 1 1;
533 rel1 {
534 to: "bg";
535 relative: 1.0 0.0;
536 offset: 0 0;
537 }
538 rel2 {
539 to: "bg";
540 relative: 1.0 1.0;
541 offset: -1 -1;
542 }
543 visible: 0;
544 }
545 description { state: "visible" 0.0;
546 fixed: 1 1;
547 align: 1.0 1.0;
548 rel1 {
549 to: "bg";
550 relative: 1.0 0.0;
551 offset: 0 0;
552 }
553 rel2 {
554 to: "bg";
555 relative: 1.0 1.0;
556 offset: -1 -1;
557 }
558 visible: 1;
559 }
560 }
561 part { name: "elm.swallow.content";
562 clip_to: "contentclipper";
563 type: SWALLOW;
564 description { state: "default" 0.0;
565 rel1 {
566 to: "elm.swallow.icon";
567 relative: 1.0 0.0;
568 offset: 4 4;
569 }
570 rel2 {
571 to: "elm.swallow.end";
572 relative: 0.0 1.0;
573 offset: -5 -5;
574 }
575 }
576 }
577 part { name: "conf_over";
578 mouse_events: 0;
579 description { state: "default" 0.0;
580 rel1.to: "bg";
581 rel2.to: "bg";
582 image {
583 normal: "shelf_inset.png";
584 border: 7 7 7 7;
585 middle: 0;
586 }
587 fill.smooth : 0;
588 }
589 description { state: "enabled" 0.0;
590 inherit: "default" 0.0;
591 color: 200 155 0 255;
592 }
593 }
594 part { name: "focus_highlight";
595 mouse_events: 0;
596 description { state: "default" 0.0;
597 rel1.offset: -1 -1;
598 rel2.offset: 0 0;
599 image {
600 normal: "entry_over.png";
601 border: 7 7 7 7;
602 middle: 0;
603 }
604 fill.smooth : 0;
605 color: 200 155 0 0;
606 }
607 description { state: "enabled" 0.0;
608 inherit: "default" 0.0;
609 color: 200 155 0 255;
610 }
611 }
612 part { name: "sb_vbar_clip_master";
613 type: RECT;
614 mouse_events: 0;
615 description { state: "default" 0.0;
616 }
617 description { state: "hidden" 0.0;
618 visible: 0;
619 color: 255 255 255 0;
620 }
621 }
622 part { name: "sb_vbar_clip";
623 clip_to: "sb_vbar_clip_master";
624 type: RECT;
625 mouse_events: 0;
626 description { state: "default" 0.0;
627 }
628 description { state: "hidden" 0.0;
629 visible: 0;
630 color: 255 255 255 0;
631 }
632 }
633 part { name: "sb_vbar";
634 type: RECT;
635 mouse_events: 0;
636 description { state: "default" 0.0;
637 fixed: 1 1;
638 visible: 0;
639 min: 10 17;
640 align: 1.0 0.0;
641 rel1 {
642 relative: 0.0 0.0;
643 offset: -2 2;
644 to_y: "elm.swallow.content";
645 to_x: "elm.swallow.end";
646 }
647 rel2 {
648 relative: 0.0 0.0;
649 offset: -2 -1;
650 to_y: "sb_hbar";
651 to_x: "elm.swallow.end";
652 }
653 }
654 }
655 part { name: "elm.dragable.vbar";
656 clip_to: "sb_vbar_clip";
657 mouse_events: 0;
658 dragable {
659 x: 0 0 0;
660 y: 1 1 0;
661 confine: "sb_vbar";
662 }
663 description { state: "default" 0.0;
664 fixed: 1 1;
665 min: 10 17;
666 max: 10 99999;
667 rel1 {
668 relative: 0.5 0.5;
669 offset: 0 0;
670 to: "sb_vbar";
671 }
672 rel2 {
673 relative: 0.5 0.5;
674 offset: 0 0;
675 to: "sb_vbar";
676 }
677 image {
678 normal: "slider_bar.png";
679 border: 2 2 2 2;
680 }
681 }
682 }
683 part { name: "sb_vbar_over1";
684 clip_to: "sb_vbar_clip";
685 mouse_events: 0;
686 description { state: "default" 0.0;
687 rel1.to: "elm.dragable.vbar";
688 rel2.relative: 1.0 0.5;
689 rel2.to: "elm.dragable.vbar";
690 image {
691 normal: "slider_button_glow.png";
692 border: 6 6 6 0;
693 }
694 }
695 }
696
697 part { name: "sb_hbar_clip_master";
698 type: RECT;
699 mouse_events: 0;
700 description { state: "default" 0.0;
701 }
702 description { state: "hidden" 0.0;
703 visible: 0;
704 color: 255 255 255 0;
705 }
706 }
707 part { name: "sb_hbar_clip";
708 clip_to: "sb_hbar_clip_master";
709 type: RECT;
710 mouse_events: 0;
711 description { state: "default" 0.0;
712 }
713 description { state: "hidden" 0.0;
714 visible: 0;
715 color: 255 255 255 0;
716 }
717 }
718 part { name: "sb_hbar";
719 type: RECT;
720 mouse_events: 0;
721 description { state: "default" 0.0;
722 fixed: 1 1;
723 visible: 0;
724 min: 17 10;
725 align: 0.0 1.0;
726 rel1 {
727 relative: 0.0 1.0;
728 offset: 2 0;
729 to_x: "elm.swallow.content";
730 to_y: "elm.swallow.content";
731 }
732 rel2 {
733 relative: 0.0 1.0;
734 offset: -1 -1;
735 to_x: "sb_vbar";
736 to_y: "elm.swallow.content";
737 }
738 }
739 }
740 part { name: "elm.dragable.hbar";
741 clip_to: "sb_hbar_clip";
742 mouse_events: 0;
743 dragable {
744 x: 1 1 0;
745 y: 0 0 0;
746 confine: "sb_hbar";
747 }
748 description { state: "default" 0.0;
749 fixed: 1 1;
750 min: 17 10;
751 max: 99999 10;
752 rel1 {
753 relative: 0.5 0.5;
754 offset: 0 0;
755 to: "sb_hbar";
756 }
757 rel2 {
758 relative: 0.5 0.5;
759 offset: 0 0;
760 to: "sb_hbar";
761 }
762 image {
763 normal: "slider_bar.png";
764 border: 2 2 2 2;
765 }
766 }
767 }
768 part { name: "sb_hbar_over1";
769 clip_to: "sb_hbar_clip";
770 mouse_events: 0;
771 description { state: "default" 0.0;
772 rel1.to: "elm.dragable.hbar";
773 rel2.relative: 1.0 0.5;
774 rel2.to: "elm.dragable.hbar";
775 image {
776 normal: "slider_button_glow.png";
777 border: 4 4 4 0;
778 }
779 }
780 }
781 }
782 programs {
783 program { name: "load";
784 signal: "load";
785 source: "";
786 script {
787 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
788 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
789 set_int(sbvis_h, 0);
790 set_int(sbvis_v, 0);
791 set_int(sbalways_v, 0);
792 set_int(sbalways_h, 0);
793 set_int(sbvis_timer, 0);
794 }
795 }
796 program { name: "icon_show";
797 signal: "elm,action,show,icon";
798 source: "elm";
799 action: STATE_SET "visible" 0.0;
800 target: "elm.swallow.icon";
801 }
802 program { name: "icon_hide";
803 signal: "elm,action,hide,icon";
804 source: "elm";
805 action: STATE_SET "default" 0.0;
806 target: "elm.swallow.icon";
807 }
808 program { name: "end_show";
809 signal: "elm,action,show,end";
810 source: "elm";
811 action: STATE_SET "visible" 0.0;
812 target: "elm.swallow.end";
813 }
814 program { name: "end_hide";
815 signal: "elm,action,hide,end";
816 source: "elm";
817 action: STATE_SET "default" 0.0;
818 target: "elm.swallow.end";
819 }
820 program { name: "vbar_show";
821 signal: "elm,action,show,vbar";
822 source: "elm";
823 action: STATE_SET "default" 0.0;
824 target: "sb_vbar_clip_master";
825 }
826 program { name: "vbar_hide";
827 signal: "elm,action,hide,vbar";
828 source: "elm";
829 action: STATE_SET "hidden" 0.0;
830 target: "sb_vbar_clip_master";
831 }
832 program { name: "vbar_show_always";
833 signal: "elm,action,show_always,vbar";
834 source: "elm";
835 script {
836 new v;
837 v = get_int(sbvis_v);
838 v |= get_int(sbalways_v);
839 if (!v) {
840 set_int(sbalways_v, 1);
841 emit("do-show-vbar", "");
842 set_int(sbvis_v, 1);
843 }
844 }
845 }
846 program { name: "vbar_show_notalways";
847 signal: "elm,action,show_notalways,vbar";
848 source: "elm";
849 script {
850 new v;
851 v = get_int(sbalways_v);
852 if (v) {
853 set_int(sbalways_v, 0);
854 v = get_int(sbvis_v);
855 if (!v) {
856 emit("do-hide-vbar", "");
857 set_int(sbvis_v, 0);
858 }
859 }
860 }
861 }
862 program { name: "sb_vbar_show";
863 signal: "do-show-vbar";
864 source: "";
865 action: STATE_SET "default" 0.0;
866 transition: LINEAR 0.5;
867 target: "sb_vbar_clip";
868 }
869 program { name: "sb_vbar_hide";
870 signal: "do-hide-vbar";
871 source: "";
872 action: STATE_SET "hidden" 0.0;
873 transition: LINEAR 0.5;
874 target: "sb_vbar_clip";
875 }
876
877 program { name: "hbar_show";
878 signal: "elm,action,show,hbar";
879 source: "elm";
880 action: STATE_SET "default" 0.0;
881 target: "sb_hbar_clip_master";
882 }
883 program { name: "hbar_hide";
884 signal: "elm,action,hide,hbar";
885 source: "elm";
886 action: STATE_SET "hidden" 0.0;
887 target: "sb_hbar_clip_master";
888 }
889 program { name: "hbar_show_always";
890 signal: "elm,action,show_always,hbar";
891 source: "elm";
892 script {
893 new v;
894 v = get_int(sbvis_h);
895 v |= get_int(sbalways_h);
896 if (!v) {
897 set_int(sbalways_h, 1);
898 emit("do-show-hbar", "");
899 set_int(sbvis_h, 1);
900 }
901 }
902 }
903 program { name: "hbar_show_notalways";
904 signal: "elm,action,show_notalways,hbar";
905 source: "elm";
906 script {
907 new v;
908 v = get_int(sbalways_h);
909 if (v) {
910 set_int(sbalways_h, 0);
911 v = get_int(sbvis_h);
912 if (!v) {
913 emit("do-hide-hbar", "");
914 set_int(sbvis_h, 0);
915 }
916 }
917 }
918 }
919 program { name: "sb_hbar_show";
920 signal: "do-show-hbar";
921 source: "";
922 action: STATE_SET "default" 0.0;
923 transition: LINEAR 0.5;
924 target: "sb_hbar_clip";
925 }
926 program { name: "sb_hbar_hide";
927 signal: "do-hide-hbar";
928 source: "";
929 action: STATE_SET "hidden" 0.0;
930 transition: LINEAR 0.5;
931 target: "sb_hbar_clip";
932 }
933
934 program { name: "scroll";
935 signal: "elm,action,scroll";
936 source: "elm";
937 script {
938 new v;
939 v = get_int(sbvis_v);
940 v |= get_int(sbalways_v);
941 if (!v) {
942 emit("do-show-vbar", "");
943 set_int(sbvis_v, 1);
944 }
945 v = get_int(sbvis_h);
946 v |= get_int(sbalways_h);
947 if (!v) {
948 emit("do-show-hbar", "");
949 set_int(sbvis_h, 1);
950 }
951 v = get_int(sbvis_timer);
952 if (v > 0) cancel_timer(v);
953 v = timer(1.0, "timer0", 0);
954 set_int(sbvis_timer, v);
955 }
956 }
957
958 program { name: "highlight_show";
959 signal: "elm,action,focus_highlight,show";
960 source: "elm";
961 action: STATE_SET "enabled" 0.0;
962 transition: ACCELERATE 0.3;
963 target: "focus_highlight";
964 target: "conf_over";
965 }
966 program { name: "highlight_hide";
967 signal: "elm,action,focus_highlight,hide";
968 source: "elm";
969 action: STATE_SET "default" 0.0;
970 transition: DECELERATE 0.3;
971 target: "focus_highlight";
972 target: "conf_over";
973 }
974 }
975 }
976 group { name: "elm/map/base/default";
977 script {
978 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
979 public timer0(val) {
980 new v;
981 v = get_int(sbvis_v);
982 if (v) {
983 v = get_int(sbalways_v);
984 if (!v) {
985 emit("do-hide-vbar", "");
986 set_int(sbvis_v, 0);
987 }
988 }
989 v = get_int(sbvis_h);
990 if (v) {
991 v = get_int(sbalways_h);
992 if (!v) {
993 emit("do-hide-hbar", "");
994 set_int(sbvis_h, 0);
995 }
996 }
997 set_int(sbvis_timer, 0);
998 return 0;
999 }
1000 }
1001 images {
1002 image: "shelf_inset.png" COMP;
1003 image: "slider_button.png" COMP;
1004 image: "menu_item_highlight.png" COMP;
1005 image: "busy-1.png" COMP;
1006 image: "busy-2.png" COMP;
1007 image: "busy-3.png" COMP;
1008 image: "busy-4.png" COMP;
1009 image: "busy-5.png" COMP;
1010 image: "busy-6.png" COMP;
1011 image: "busy-7.png" COMP;
1012 image: "busy-8.png" COMP;
1013 image: "busy-9.png" COMP;
1014 }
1015 parts {
1016 part { name: "bg";
1017 type: RECT;
1018 description { state: "default" 0.0;
1019 rel1.offset: 1 1;
1020 rel2.offset: -2 -2;
1021 color: 255 255 255 0;
1022 }
1023 }
1024 part { name: "clipper";
1025 type: RECT;
1026 mouse_events: 0;
1027 description { state: "default" 0.0;
1028 rel1.to: "bg";
1029 rel2.to: "bg";
1030 }
1031 }
1032 part { name: "elm.swallow.content";
1033 clip_to: "clipper";
1034 type: SWALLOW;
1035 description { state: "default" 0.0;
1036 rel1.offset: 1 1;
1037 rel2.offset: -2 -2;
1038 }
1039 }
1040 part { name: "busy_clip";
1041 type: RECT;
1042 mouse_events: 0;
1043 description { state: "default" 0.0;
1044 visible: 0;
1045 color: 255 255 255 0;
1046 }
1047 description { state: "active" 0.0;
1048 visible: 1;
1049 color: 255 255 255 255;
1050 }
1051 }
1052 part { name: "busy";
1053 clip_to: "busy_clip";
1054 mouse_events: 0;
1055 description { state: "default" 0.0;
1056 fixed: 1 1;
1057 min: 32 32;
1058 aspect: 1.0 1.0;
1059 align: 1.0 1.0;
1060 aspect_preference: BOTH;
1061 rel1 {
1062 relative: 0.9 0.9;
1063 offset: -9 -9;
1064 }
1065 rel2 {
1066 relative: 0.9 0.9;
1067 offset: -9 -9;
1068 }
1069 image {
1070 normal: "busy-9.png";
1071 tween: "busy-1.png";
1072 tween: "busy-2.png";
1073 tween: "busy-3.png";
1074 tween: "busy-4.png";
1075 tween: "busy-5.png";
1076 tween: "busy-6.png";
1077 tween: "busy-7.png";
1078 tween: "busy-8.png";
1079 }
1080 }
1081 }
1082 part { name: "conf_over";
1083 mouse_events: 0;
1084 description { state: "default" 0.0;
1085 rel1.offset: 0 0;
1086 rel2.offset: -1 -1;
1087 image {
1088 normal: "shelf_inset.png";
1089 border: 7 7 7 7;
1090 middle: 0;
1091 }
1092 fill.smooth : 0;
1093 }
1094 }
1095 part { name: "sb_vbar_clip_master";
1096 type: RECT;
1097 mouse_events: 0;
1098 description { state: "default" 0.0;
1099 }
1100 description { state: "hidden" 0.0;
1101 visible: 0;
1102 color: 255 255 255 0;
1103 }
1104 }
1105 part { name: "sb_vbar_clip";
1106 clip_to: "sb_vbar_clip_master";
1107 type: RECT;
1108 mouse_events: 0;
1109 description { state: "default" 0.0;
1110 }
1111 description { state: "hidden" 0.0;
1112 visible: 0;
1113 color: 255 255 255 0;
1114 }
1115 }
1116 part { name: "sb_vbar";
1117 type: RECT;
1118 mouse_events: 0;
1119 description { state: "default" 0.0;
1120 fixed: 1 1;
1121 visible: 0;
1122 min: 10 17;
1123 align: 1.0 0.0;
1124 rel1 {
1125 relative: 1.0 0.0;
1126 offset: -2 0;
1127 }
1128 rel2 {
1129 relative: 1.0 0.0;
1130 offset: -2 -1;
1131 to_y: "sb_hbar";
1132 }
1133 }
1134 }
1135 part { name: "elm.dragable.vbar";
1136 clip_to: "sb_vbar_clip";
1137 mouse_events: 0;
1138 dragable {
1139 x: 0 0 0;
1140 y: 1 1 0;
1141 confine: "sb_vbar";
1142 }
1143 description { state: "default" 0.0;
1144 fixed: 1 1;
1145 min: 10 17;
1146 max: 10 99999;
1147 rel1 {
1148 relative: 0.5 0.5;
1149 offset: 0 0;
1150 to: "sb_vbar";
1151 }
1152 rel2 {
1153 relative: 0.5 0.5;
1154 offset: 0 0;
1155 to: "sb_vbar";
1156 }
1157 image {
1158 normal: "slider_button.png";
1159 border: 6 6 6 6;
1160 middle: SOLID;
1161 }
1162 }
1163 }
1164 part { name: "sb_vbar_over1";
1165 clip_to: "sb_vbar_clip";
1166 mouse_events: 0;
1167 description { state: "default" 0.0;
1168 rel1.to: "elm.dragable.vbar";
1169 rel2.relative: 1.0 0.5;
1170 rel2.to: "elm.dragable.vbar";
1171 image {
1172 normal: "menu_item_highlight.png";
1173 border: 6 6 6 0;
1174 }
1175 }
1176 }
1177 part { name: "sb_hbar_clip_master";
1178 type: RECT;
1179 mouse_events: 0;
1180 description { state: "default" 0.0;
1181 }
1182 description { state: "hidden" 0.0;
1183 visible: 0;
1184 color: 255 255 255 0;
1185 }
1186 }
1187 part { name: "sb_hbar_clip";
1188 clip_to: "sb_hbar_clip_master";
1189 type: RECT;
1190 mouse_events: 0;
1191 description { state: "default" 0.0;
1192 }
1193 description { state: "hidden" 0.0;
1194 visible: 0;
1195 color: 255 255 255 0;
1196 }
1197 }
1198 part { name: "sb_hbar";
1199 type: RECT;
1200 mouse_events: 0;
1201 description { state: "default" 0.0;
1202 fixed: 1 1;
1203 visible: 0;
1204 min: 17 10;
1205 align: 0.0 1.0;
1206 rel1 {
1207 relative: 0.0 1.0;
1208 offset: 0 -2;
1209 }
1210 rel2 {
1211 relative: 0.0 1.0;
1212 offset: -1 -2;
1213 to_x: "sb_vbar";
1214 }
1215 }
1216 }
1217 part { name: "elm.dragable.hbar";
1218 clip_to: "sb_hbar_clip";
1219 mouse_events: 0;
1220 dragable {
1221 x: 1 1 0;
1222 y: 0 0 0;
1223 confine: "sb_hbar";
1224 }
1225 description { state: "default" 0.0;
1226 fixed: 1 1;
1227 min: 17 10;
1228 max: 99999 10;
1229 rel1 {
1230 relative: 0.5 0.5;
1231 offset: 0 0;
1232 to: "sb_hbar";
1233 }
1234 rel2 {
1235 relative: 0.5 0.5;
1236 offset: 0 0;
1237 to: "sb_hbar";
1238 }
1239 image {
1240 normal: "slider_button.png";
1241 border: 4 4 4 4;
1242 middle: SOLID;
1243 }
1244 }
1245 }
1246 part { name: "sb_hbar_over1";
1247 clip_to: "sb_hbar_clip";
1248 mouse_events: 0;
1249 description { state: "default" 0.0;
1250 rel1.to: "elm.dragable.hbar";
1251 rel2.relative: 1.0 0.5;
1252 rel2.to: "elm.dragable.hbar";
1253 image {
1254 normal: "menu_item_highlight.png";
1255 border: 4 4 4 0;
1256 }
1257 }
1258 }
1259 }
1260 programs {
1261 program { name: "load";
1262 signal: "load";
1263 source: "";
1264 script {
1265 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1266 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1267 set_int(sbvis_h, 0);
1268 set_int(sbvis_v, 0);
1269 set_int(sbalways_v, 0);
1270 set_int(sbalways_h, 0);
1271 set_int(sbvis_timer, 0);
1272 }
1273 }
1274
1275 program { name: "vbar_show";
1276 signal: "elm,action,show,vbar";
1277 source: "elm";
1278 action: STATE_SET "default" 0.0;
1279 target: "sb_vbar_clip_master";
1280 }
1281 program { name: "vbar_hide";
1282 signal: "elm,action,hide,vbar";
1283 source: "elm";
1284 action: STATE_SET "hidden" 0.0;
1285 target: "sb_vbar_clip_master";
1286 }
1287 program { name: "vbar_show_always";
1288 signal: "elm,action,show_always,vbar";
1289 source: "elm";
1290 script {
1291 new v;
1292 v = get_int(sbvis_v);
1293 v |= get_int(sbalways_v);
1294 if (!v) {
1295 set_int(sbalways_v, 1);
1296 emit("do-show-vbar", "");
1297 set_int(sbvis_v, 1);
1298 }
1299 }
1300 }
1301 program { name: "vbar_show_notalways";
1302 signal: "elm,action,show_notalways,vbar";
1303 source: "elm";
1304 script {
1305 new v;
1306 v = get_int(sbalways_v);
1307 if (v) {
1308 set_int(sbalways_v, 0);
1309 v = get_int(sbvis_v);
1310 if (!v) {
1311 emit("do-hide-vbar", "");
1312 set_int(sbvis_v, 0);
1313 }
1314 }
1315 }
1316 }
1317 program { name: "sb_vbar_show";
1318 signal: "do-show-vbar";
1319 source: "";
1320 action: STATE_SET "default" 0.0;
1321 transition: LINEAR 0.5;
1322 target: "sb_vbar_clip";
1323 }
1324 program { name: "sb_vbar_hide";
1325 signal: "do-hide-vbar";
1326 source: "";
1327 action: STATE_SET "hidden" 0.0;
1328 transition: LINEAR 0.5;
1329 target: "sb_vbar_clip";
1330 }
1331
1332 program { name: "hbar_show";
1333 signal: "elm,action,show,hbar";
1334 source: "elm";
1335 action: STATE_SET "default" 0.0;
1336 target: "sb_hbar_clip_master";
1337 }
1338 program { name: "hbar_hide";
1339 signal: "elm,action,hide,hbar";
1340 source: "elm";
1341 action: STATE_SET "hidden" 0.0;
1342 target: "sb_hbar_clip_master";
1343 }
1344 program { name: "hbar_show_always";
1345 signal: "elm,action,show_always,hbar";
1346 source: "elm";
1347 script {
1348 new v;
1349 v = get_int(sbvis_h);
1350 v |= get_int(sbalways_h);
1351 if (!v) {
1352 set_int(sbalways_h, 1);
1353 emit("do-show-hbar", "");
1354 set_int(sbvis_h, 1);
1355 }
1356 }
1357 }
1358 program { name: "hbar_show_notalways";
1359 signal: "elm,action,show_notalways,hbar";
1360 source: "elm";
1361 script {
1362 new v;
1363 v = get_int(sbalways_h);
1364 if (v) {
1365 set_int(sbalways_h, 0);
1366 v = get_int(sbvis_h);
1367 if (!v) {
1368 emit("do-hide-hbar", "");
1369 set_int(sbvis_h, 0);
1370 }
1371 }
1372 }
1373 }
1374 program { name: "sb_hbar_show";
1375 signal: "do-show-hbar";
1376 source: "";
1377 action: STATE_SET "default" 0.0;
1378 transition: LINEAR 0.5;
1379 target: "sb_hbar_clip";
1380 }
1381 program { name: "sb_hbar_hide";
1382 signal: "do-hide-hbar";
1383 source: "";
1384 action: STATE_SET "hidden" 0.0;
1385 transition: LINEAR 0.5;
1386 target: "sb_hbar_clip";
1387 }
1388
1389 program { name: "scroll";
1390 signal: "elm,action,scroll";
1391 source: "elm";
1392 script {
1393 new v;
1394 v = get_int(sbvis_v);
1395 v |= get_int(sbalways_v);
1396 if (!v) {
1397 emit("do-show-vbar", "");
1398 set_int(sbvis_v, 1);
1399 }
1400 v = get_int(sbvis_h);
1401 v |= get_int(sbalways_h);
1402 if (!v) {
1403 emit("do-show-hbar", "");
1404 set_int(sbvis_h, 1);
1405 }
1406 v = get_int(sbvis_timer);
1407 if (v > 0) cancel_timer(v);
1408 v = timer(1.0, "timer0", 0);
1409 set_int(sbvis_timer, v);
1410 }
1411 }
1412 program { name: "go1";
1413 signal: "elm,state,busy,start";
1414 source: "elm";
1415 action: STATE_SET "active" 0.0;
1416 transition: SINUSOIDAL 1.0;
1417 target: "busy_clip";
1418 }
1419 program { name: "go2";
1420 signal: "elm,state,busy,start";
1421 source: "elm";
1422 action: STATE_SET "default" 0.0;
1423 transition: LINEAR 0.5;
1424 target: "busy";
1425 after: "go2";
1426 }
1427 program { name: "stop1";
1428 signal: "elm,state,busy,stop";
1429 source: "elm";
1430 action: STATE_SET "default" 0.0;
1431 transition: SINUSOIDAL 1.0;
1432 target: "busy_clip";
1433 after: "stop2";
1434 }
1435 program { name: "stop2";
1436 action: ACTION_STOP;
1437 target: "go2";
1438 }
1439 }
1440 }
1441 group { name: "elm/photocam/base/default";
1442 script {
1443 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
1444 public timer0(val) {
1445 new v;
1446 v = get_int(sbvis_v);
1447 if (v) {
1448 v = get_int(sbalways_v);
1449 if (!v) {
1450 emit("do-hide-vbar", "");
1451 set_int(sbvis_v, 0);
1452 }
1453 }
1454 v = get_int(sbvis_h);
1455 if (v) {
1456 v = get_int(sbalways_h);
1457 if (!v) {
1458 emit("do-hide-hbar", "");
1459 set_int(sbvis_h, 0);
1460 }
1461 }
1462 set_int(sbvis_timer, 0);
1463 return 0;
1464 }
1465 }
1466 images {
1467 image: "shelf_inset.png" COMP;
1468 image: "slider_button.png" COMP;
1469 image: "menu_item_highlight.png" COMP;
1470 image: "busy-1.png" COMP;
1471 image: "busy-2.png" COMP;
1472 image: "busy-3.png" COMP;
1473 image: "busy-4.png" COMP;
1474 image: "busy-5.png" COMP;
1475 image: "busy-6.png" COMP;
1476 image: "busy-7.png" COMP;
1477 image: "busy-8.png" COMP;
1478 image: "busy-9.png" COMP;
1479 }
1480 parts {
1481 part { name: "bg";
1482 type: RECT;
1483 description { state: "default" 0.0;
1484 rel1.offset: 1 1;
1485 rel2.offset: -2 -2;
1486 color: 255 255 255 0;
1487 }
1488 }
1489 part { name: "clipper";
1490 type: RECT;
1491 mouse_events: 0;
1492 description { state: "default" 0.0;
1493 rel1.to: "bg";
1494 rel2.to: "bg";
1495 }
1496 }
1497 part { name: "elm.swallow.content";
1498 clip_to: "clipper";
1499 type: SWALLOW;
1500 description { state: "default" 0.0;
1501 rel1.offset: 1 1;
1502 rel2.offset: -2 -2;
1503 }
1504 }
1505 part { name: "busy_clip";
1506 type: RECT;
1507 mouse_events: 0;
1508 description { state: "default" 0.0;
1509 visible: 0;
1510 color: 255 255 255 0;
1511 }
1512 description { state: "active" 0.0;
1513 visible: 1;
1514 color: 255 255 255 255;
1515 }
1516 }
1517 part { name: "busy";
1518 clip_to: "busy_clip";
1519 mouse_events: 0;
1520 description { state: "default" 0.0;
1521 fixed: 1 1;
1522 min: 32 32;
1523 aspect: 1.0 1.0;
1524 align: 1.0 1.0;
1525 aspect_preference: BOTH;
1526 rel1 {
1527 relative: 0.9 0.9;
1528 offset: -9 -9;
1529 }
1530 rel2 {
1531 relative: 0.9 0.9;
1532 offset: -9 -9;
1533 }
1534 image {
1535 normal: "busy-9.png";
1536 tween: "busy-1.png";
1537 tween: "busy-2.png";
1538 tween: "busy-3.png";
1539 tween: "busy-4.png";
1540 tween: "busy-5.png";
1541 tween: "busy-6.png";
1542 tween: "busy-7.png";
1543 tween: "busy-8.png";
1544 }
1545 }
1546 }
1547 part { name: "conf_over";
1548 mouse_events: 0;
1549 description { state: "default" 0.0;
1550 rel1.offset: 0 0;
1551 rel2.offset: -1 -1;
1552 image {
1553 normal: "shelf_inset.png";
1554 border: 7 7 7 7;
1555 middle: 0;
1556 }
1557 fill.smooth : 0;
1558 }
1559 }
1560 part { name: "sb_vbar_clip_master";
1561 type: RECT;
1562 mouse_events: 0;
1563 description { state: "default" 0.0;
1564 }
1565 description { state: "hidden" 0.0;
1566 visible: 0;
1567 color: 255 255 255 0;
1568 }
1569 }
1570 part { name: "sb_vbar_clip";
1571 clip_to: "sb_vbar_clip_master";
1572 type: RECT;
1573 mouse_events: 0;
1574 description { state: "default" 0.0;
1575 }
1576 description { state: "hidden" 0.0;
1577 visible: 0;
1578 color: 255 255 255 0;
1579 }
1580 }
1581 part { name: "sb_vbar";
1582 type: RECT;
1583 mouse_events: 0;
1584 description { state: "default" 0.0;
1585 fixed: 1 1;
1586 visible: 0;
1587 min: 10 17;
1588 align: 1.0 0.0;
1589 rel1 {
1590 relative: 1.0 0.0;
1591 offset: -2 0;
1592 }
1593 rel2 {
1594 relative: 1.0 0.0;
1595 offset: -2 -1;
1596 to_y: "sb_hbar";
1597 }
1598 }
1599 }
1600 part { name: "elm.dragable.vbar";
1601 clip_to: "sb_vbar_clip";
1602 mouse_events: 0;
1603 dragable {
1604 x: 0 0 0;
1605 y: 1 1 0;
1606 confine: "sb_vbar";
1607 }
1608 description { state: "default" 0.0;
1609 fixed: 1 1;
1610 min: 10 17;
1611 max: 10 99999;
1612 rel1 {
1613 relative: 0.5 0.5;
1614 offset: 0 0;
1615 to: "sb_vbar";
1616 }
1617 rel2 {
1618 relative: 0.5 0.5;
1619 offset: 0 0;
1620 to: "sb_vbar";
1621 }
1622 image {
1623 normal: "slider_button.png";
1624 border: 6 6 6 6;
1625 middle: SOLID;
1626 }
1627 }
1628 }
1629 part { name: "sb_vbar_over1";
1630 clip_to: "sb_vbar_clip";
1631 mouse_events: 0;
1632 description { state: "default" 0.0;
1633 rel1.to: "elm.dragable.vbar";
1634 rel2.relative: 1.0 0.5;
1635 rel2.to: "elm.dragable.vbar";
1636 image {
1637 normal: "menu_item_highlight.png";
1638 border: 6 6 6 0;
1639 }
1640 }
1641 }
1642 part { name: "sb_hbar_clip_master";
1643 type: RECT;
1644 mouse_events: 0;
1645 description { state: "default" 0.0;
1646 }
1647 description { state: "hidden" 0.0;
1648 visible: 0;
1649 color: 255 255 255 0;
1650 }
1651 }
1652 part { name: "sb_hbar_clip";
1653 clip_to: "sb_hbar_clip_master";
1654 type: RECT;
1655 mouse_events: 0;
1656 description { state: "default" 0.0;
1657 }
1658 description { state: "hidden" 0.0;
1659 visible: 0;
1660 color: 255 255 255 0;
1661 }
1662 }
1663 part { name: "sb_hbar";
1664 type: RECT;
1665 mouse_events: 0;
1666 description { state: "default" 0.0;
1667 fixed: 1 1;
1668 visible: 0;
1669 min: 17 10;
1670 align: 0.0 1.0;
1671 rel1 {
1672 relative: 0.0 1.0;
1673 offset: 0 -2;
1674 }
1675 rel2 {
1676 relative: 0.0 1.0;
1677 offset: -1 -2;
1678 to_x: "sb_vbar";
1679 }
1680 }
1681 }
1682 part { name: "elm.dragable.hbar";
1683 clip_to: "sb_hbar_clip";
1684 mouse_events: 0;
1685 dragable {
1686 x: 1 1 0;
1687 y: 0 0 0;
1688 confine: "sb_hbar";
1689 }
1690 description { state: "default" 0.0;
1691 fixed: 1 1;
1692 min: 17 10;
1693 max: 99999 10;
1694 rel1 {
1695 relative: 0.5 0.5;
1696 offset: 0 0;
1697 to: "sb_hbar";
1698 }
1699 rel2 {
1700 relative: 0.5 0.5;
1701 offset: 0 0;
1702 to: "sb_hbar";
1703 }
1704 image {
1705 normal: "slider_button.png";
1706 border: 4 4 4 4;
1707 middle: SOLID;
1708 }
1709 }
1710 }
1711 part { name: "sb_hbar_over1";
1712 clip_to: "sb_hbar_clip";
1713 mouse_events: 0;
1714 description { state: "default" 0.0;
1715 rel1.to: "elm.dragable.hbar";
1716 rel2.relative: 1.0 0.5;
1717 rel2.to: "elm.dragable.hbar";
1718 image {
1719 normal: "menu_item_highlight.png";
1720 border: 4 4 4 0;
1721 }
1722 }
1723 }
1724 }
1725 programs {
1726 program { name: "load";
1727 signal: "load";
1728 source: "";
1729 script {
1730 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1731 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1732 set_int(sbvis_h, 0);
1733 set_int(sbvis_v, 0);
1734 set_int(sbalways_v, 0);
1735 set_int(sbalways_h, 0);
1736 set_int(sbvis_timer, 0);
1737 }
1738 }
1739
1740 program { name: "vbar_show";
1741 signal: "elm,action,show,vbar";
1742 source: "elm";
1743 action: STATE_SET "default" 0.0;
1744 target: "sb_vbar_clip_master";
1745 }
1746 program { name: "vbar_hide";
1747 signal: "elm,action,hide,vbar";
1748 source: "elm";
1749 action: STATE_SET "hidden" 0.0;
1750 target: "sb_vbar_clip_master";
1751 }
1752 program { name: "vbar_show_always";
1753 signal: "elm,action,show_always,vbar";
1754 source: "elm";
1755 script {
1756 new v;
1757 v = get_int(sbvis_v);
1758 v |= get_int(sbalways_v);
1759 if (!v) {
1760 set_int(sbalways_v, 1);
1761 emit("do-show-vbar", "");
1762 set_int(sbvis_v, 1);
1763 }
1764 }
1765 }
1766 program { name: "vbar_show_notalways";
1767 signal: "elm,action,show_notalways,vbar";
1768 source: "elm";
1769 script {
1770 new v;
1771 v = get_int(sbalways_v);
1772 if (v) {
1773 set_int(sbalways_v, 0);
1774 v = get_int(sbvis_v);
1775 if (!v) {
1776 emit("do-hide-vbar", "");
1777 set_int(sbvis_v, 0);
1778 }
1779 }
1780 }
1781 }
1782 program { name: "sb_vbar_show";
1783 signal: "do-show-vbar";
1784 source: "";
1785 action: STATE_SET "default" 0.0;
1786 transition: LINEAR 0.5;
1787 target: "sb_vbar_clip";
1788 }
1789 program { name: "sb_vbar_hide";
1790 signal: "do-hide-vbar";
1791 source: "";
1792 action: STATE_SET "hidden" 0.0;
1793 transition: LINEAR 0.5;
1794 target: "sb_vbar_clip";
1795 }
1796
1797 program { name: "hbar_show";
1798 signal: "elm,action,show,hbar";
1799 source: "elm";
1800 action: STATE_SET "default" 0.0;
1801 target: "sb_hbar_clip_master";
1802 }
1803 program { name: "hbar_hide";
1804 signal: "elm,action,hide,hbar";
1805 source: "elm";
1806 action: STATE_SET "hidden" 0.0;
1807 target: "sb_hbar_clip_master";
1808 }
1809 program { name: "hbar_show_always";
1810 signal: "elm,action,show_always,hbar";
1811 source: "elm";
1812 script {
1813 new v;
1814 v = get_int(sbvis_h);
1815 v |= get_int(sbalways_h);
1816 if (!v) {
1817 set_int(sbalways_h, 1);
1818 emit("do-show-hbar", "");
1819 set_int(sbvis_h, 1);
1820 }
1821 }
1822 }
1823 program { name: "hbar_show_notalways";
1824 signal: "elm,action,show_notalways,hbar";
1825 source: "elm";
1826 script {
1827 new v;
1828 v = get_int(sbalways_h);
1829 if (v) {
1830 set_int(sbalways_h, 0);
1831 v = get_int(sbvis_h);
1832 if (!v) {
1833 emit("do-hide-hbar", "");
1834 set_int(sbvis_h, 0);
1835 }
1836 }
1837 }
1838 }
1839 program { name: "sb_hbar_show";
1840 signal: "do-show-hbar";
1841 source: "";
1842 action: STATE_SET "default" 0.0;
1843 transition: LINEAR 0.5;
1844 target: "sb_hbar_clip";
1845 }
1846 program { name: "sb_hbar_hide";
1847 signal: "do-hide-hbar";
1848 source: "";
1849 action: STATE_SET "hidden" 0.0;
1850 transition: LINEAR 0.5;
1851 target: "sb_hbar_clip";
1852 }
1853
1854 program { name: "scroll";
1855 signal: "elm,action,scroll";
1856 source: "elm";
1857 script {
1858 new v;
1859 v = get_int(sbvis_v);
1860 v |= get_int(sbalways_v);
1861 if (!v) {
1862 emit("do-show-vbar", "");
1863 set_int(sbvis_v, 1);
1864 }
1865 v = get_int(sbvis_h);
1866 v |= get_int(sbalways_h);
1867 if (!v) {
1868 emit("do-show-hbar", "");
1869 set_int(sbvis_h, 1);
1870 }
1871 v = get_int(sbvis_timer);
1872 if (v > 0) cancel_timer(v);
1873 v = timer(1.0, "timer0", 0);
1874 set_int(sbvis_timer, v);
1875 }
1876 }
1877 program { name: "go1";
1878 signal: "elm,state,busy,start";
1879 source: "elm";
1880 action: STATE_SET "active" 0.0;
1881 transition: SINUSOIDAL 1.0;
1882 target: "busy_clip";
1883 }
1884 program { name: "go2";
1885 signal: "elm,state,busy,start";
1886 source: "elm";
1887 action: STATE_SET "default" 0.0;
1888 transition: LINEAR 0.5;
1889 target: "busy";
1890 after: "go2";
1891 }
1892 program { name: "stop1";
1893 signal: "elm,state,busy,stop";
1894 source: "elm";
1895 action: STATE_SET "default" 0.0;
1896 transition: SINUSOIDAL 1.0;
1897 target: "busy_clip";
1898 after: "stop2";
1899 }
1900 program { name: "stop2";
1901 action: ACTION_STOP;
1902 target: "go2";
1903 }
1904 }
1905 }
1906
1907}
diff --git a/elm/macros/colors.h b/elm/macros/colors.h
index 543a153..762aec9 100644
--- a/elm/macros/colors.h
+++ b/elm/macros/colors.h
@@ -1,22 +1,40 @@
1#undef DARKNESS_VERY_DARK_BLUE
1#define DARKNESS_VERY_DARK_BLUE 12 20 28 2#define DARKNESS_VERY_DARK_BLUE 12 20 28
3#undef DARKNESS_DARK_BLUE
2#define DARKNESS_DARK_BLUE 38 62 87 4#define DARKNESS_DARK_BLUE 38 62 87
5#undef DARKNESS_BLUE
3#define DARKNESS_BLUE 56 82 109 6#define DARKNESS_BLUE 56 82 109
7#undef DARKNESS_LIGHT_BLUE
4#define DARKNESS_LIGHT_BLUE 145 169 195 8#define DARKNESS_LIGHT_BLUE 145 169 195
9#undef DARKNESS_VERY_LIGHT_BLUE
5#define DARKNESS_VERY_LIGHT_BLUE 201 212 225 10#define DARKNESS_VERY_LIGHT_BLUE 201 212 225
11#undef DARKNESS_TITLE_BLUE
6#define DARKNESS_TITLE_BLUE 27 40 174 12#define DARKNESS_TITLE_BLUE 27 40 174
13#undef DARKNESS_BUTTON_BLUE
7#define DARKNESS_BUTTON_BLUE 68 156 200 14#define DARKNESS_BUTTON_BLUE 68 156 200
15#undef DARKNESS_BRIGHT_BLUE
8#define DARKNESS_BRIGHT_BLUE 61 124 195 16#define DARKNESS_BRIGHT_BLUE 61 124 195
17#undef DARKNESS_BRIGHT_BLUE_DISABLED
9#define DARKNESS_BRIGHT_BLUE_DISABLED 41 104 175 18#define DARKNESS_BRIGHT_BLUE_DISABLED 41 104 175
19#undef DARKNESS_BUTTON_RED
10#define DARKNESS_BUTTON_RED 255 0 0 20#define DARKNESS_BUTTON_RED 255 0 0
11 21
22#undef DARKNESS_BACKGROUND
12#define DARKNESS_BACKGROUND 10 10 10 23#define DARKNESS_BACKGROUND 10 10 10
24#undef DARKNESS_BORDER
13#define DARKNESS_BORDER 76 76 76 25#define DARKNESS_BORDER 76 76 76
14 26
27#undef DARKNESS_MENU_BORDER
15#define DARKNESS_MENU_BORDER 76 76 76 28#define DARKNESS_MENU_BORDER 76 76 76
29#undef DARKNESS_LIST_BORDER
16#define DARKNESS_LIST_BORDER 72 72 72 30#define DARKNESS_LIST_BORDER 72 72 72
17 31
32#undef DARKNESS_LIST_ROW
18#define DARKNESS_LIST_ROW 1 1 1 33#define DARKNESS_LIST_ROW 1 1 1
34#undef DARKNESS_LIST_ROW_SELECT
19#define DARKNESS_LIST_ROW_SELECT 0 30 60 35#define DARKNESS_LIST_ROW_SELECT 0 30 60
20 36
37#undef DARKNESS_TEXT
21#define DARKNESS_TEXT 255 255 255 38#define DARKNESS_TEXT 255 255 255
39#undef DARKNESS_TEXT_DISABLED
22#define DARKNESS_TEXT_DISABLED 222 222 222 40#define DARKNESS_TEXT_DISABLED 222 222 222
diff --git a/elm/macros/style.h b/elm/macros/style.h
index c2b643d..0ac542a 100644
--- a/elm/macros/style.h
+++ b/elm/macros/style.h
@@ -1,3 +1,4 @@
1#undef STYLE
1#define STYLE(style_class, fn, fb, fi, fbi, fm, size, normal_style, title, subtitle, hilight, description) \ 2#define STYLE(style_class, fn, fb, fi, fbi, fm, size, normal_style, title, subtitle, hilight, description) \
2style { \ 3style { \
3 name: style_class; \ 4 name: style_class; \