summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-10-11 16:25:00 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-10-11 16:25:00 +0000
commita0c8487fc5ac24ed3f0fd0fec0737248115352ba (patch)
treea7f4afb1e485a92c8580c5b76b5348f7e18503eb /data
parentcdf027962e32291cdb08bcda281ba4bb1fe7d93c (diff)
working on more widgety stuff
SVN revision: 17438
Diffstat (limited to 'data')
-rw-r--r--data/themes/Makefile.am3
-rw-r--r--data/themes/default.edc1
-rw-r--r--data/themes/default_button.edc335
-rw-r--r--data/themes/default_dialog.edc306
4 files changed, 494 insertions, 151 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 8fb32e586..7ec986af6 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -43,7 +43,8 @@ default_scrollbar.edc \
43default_fileman.edc \ 43default_fileman.edc \
44default_check.edc \ 44default_check.edc \
45default_radio.edc \ 45default_radio.edc \
46default_frame.edc 46default_frame.edc \
47default_button.edc
47 48
48default.edj: Makefile $(EXTRA_DIST) 49default.edj: Makefile $(EXTRA_DIST)
49 $(EDJE_CC) $(EDJE_FLAGS) \ 50 $(EDJE_CC) $(EDJE_FLAGS) \
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 1cff647dd..2496867bf 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -52,5 +52,6 @@ collections {
52#include "default_check.edc" 52#include "default_check.edc"
53#include "default_radio.edc" 53#include "default_radio.edc"
54#include "default_frame.edc" 54#include "default_frame.edc"
55#include "default_button.edc"
55} 56}
56 57
diff --git a/data/themes/default_button.edc b/data/themes/default_button.edc
new file mode 100644
index 000000000..69d99ba9d
--- /dev/null
+++ b/data/themes/default_button.edc
@@ -0,0 +1,335 @@
1images {
2 image: "e17_button2.png" COMP;
3 image: "e17_button.png" COMP;
4 image: "e17_titlebar_glint1.png" COMP;
5 image: "e17_titlebar_glint2.png" COMP;
6 image: "e17_titlebar_glint3.png" COMP;
7}
8
9group {
10 name: "widgets/button";
11 parts {
12 part {
13 name: "button_image";
14 type: IMAGE;
15 mouse_events: 1;
16 description {
17 state: "default" 0.0;
18 image {
19 normal: "e17_button.png";
20 border: 8 8 8 8;
21 }
22 }
23 description {
24 state: "clicked" 0.0;
25 inherit: "default" 0.0;
26 image {
27 normal: "e17_button2.png";
28 }
29 }
30 }
31 part {
32 name: "icon_swallow";
33 type: SWALLOW;
34 description {
35 state: "default" 0.0;
36 align: 0.0 0.5;
37 color: 0 0 0 0;
38 rel1 {
39 relative: 0.0 0.0;
40 offset: 0 11;
41 to: "button_image";
42 }
43 rel2 {
44 relative: 0.0 1.0;
45 offset: 0 -12;
46 to: "button_image";
47 }
48 }
49 description {
50 state: "visible" 0.0;
51 inherit: "default" 0.0;
52 aspect: 1.0 1.0;
53 aspect_preference: VERTICAL;
54 align: 0.0 0.5;
55 color: 0 0 0 0;
56 rel1 {
57 relative: 0.0 0.0;
58 offset: 11 11;
59 to: "button_image";
60 }
61 rel2 {
62 relative: 0.0 1.0;
63 offset: 10 -12;
64 to: "button_image";
65 }
66 }
67 }
68 part {
69 name: "label";
70 type: TEXT;
71 effect: SHADOW;
72 mouse_events: 0;
73 description {
74 state: "default" 0.0;
75 rel1 {
76 relative: 1.0 0.0;
77 offset: 5 11;
78 to_x: "icon_swallow";
79 to_y: "button_image";
80 }
81 rel2 {
82 relative: 1.0 1.0;
83 offset: -12 -12;
84 to: "button_image";
85 }
86 color: 0 0 0 255;
87 color3: 255 255 255 128;
88 text {
89 text: "OK";
90 font: "Edje-Vera";
91 size: 10;
92 min: 1 1;
93 align: 0.5 0.5;
94 }
95 }
96 }
97 part {
98 name: "glint_clip";
99 type: RECT;
100 mouse_events: 0;
101 description {
102 state: "default" 0.0;
103 color: 255 255 255 255;
104 rel1 {
105 relative: 0.0 0.0;
106 offset: 3 3;
107 }
108 rel2 {
109 relative: 1.0 1.0;
110 offset: -4 -4;
111 }
112 }
113 }
114 part {
115 name: "glint1";
116 mouse_events: 0;
117 description {
118 state: "default" 0.0;
119 visible: 0;
120 color: 255 255 255 0;
121 align: 0.0 0.0;
122 max: 34 13;
123 rel1 {
124 relative: 0.0 0.0;
125 offset: 2 2;
126 }
127 rel2 {
128 relative: 1.0 1.0;
129 offset: -3 -3;
130 }
131 image {
132 normal: "e17_titlebar_glint1.png";
133 border: 5 0 5 0;
134 }
135 fill {
136 smooth: 0;
137 }
138 }
139 description {
140 state: "active" 0.0;
141 inherit: "default" 0.0;
142 visible: 1;
143 color: 255 255 255 255;
144 }
145 }
146 part {
147 name: "glint2";
148 mouse_events: 0;
149 clip_to: "glint_clip";
150 description {
151 state: "default" 0.0;
152 visible: 0;
153 color: 255 255 255 0;
154 align: 1.0 0.5;
155 max: 0 0;
156 rel1 {
157 relative: 0.0 0.0;
158 offset: 3 3;
159 }
160 rel2 {
161 relative: 0.0 1.0;
162 offset: 3 -4;
163 }
164 image {
165 normal: "e17_titlebar_glint2.png";
166 border: 0 0 5 5;
167 }
168 fill {
169 smooth: 0;
170 }
171 }
172 description {
173 state: "active" 0.0;
174 inherit: "default" 0.0;
175 visible: 1;
176 color: 255 255 255 255;
177 max: 169 9999;
178 min: 169 8;
179 align: 0.5 0.5;
180 }
181 description {
182 state: "active2" 0.0;
183 inherit: "default" 0.0;
184 visible: 1;
185 color: 255 255 255 128;
186 max: 169 9999;
187 min: 169 8;
188 align: 0.5 0.5;
189 rel1 {
190 relative: 1.0 0.0;
191 offset: -4 3;
192 }
193 rel2 {
194 relative: 1.0 1.0;
195 offset: -4 -4;
196 }
197 }
198 description {
199 state: "active3" 0.0;
200 inherit: "default" 0.0;
201 visible: 0;
202 color: 255 255 255 0;
203 max: 169 9999;
204 min: 169 8;
205 align: 0.0 0.5;
206 rel1 {
207 relative: 1.0 0.0;
208 offset: -4 3;
209 }
210 rel2 {
211 relative: 1.0 1.0;
212 offset: -4 -4;
213 }
214 }
215 }
216 part {
217 name: "glint3";
218 mouse_events: 0;
219 description {
220 state: "default" 0.0;
221 visible: 0;
222 color: 255 255 255 0;
223 align: 1.0 1.0;
224 max: 34 13;
225 rel1 {
226 relative: 0.0 0.0;
227 offset: 2 2;
228 }
229 rel2 {
230 relative: 1.0 1.0;
231 offset: -3 -3;
232 }
233 image {
234 normal: "e17_titlebar_glint3.png";
235 border: 0 5 0 5;
236 }
237 fill {
238 smooth: 0;
239 }
240 }
241 description {
242 state: "active" 0.0;
243 inherit: "default" 0.0;
244 visible: 1;
245 color: 255 255 255 255;
246 }
247 }
248 }
249 programs {
250 program {
251 name: "button_click";
252 signal: "mouse,down,1";
253 source: "button_image";
254 action: STATE_SET "clicked" 0.0;
255 target: "button_image";
256 }
257 program {
258 name: "button_unclick";
259 signal: "mouse,up,1";
260 source: "button_image";
261 action: STATE_SET "default" 0.0;
262 target: "button_image";
263 }
264 program {
265 name: "button_unclick2";
266 signal: "mouse,clicked,1";
267 source: "button_image";
268 action: SIGNAL_EMIT "click" "";
269 }
270 program {
271 name: "icon_visible";
272 signal: "icon_visible";
273 source: "";
274 action: STATE_SET "visible" 0.0;
275 target: "icon_swallow";
276 }
277 program {
278 name: "button_in";
279 signal: "mouse,in";
280 source: "button_image";
281 action: SIGNAL_EMIT "enter" "";
282 }
283 program {
284 name: "button_enter";
285 signal: "enter";
286 source: "";
287 script {
288 run_program(PROGRAM:"go_active");
289 }
290 }
291 program {
292 name: "go_active";
293 action: STATE_SET "active" 0.0;
294 target: "glint1";
295 target: "glint2";
296 transition: LINEAR 0.05;
297 after: "go_active2";
298 after: "go_active2b";
299 }
300 program {
301 name: "go_active2";
302 action: STATE_SET "active2" 0.0;
303 target: "glint2";
304 transition: LINEAR 0.2;
305 after: "go_active3";
306 after: "go_active3b";
307 }
308 program {
309 name: "go_active2b";
310 action: STATE_SET "active" 0.0;
311 target: "glint3";
312 transition: LINEAR 0.2;
313 }
314 program {
315 name: "go_active3";
316 action: STATE_SET "active3" 0.0;
317 target: "glint2";
318 transition: LINEAR 0.05;
319 }
320 program {
321 name: "go_active3b";
322 action: STATE_SET "default" 0.0;
323 target: "glint3";
324 transition: LINEAR 0.1;
325 after: "go_active4";
326 }
327 program {
328 name: "go_active4";
329 action: STATE_SET "default" 0.0;
330 target: "glint1";
331 target: "glint2";
332 target: "glint3";
333 }
334 }
335}
diff --git a/data/themes/default_dialog.edc b/data/themes/default_dialog.edc
index 8e8539853..7de4b3503 100644
--- a/data/themes/default_dialog.edc
+++ b/data/themes/default_dialog.edc
@@ -453,157 +453,157 @@ group {
453 } 453 }
454 } 454 }
455 } 455 }
456 part { 456 part {
457 name: "glint_clip"; 457 name: "glint_clip";
458 type: RECT; 458 type: RECT;
459 mouse_events: 0; 459 mouse_events: 0;
460 description { 460 description {
461 state: "default" 0.0; 461 state: "default" 0.0;
462 color: 255 255 255 255; 462 color: 255 255 255 255;
463 rel1 { 463 rel1 {
464 relative: 0.0 0.0; 464 relative: 0.0 0.0;
465 offset: 3 3; 465 offset: 3 3;
466 } 466 }
467 rel2 { 467 rel2 {
468 relative: 1.0 1.0; 468 relative: 1.0 1.0;
469 offset: -4 -4; 469 offset: -4 -4;
470 } 470 }
471 } 471 }
472 }
473 part {
474 name: "glint1";
475 mouse_events: 0;
476 description {
477 state: "default" 0.0;
478 visible: 0;
479 color: 255 255 255 0;
480 align: 0.0 0.0;
481 max: 34 13;
482 rel1 {
483 relative: 0.0 0.0;
484 offset: 2 2;
485 }
486 rel2 {
487 relative: 1.0 1.0;
488 offset: -3 -3;
489 }
490 image {
491 normal: "e17_titlebar_glint1.png";
492 border: 5 0 5 0;
493 }
494 fill {
495 smooth: 0;
496 }
497 }
498 description {
499 state: "active" 0.0;
500 inherit: "default" 0.0;
501 visible: 1;
502 color: 255 255 255 255;
503 }
504 }
505 part {
506 name: "glint2";
507 mouse_events: 0;
508 clip_to: "glint_clip";
509 description {
510 state: "default" 0.0;
511 visible: 0;
512 color: 255 255 255 0;
513 align: 1.0 0.5;
514 max: 0 0;
515 rel1 {
516 relative: 0.0 0.0;
517 offset: 3 3;
518 }
519 rel2 {
520 relative: 0.0 1.0;
521 offset: 3 -4;
522 }
523 image {
524 normal: "e17_titlebar_glint2.png";
525 border: 0 0 5 5;
526 }
527 fill {
528 smooth: 0;
529 }
530 }
531 description {
532 state: "active" 0.0;
533 inherit: "default" 0.0;
534 visible: 1;
535 color: 255 255 255 255;
536 max: 169 9999;
537 min: 169 8;
538 align: 0.5 0.5;
539 }
540 description {
541 state: "active2" 0.0;
542 inherit: "default" 0.0;
543 visible: 1;
544 color: 255 255 255 128;
545 max: 169 9999;
546 min: 169 8;
547 align: 0.5 0.5;
548 rel1 {
549 relative: 1.0 0.0;
550 offset: -4 3;
551 }
552 rel2 {
553 relative: 1.0 1.0;
554 offset: -4 -4;
555 }
556 }
557 description {
558 state: "active3" 0.0;
559 inherit: "default" 0.0;
560 visible: 0;
561 color: 255 255 255 0;
562 max: 169 9999;
563 min: 169 8;
564 align: 0.0 0.5;
565 rel1 {
566 relative: 1.0 0.0;
567 offset: -4 3;
568 }
569 rel2 {
570 relative: 1.0 1.0;
571 offset: -4 -4;
572 }
573 }
574 }
575 part {
576 name: "glint3";
577 mouse_events: 0;
578 description {
579 state: "default" 0.0;
580 visible: 0;
581 color: 255 255 255 0;
582 align: 1.0 1.0;
583 max: 34 13;
584 rel1 {
585 relative: 0.0 0.0;
586 offset: 2 2;
587 }
588 rel2 {
589 relative: 1.0 1.0;
590 offset: -3 -3;
591 }
592 image {
593 normal: "e17_titlebar_glint3.png";
594 border: 0 5 0 5;
595 }
596 fill {
597 smooth: 0;
598 }
599 }
600 description {
601 state: "active" 0.0;
602 inherit: "default" 0.0;
603 visible: 1;
604 color: 255 255 255 255;
605 }
606 } 472 }
473 part {
474 name: "glint1";
475 mouse_events: 0;
476 description {
477 state: "default" 0.0;
478 visible: 0;
479 color: 255 255 255 0;
480 align: 0.0 0.0;
481 max: 34 13;
482 rel1 {
483 relative: 0.0 0.0;
484 offset: 2 2;
485 }
486 rel2 {
487 relative: 1.0 1.0;
488 offset: -3 -3;
489 }
490 image {
491 normal: "e17_titlebar_glint1.png";
492 border: 5 0 5 0;
493 }
494 fill {
495 smooth: 0;
496 }
497 }
498 description {
499 state: "active" 0.0;
500 inherit: "default" 0.0;
501 visible: 1;
502 color: 255 255 255 255;
503 }
504 }
505 part {
506 name: "glint2";
507 mouse_events: 0;
508 clip_to: "glint_clip";
509 description {
510 state: "default" 0.0;
511 visible: 0;
512 color: 255 255 255 0;
513 align: 1.0 0.5;
514 max: 0 0;
515 rel1 {
516 relative: 0.0 0.0;
517 offset: 3 3;
518 }
519 rel2 {
520 relative: 0.0 1.0;
521 offset: 3 -4;
522 }
523 image {
524 normal: "e17_titlebar_glint2.png";
525 border: 0 0 5 5;
526 }
527 fill {
528 smooth: 0;
529 }
530 }
531 description {
532 state: "active" 0.0;
533 inherit: "default" 0.0;
534 visible: 1;
535 color: 255 255 255 255;
536 max: 169 9999;
537 min: 169 8;
538 align: 0.5 0.5;
539 }
540 description {
541 state: "active2" 0.0;
542 inherit: "default" 0.0;
543 visible: 1;
544 color: 255 255 255 128;
545 max: 169 9999;
546 min: 169 8;
547 align: 0.5 0.5;
548 rel1 {
549 relative: 1.0 0.0;
550 offset: -4 3;
551 }
552 rel2 {
553 relative: 1.0 1.0;
554 offset: -4 -4;
555 }
556 }
557 description {
558 state: "active3" 0.0;
559 inherit: "default" 0.0;
560 visible: 0;
561 color: 255 255 255 0;
562 max: 169 9999;
563 min: 169 8;
564 align: 0.0 0.5;
565 rel1 {
566 relative: 1.0 0.0;
567 offset: -4 3;
568 }
569 rel2 {
570 relative: 1.0 1.0;
571 offset: -4 -4;
572 }
573 }
574 }
575 part {
576 name: "glint3";
577 mouse_events: 0;
578 description {
579 state: "default" 0.0;
580 visible: 0;
581 color: 255 255 255 0;
582 align: 1.0 1.0;
583 max: 34 13;
584 rel1 {
585 relative: 0.0 0.0;
586 offset: 2 2;
587 }
588 rel2 {
589 relative: 1.0 1.0;
590 offset: -3 -3;
591 }
592 image {
593 normal: "e17_titlebar_glint3.png";
594 border: 0 5 0 5;
595 }
596 fill {
597 smooth: 0;
598 }
599 }
600 description {
601 state: "active" 0.0;
602 inherit: "default" 0.0;
603 visible: 1;
604 color: 255 255 255 255;
605 }
606 }
607 607
608 FOCUS_RECT(0.0, 0.0, 1.0, 1.0, 7, 7, -8, -8) 608 FOCUS_RECT(0.0, 0.0, 1.0, 1.0, 7, 7, -8, -8)
609 } 609 }
@@ -636,6 +636,12 @@ group {
636 target: "icon_swallow"; 636 target: "icon_swallow";
637 } 637 }
638 program { 638 program {
639 name: "button_in";
640 signal: "mouse,in";
641 source: "button_image";
642 action: SIGNAL_EMIT "enter" "";
643 }
644 program {
639 name: "button_enter"; 645 name: "button_enter";
640 signal: "enter"; 646 signal: "enter";
641 source: ""; 647 source: "";