summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ewl.edc1526
1 files changed, 1031 insertions, 495 deletions
diff --git a/ewl.edc b/ewl.edc
index 539288f..41e3794 100644
--- a/ewl.edc
+++ b/ewl.edc
@@ -1,6 +1,10 @@
1/* EWL TODO: 1/* EWL TODO:
2 2
3FIXME: FORMATTING. 3FIXME: FORMATTING.
4FIXME: TEXT.
5FIXME: Describe group names within groups (eg. ewl/button/text)
6 Describe data{} items and padding
7
4 8
5Note: If adding parts, try to use nothing but B&W parts and images so that 9Note: If adding parts, try to use nothing but B&W parts and images so that
6 the themer can simply place this .edc file in the B&W dir and compile an 10 the themer can simply place this .edc file in the B&W dir and compile an
@@ -166,77 +170,140 @@ collections {
166 170
167 group { name: "ewl/blank"; } 171 group { name: "ewl/blank"; }
168 172
169 group { name: "ewl/dnd"; } // FORMERLY SPHERE-CURSOR 173 group { name: "ewl/dnd";
170 174 data {
171 group { name: "ewl/highlight"; } 175 item: "inset/top" "12";
176 item: "inset/left" "12";
177 item: "inset/bottom" "6";
178 item: "inset/right" "6";
179 }
180 images {
181 image: "pointer.png" COMP;
182 image: "pointer_glow.png" COMP;
183 }
184 parts {
185 part { name: "base";
186 mouse_events: 0;
187 description { state: "default" 0.0;
188 aspect: 0.71875 0.71875;
189 aspect_preference: BOTH;
190 image.normal: "pointer.png";
191 }
192 }
193 part { name: "glow";
194 mouse_events: 0;
195 description { state: "default" 0.0;
196 rel1.to: "base";
197 rel2.to: "base";
198 visible: 0;
199 color: 255 255 255 0;
200 image.normal: "pointer_glow.png";
201 }
202 description { state: "visible" 0.0;
203 inherit: "default" 0.0;
204 visible: 1;
205 color: 255 255 255 255;
206 }
207 }
208 programs {
209 program { name: "mouse_show";
210 signal: "show";
211 source: "";
212 action: STATE_SET "visible" 0.0;
213 transition: SINUSOIDAL 1.0;
214 target: "glow";
215 after: "mouse_show2";
216 }
217 program { name: "mouse_show2";
218 action: STATE_SET "default" 0.0;
219 transition: SINUSOIDAL 2.0;
220 target: "glow";
221 after: "mouse_show";
222 }
223 }
224 }
225 }
226
227 group { name: "ewl/highlight";
228 parts {
229 part { name: "highlight";
230 mouse_events: 0;
231 type: RECT;
232 description { state: "default" 0.0;
233 color: 200 0 0 90;
234 }
235 }
236 }
237 }
172 238
173 group { name: "ewl/shadow"; 239 group { name: "ewl/shadow";
174 data { 240 data {
175 item: "inset" 6; 241 item: "inset" 6;
176 item: "pad/left" 8; 242 item: "pad/left" 8;
177 item: "pad/top" 8; 243 item: "pad/top" 8;
178 } 244 }
179 images { image: "e17_mini_button_shadow2.png" COMP; } 245 images { image: "e17_mini_button_shadow2.png" COMP; }
180 parts { 246 parts {
181 part { name: "shadow"; 247 part { name: "shadow";
182 mouse_events: 0; 248 mouse_events: 0;
183 description { state: "default" 0.0; 249 description { state: "default" 0.0;
184 image { 250 image {
185 normal: "e17_mini_button_shadow2.png"; 251 normal: "e17_mini_button_shadow2.png";
186 border: 0 0 0 0; 252 border: 0 0 0 0;
187 } 253 }
188 } 254 }
189 } 255 }
190 } 256 }
191 } 257 }
192 258
193 group { name: "ewl/spacer"; 259 group { name: "ewl/spacer";
194 parts { part { 260 parts {
195 name: "base"; 261 part {
196 description { state: default 0.0; color: 0 0 0 0; } 262 name: "base";
197 } 263 description { state: default 0.0; color: 0 0 0 0; }
264 }
198 } 265 }
199 } 266 }
200 267
201 group { name: "ewl/separator/horizontal"; 268 group { name: "ewl/separator/horizontal";
202 images { image: "sb_runnerh.png" COMP; } 269 images { image: "sb_runnerh.png" COMP; }
203 parts { 270 parts {
204 part { name: "separator"; 271 part { name: "separator";
205 mouse_events: 0; 272 mouse_events: 0;
206 description { state: "default" 0.0; 273 description { state: "default" 0.0;
207 min: 16 3; 274 min: 16 3;
208 max: 10000 3; 275 max: 10000 3;
209 rel1.offset: 2 2; 276 rel1.offset: 2 2;
210 rel2.offset: -3 -3; 277 rel2.offset: -3 -3;
211 image { 278 image {
212 normal: "sb_runnerh.png"; 279 normal: "sb_runnerh.png";
213 border: 3 3 0 0; 280 border: 3 3 0 0;
214 } 281 }
215 fill.smooth: 0; 282 fill.smooth: 0;
216 } 283 }
217 } 284 }
218 } 285 }
219 } 286 }
220 287
221 group { name: "ewl/separator/vertical"; 288 group { name: "ewl/separator/vertical";
222 images { image: "sb_runnerv.png" COMP; } 289 images { image: "sb_runnerv.png" COMP; }
223 parts { 290 parts {
224 part { name: "separator"; 291 part { name: "separator";
225 mouse_events: 0; 292 mouse_events: 0;
226 description { state: "default" 0.0; 293 description { state: "default" 0.0;
227 min: 3 16; 294 min: 3 16;
228 max: 3 10000; 295 max: 3 10000;
229 rel1.offset: 2 2; 296 rel1.offset: 2 2;
230 rel2.offset: -3 -3; 297 rel2.offset: -3 -3;
231 image { 298 image {
232 normal: "sb_runnerv.png"; 299 normal: "sb_runnerv.png";
233 border: 0 0 3 3; 300 border: 0 0 3 3;
234 } 301 }
235 fill.smooth: 0; 302 fill.smooth: 0;
236 } 303 }
237 } 304 }
238 } 305 }
239 } 306 }
240 307
241 308
242/////////////////////////////////////////////////////// 309///////////////////////////////////////////////////////
@@ -244,259 +311,287 @@ collections {
244 311
245 group { name: "ewl/button/other"; } 312 group { name: "ewl/button/other"; }
246 313
247 group { name: "ewl/button/radio/item"; } 314 group { name: "ewl/button/radio/item";
315 images {
316 image: "radio_base.png" COMP;
317 image: "radio_on.png" COMP;
318 image: "radio_sel.png" COMP;
319 }
320 parts {
321 part { name: "base";
322 mouse_events: 0;
323 description { state: "default" 0.0;
324 min: 16 16;
325 max: 16 16;
326 image.normal: "radio_base.png";
327 }
328 }
329 part { name: "mark";
330 mouse_events: 0;
331 description { state: "default" 0.0;
332 rel1 {
333 to: "base";
334 offset: -5 -5;
335 }
336 rel2 {
337 to: "base";
338 offset: 4 4;
339 }
340 color: 0 0 0 0;
341 image.normal: "radio_on.png";
342 }
343 description { state: "selected" 0.0;
344 inherit: "default" 0.0;
345 rel1.offset: 0 0;
346 rel2.offset: -1 -1;
347 color: 255 255 255 255;
348 }
349 }
350 }
351 programs {
352 program { name: "on";
353 signal: "checked";
354 source: "EWL";
355 action: STATE_SET "selected" 0.0;
356 transition: LINEAR 0.15;
357 target: "mark";
358 }
359 program { name: "off";
360 signal: "default";
361 source: "EWL";
362 action: STATE_SET "default" 0.0;
363 transition: LINEAR 0.2;
364 target: "mark";
365 }
366 }
367 }
248 368
249 group { name: "ewl/button/check/item"; 369 group { name: "ewl/button/check/item";
250 images { 370 images {
251 image: "check_base.png" COMP; 371 image: "check_base.png" COMP;
252 image: "check_on.png" COMP; 372 image: "check_on.png" COMP;
253 image: "check_sel.png" COMP; 373 image: "check_sel.png" COMP;
254 } 374 }
255 parts { 375 parts {
256 part { name: "base"; 376 part { name: "base";
257 mouse_events: 0; 377 mouse_events: 0;
258 scale: 1; 378 description { state: "default" 0.0;
259 description { state: "default" 0.0; 379 min: 16 16;
260 min: 16 16; 380 max: 16 16;
261 max: 16 16; 381 align: 0.0 0.5;
262 align: 0.0 0.5; 382 fixed: 1 1;
263 fixed: 1 1; 383 rel1 {
264 rel1 { 384 relative: 0.0 0.0;
265 relative: 0.0 0.0; 385 offset: 2 2;
266 offset: 2 2; 386 }
267 } 387 rel2 {
268 rel2 { 388 relative: 0.0 1.0;
269 relative: 0.0 1.0; 389 offset: 2 -3;
270 offset: 2 -3; 390 }
271 } 391 image.normal: "check_base.png";
272 image.normal: "check_base.png"; 392 }
273 } 393 }
274 } 394 part { name: "mark";
275 part { name: "mark"; 395 mouse_events: 0;
276 mouse_events: 0; 396 description { state: "default" 0.0;
277 clip_to: "mark_hold"; 397 rel1 {
278 description { state: "default" 0.0; 398 to: "base";
279 rel1.to: "mark_hold"; 399 offset: -5 -5;
280 rel2.to: "mark_hold"; 400 }
281 image.normal: "check_on.png"; 401 rel2 {
282 } 402 to: "base";
283 description { state: "selected" 0.0; 403 offset: 4 4;
284 inherit: "default" 0.0; 404 }
285 image.normal: "check_sel.png"; 405 color: 255 255 255 0;
286 } 406 image.normal: "check_on.png";
287 } 407 }
288 part { name: "mark_hold"; 408 description { state: "selected" 0.0;
289 type: RECT; 409 inherit: "default" 0.0;
290 mouse_events: 0; 410 rel1.offset: 0 0;
291 description { state: "default" 0.0; 411 rel2.offset: -1 -1;
292 visible: 0; 412 color: 255 255 255 255;
293 color: 255 255 255 0; 413 }
294 rel1 { 414 }
295 to: "base";
296 offset: -5 -5;
297 }
298 rel2 {
299 to: "base";
300 offset: 4 4;
301 }
302 }
303 description { state: "on" 0.0;
304 inherit: "default" 0.0;
305 visible: 1;
306 color: 255 255 255 255;
307 rel1.offset: 0 0;
308 rel2.offset: -1 -1;
309 }
310 }
311 part { name: "event";
312 type: RECT;
313 ignore_flags: ON_HOLD;
314 description { state: "default" 0.0;
315 color: 0 0 0 0;
316 }
317 description { state: "disabled" 0.0;
318 inherit: "default" 0.0;
319 visible: 0;
320 }
321 }
322 } 415 }
323 programs { 416 programs {
324 program { name: "on"; 417 program { name: "on";
325 signal: "checked"; 418 signal: "checked";
326 source: "EWL"; 419 source: "EWL";
327 action: STATE_SET "on" 0.0; 420 action: STATE_SET "selected" 0.0;
328 transition: LINEAR 0.15; 421 transition: LINEAR 0.15;
329 target: "mark_hold"; 422 target: "mark";
330 } 423 }
331 program { name: "off"; 424 program { name: "off";
332 signal: "default"; 425 signal: "default";
333 source: "EWL"; 426 source: "EWL";
334 action: STATE_SET "default" 0.0; 427 action: STATE_SET "default" 0.0;
335 transition: LINEAR 0.2; 428 transition: LINEAR 0.2;
336 target: "mark_hold"; 429 target: "mark";
337 } 430 }
338 } 431 }
339 } 432 }
340 433
341 group { name: "ewl/button"; 434 group { name: "ewl/button";
342 data { 435 data {
343 item: "inset" 5; 436 item: "inset" 5;
344 item: "inset/left" 14; 437 item: "inset/left" 14;
345 item: "inset/right" 14; 438 item: "inset/right" 14;
346 item: "pad" 2; 439 item: "pad" 2;
347 } 440 }
348 images { 441 images {
349 image: "bt_base1.png" COMP; 442 image: "bt_base1.png" COMP;
350 image: "bt_base2.png" COMP; 443 image: "bt_base2.png" COMP;
351 image: "bt_hilight.png" COMP; 444 image: "bt_hilight.png" COMP;
352 image: "bt_shine.png" COMP; 445 image: "bt_shine.png" COMP;
353 image: "bt_glow.png" COMP; 446 image: "bt_glow.png" COMP;
354 image: "bt_dis_base.png" COMP; 447 image: "bt_dis_base.png" COMP;
355 image: "bt_dis_hilight.png" COMP; 448 image: "bt_dis_hilight.png" COMP;
356 } 449 }
357 parts { 450 parts {
358 part { name: "button_image"; 451 part { name: "button_image";
359 mouse_events: 1; 452 mouse_events: 1;
360 description { state: "default" 0.0; 453 description { state: "default" 0.0;
361 min: 32 16; 454 min: 32 16;
362 image { 455 image {
363 normal: "bt_base2.png"; 456 normal: "bt_base2.png";
364 border: 7 7 7 7; 457 border: 7 7 7 7;
365 } 458 }
366 } 459 }
367 description { state: "clicked" 0.0; 460 description { state: "clicked" 0.0;
368 inherit: "default" 0.0; 461 inherit: "default" 0.0;
369 image.normal: "bt_base1.png"; 462 image.normal: "bt_base1.png";
370 } 463 }
371 description { state: "disabled" 0.0; 464 description { state: "disabled" 0.0;
372 inherit: "default" 0.0; 465 inherit: "default" 0.0;
373 image { 466 image {
374 normal: "bt_dis_base.png"; 467 normal: "bt_dis_base.png";
375 border: 4 4 4 4; 468 border: 4 4 4 4;
376 } 469 }
377 } 470 }
378 } 471 }
379 part { name: "ewl/button/text"; // WHATS THIS!? 472 part { name: "ewl/button/text";
380 type: TEXT; 473 type: TEXT;
381 effect: NONE; 474 effect: NONE;
382 description { state: "default" 0.0; 475 description { state: "default" 0.0;
383 align: 0.5 0.5; 476 align: 0.5 0.5;
384 text { 477 text {
385 text: "text"; 478 text: "Enabled";
386 font: "Sans"; 479 font: "Sans";
387 size: 10; 480 size: 10;
388 min: 0 1; 481 min: 0 1;
389 max: 1 1; 482 max: 1 1;
390 align: 0.0 0.5; 483 align: 0.0 0.5;
391 } 484 }
392 color: 255 255 255 255; 485 color: 255 255 255 255;
393 } 486 }
394 description { state: "disabled" 0.0; 487 description { state: "disabled" 0.0;
395 align: 0.5 0.5; 488 align: 0.5 0.5;
396 text { 489 text {
397 text: "text"; 490 text: "Disabled";
398 font: "Sans"; 491 font: "Sans";
399 size: 10; 492 size: 10;
400 min: 0 1; 493 min: 0 1;
401 max: 1 1; 494 max: 1 1;
402 align: 0.0 0.5; 495 align: 0.0 0.5;
403 } 496 }
404 color: 0 0 0 32; 497 color: 0 0 0 32;
405 } 498 }
406 } 499 }
407 part { name: "over1"; 500 part { name: "over1";
408 mouse_events: 0; 501 mouse_events: 0;
409 description { state: "default" 0.0; 502 description { state: "default" 0.0;
410 rel2.relative: 1.0 0.5; 503 rel2.relative: 1.0 0.5;
411 image { 504 image {
412 normal: "bt_hilight.png"; 505 normal: "bt_hilight.png";
413 border: 7 7 7 0; 506 border: 7 7 7 0;
414 } 507 }
415 } 508 }
416 description { state: "disabled" 0.0; 509 description { state: "disabled" 0.0;
417 inherit: "default" 0.0; 510 inherit: "default" 0.0;
418 image { 511 image {
419 normal: "bt_dis_hilight.png"; 512 normal: "bt_dis_hilight.png";
420 border: 4 4 4 0; 513 border: 4 4 4 0;
421 } 514 }
422 } 515 }
423 } 516 }
424 part { name: "over2"; 517 part { name: "over2";
425 mouse_events: 0; 518 mouse_events: 0;
426 description { state: "default" 0.0; 519 description { state: "default" 0.0;
427 image { 520 image {
428 normal: "bt_shine.png"; 521 normal: "bt_shine.png";
429 border: 7 7 7 7; 522 border: 7 7 7 7;
430 } 523 }
431 } 524 }
432 description { state: "disabled" 0.0; 525 description { state: "disabled" 0.0;
433 inherit: "default" 0.0; 526 inherit: "default" 0.0;
434 visible: 0; 527 visible: 0;
435 } 528 }
436 } 529 }
437 part { name: "over3"; 530 part { name: "over3";
438 mouse_events: 0; 531 mouse_events: 0;
439 description { state: "default" 0.0; 532 description { state: "default" 0.0;
440 visible: 0; 533 visible: 0;
441 color: 255 255 255 0; 534 color: 255 255 255 0;
442 image { 535 image {
443 normal: "bt_glow.png"; 536 normal: "bt_glow.png";
444 border: 12 12 12 12; 537 border: 12 12 12 12;
445 } 538 }
446 } 539 }
447 description { state: "clicked" 0.0; 540 description { state: "clicked" 0.0;
448 inherit: "default" 0.0; 541 inherit: "default" 0.0;
449 visible: 1; 542 visible: 1;
450 color: 255 255 255 255; 543 color: 255 255 255 255;
451 } 544 }
452 } 545 }
453 part { name: "disabler"; 546 part { name: "disabler";
454 type: RECT; 547 type: RECT;
455 description { state: "default" 0.0; 548 description { state: "default" 0.0;
456 color: 0 0 0 0; 549 color: 0 0 0 0;
457 visible: 0; 550 visible: 0;
458 } 551 }
459 description { state: "disabled" 0.0; 552 description { state: "disabled" 0.0;
460 inherit: "default" 0.0; 553 inherit: "default" 0.0;
461 visible: 1; 554 visible: 1;
462 } 555 }
463 } 556 }
464 } 557 }
465 programs { 558 programs {
466 program { 559 program {
467 name: "button_click"; 560 name: "button_click";
468 signal: "mouse,down,1"; 561 signal: "mouse,down,1";
469 source: "button_image"; 562 source: "button_image";
470 action: STATE_SET "clicked" 0.0; 563 action: STATE_SET "clicked" 0.0;
471 target: "button_image"; 564 target: "button_image";
472 target: "over3"; 565 target: "over3";
473 } 566 }
474 program { 567 program {
475 name: "button_unclick"; 568 name: "button_unclick";
476 signal: "mouse,up,1"; 569 signal: "mouse,up,1";
477 source: "button_image"; 570 source: "button_image";
478 action: STATE_SET "default" 0.0; 571 action: STATE_SET "default" 0.0;
479 target: "button_image"; 572 target: "button_image";
480 target: "over3"; 573 target: "over3";
481 } 574 }
482 program { 575 program {
483 name: "disable"; 576 name: "disable";
484 signal: "disabled"; 577 signal: "disabled";
485 source: "EWL"; 578 source: "EWL";
486 action: STATE_SET "disabled" 0.0; 579 action: STATE_SET "disabled" 0.0;
487 target: "button_image"; 580 target: "button_image";
488 target: "over1"; 581 target: "over1";
489 target: "disabler"; 582 target: "disabler";
490 } 583 target: "ewl/button/text";
491 program { 584 }
492 name: "enable"; 585 program {
493 signal: "enabled"; 586 name: "enable";
494 source: "EWL"; 587 signal: "enabled";
495 action: STATE_SET "default" 0.0; 588 source: "EWL";
496 target: "button_image"; 589 action: STATE_SET "default" 0.0;
497 target: "over1"; 590 target: "button_image";
498 target: "disabler"; 591 target: "over1";
499 } 592 target: "disabler";
593 target: "ewl/button/text";
594 }
500 } 595 }
501 } 596 }
502 597
@@ -506,151 +601,148 @@ collections {
506 601
507 group { name: "ewl/label"; 602 group { name: "ewl/label";
508 parts { 603 parts {
509 part { name: "ewl/label/text"; 604 part { name: "ewl/label/text";
510 type: TEXT; 605 type: TEXT;
511 effect: NONE; 606 effect: NONE;
512 description { state: "default" 0.0; 607 description { state: "default" 0.0;
513 align: 0.5 0.5; 608 align: 0.5 0.5;
514 text { 609 text {
515 text: "text"; 610 font: "Sans";
516 font: "Sans"; 611 size: 10;
517 size: 10; 612 min: 0 1;
518 min: 0 1; 613 max: 1 1;
519 max: 1 1; 614 align: 0.0 0.5;
520 align: 0.0 0.5; 615 }
521 } 616 color: 0 0 0 255;
522 color: 0 0 0 255; 617 }
523 } 618 }
524 } 619 part { name: "size_giver";
525 part { name: "size_giver"; 620 type: TEXT;
526 type: TEXT; 621 effect: SOFT_SHADOW;
527 effect: SOFT_SHADOW; 622 description {
528 description { 623 state: "default" 0.0;
529 state: "default" 0.0; 624 visible: 0;
530 visible: 0; 625 align: 0.0 0.5;
531 align: 0.0 0.5; 626 text {
532 text { 627 font: "Sans";
533 font: "Sans"; 628 text_source: "ewl/label/text";
534 text_source: "ewl/label/text"; 629 size: 10;
535 size: 10; 630 min: 1 1;
536 min: 1 1; 631 align: 0.0 0.5;
537 align: 0.0 0.5; 632 }
538 } 633 }
539 } 634 }
540 }
541 } 635 }
542 } 636 }
543 637
544 group { name: "ewl/entry"; 638 group { name: "ewl/entry";
545 data { 639 data {
546 item: "inset" 2; 640 item: "inset" 2;
547 item: "inset/left" 6; 641 item: "inset/left" 6;
548 item: "pad" 1; 642 item: "pad" 1;
549 } 643 }
550 images.image: "inset_sunk.png" COMP; 644 images.image: "inset_sunk.png" COMP;
551 parts { 645 parts {
552 part { name: "base"; 646 part { name: "base";
553 type: RECT; 647 type: RECT;
554 description { state: "default" 0.0; 648 description { state: "default" 0.0;
555 rel1.offset: 1 1; 649 rel1.offset: 1 1;
556 rel2.offset: -2 -2; 650 rel2.offset: -2 -2;
557 color: 255 255 255 255; 651 color: 255 255 255 255;
558 } 652 }
559 } 653 }
560 part { name: "text"; 654 part { name: "text";
561 type: TEXT; 655 type: TEXT;
562 effect: NONE; 656 effect: NONE;
563 description { state: "default" 0.0; 657 description { state: "default" 0.0;
564 align: 0.5 0.5; 658 align: 0.5 0.5;
565 text { 659 text {
566 font: "Sans"; 660 font: "Sans";
567 size: 10; 661 size: 10;
568 min: 0 1; 662 min: 0 1;
569 max: 1 1; 663 max: 1 1;
570 align: 0.0 0.5; 664 align: 0.0 0.5;
571 } 665 }
572 color: 255 0 0 255; 666 color: 0 0 0 255;
573 } 667 }
574 } 668 }
575 part { name: "overlay"; 669 part { name: "overlay";
576 description { state: "default" 0.0; 670 description { state: "default" 0.0;
577 image { 671 image {
578 normal: "inset_sunk.png"; 672 normal: "inset_sunk.png";
579 border: 7 7 7 7; 673 border: 7 7 7 7;
580 middle: 0; 674 middle: 0;
581 } 675 }
582 fill.smooth : 0; 676 fill.smooth : 0;
583 } 677 }
584 } 678 }
585 } 679 }
586 } 680 }
587 681
588 group { name: "ewl/entry/cursor"; 682 group { name: "ewl/entry/cursor";
589 min: 1 0; 683 min: 1 0;
590 parts { 684 parts {
591 part { name: "cursor"; 685 part { name: "cursor";
592 type: RECT; 686 type: RECT;
593 description { state: "default" 0.0; 687 description { state: "default" 0.0;
594 rel1.offset: 1 0; 688 rel1.offset: 1 0;
595 rel2.offset: 0 -1; 689 rel2.offset: 0 -1;
596 color: 0 0 0 0; 690 color: 0 0 0 0;
597 } 691 }
598 description { state: "visible" 0.0; 692 description { state: "visible" 0.0;
599 inherit: "default" 0.0; 693 inherit: "default" 0.0;
600 color: 0 0 0 255; 694 color: 0 0 0 255;
601 } 695 }
602 } 696 }
603 } 697 }
604 programs { 698 programs {
605 program { name: "on_cursor_show"; 699 program { name: "on_cursor_show";
606 signal: "show"; 700 signal: "show";
607 source: ""; 701 source: "";
608 action: ACTION_STOP; 702 action: ACTION_STOP;
609 target: "cursor_show"; 703 target: "cursor_show";
610 target: "cursor_hide"; 704 target: "cursor_hide";
611 target: "cursor_show_timer"; 705 target: "cursor_show_timer";
612 target: "cursor_hide_timer"; 706 target: "cursor_hide_timer";
613 after: "cursor_show"; 707 after: "cursor_show";
614 } 708 }
615 program { name: "cursor_show"; 709 program { name: "cursor_show";
616 action: STATE_SET "visible" 0.0; 710 action: STATE_SET "visible" 0.0;
617 target: "cursor"; 711 target: "cursor";
618 after: "cursor_show_timer"; 712 after: "cursor_show_timer";
619 } 713 }
620 program { name: "cursor_hide"; 714 program { name: "cursor_hide";
621 action: STATE_SET "default" 0.0; 715 action: STATE_SET "default" 0.0;
622 target: "cursor"; 716 target: "cursor";
623 transition: SINUSOIDAL 0.2; 717 transition: SINUSOIDAL 0.2;
624 after: "cursor_hide_timer"; 718 after: "cursor_hide_timer";
625 } 719 }
626 program { name: "cursor_show_timer"; 720 program { name: "cursor_show_timer";
627 in: 0.55 0.0; 721 in: 0.55 0.0;
628 after: "cursor_hide"; 722 after: "cursor_hide";
629 } 723 }
630 program { name: "cursor_hide_timer"; 724 program { name: "cursor_hide_timer";
631 in: 0.2 0.0; 725 in: 0.2 0.0;
632 after: "cursor_show"; 726 after: "cursor_show";
633 } 727 }
634 program { name: "off_cursor"; 728 program { name: "off_cursor";
635 signal: "noblink"; 729 signal: "noblink";
636 source: "EWL"; 730 source: "EWL";
637 action: ACTION_STOP; 731 action: ACTION_STOP;
638 target: "cursor_show"; 732 target: "cursor_show";
639 target: "cursor_hide"; 733 target: "cursor_hide";
640 target: "cursor_show_timer"; 734 target: "cursor_show_timer";
641 target: "cursor_hide_timer"; 735 target: "cursor_hide_timer";
642 } 736 }
643 } 737 }
644 } 738 }
645 739
646 group { name: "ewl/entry/selection"; 740 group { name: "ewl/entry/selection";
647 parts { 741 parts {
648 part { name: "selection"; 742 part { name: "selection";
649 type: RECT; 743 type: RECT;
650 description { state: default 0.0; 744 description { state: default 0.0; color: 164 164 164 100; }
651 color: 164 164 164 100; 745 }
652 }
653 }
654 } 746 }
655 } 747 }
656 748
@@ -681,95 +773,336 @@ collections {
681 /*** DIALOG & WINDOW ***/ 773 /*** DIALOG & WINDOW ***/
682 774
683 group { 775 group {
684 name: "ewl/dialog"; 776 name: "ewl/dialog";
685 alias: "ewl/window";
686 images { 777 images {
687 image: "dia_grad.png" COMP; 778 image: "dia_grad.png" COMP;
688 image: "dia_topshad.png" COMP; 779 image: "dia_topshad.png" COMP;
689 image: "dia_botshad.png" COMP; 780 image: "dia_botshad.png" COMP;
690 image: "menu_sep.png" COMP;
691 } 781 }
692 parts { 782 parts {
693 part { name: "base"; 783 part { name: "base";
694 mouse_events: 0; 784 mouse_events: 0;
695 description { state: "default" 0.0; 785 description { state: "default" 0.0;
696 image.normal: "dia_grad.png"; 786 image.normal: "dia_grad.png";
697 fill { 787 fill {
698 smooth: 0; 788 smooth: 0;
699 size { 789 size {
700 relative: 0.0 1.0; 790 relative: 0.0 1.0;
701 offset: 64 0; 791 offset: 64 0;
702 } 792 }
703 } 793 }
704 } 794 }
705 } 795 }
706 part { name: "shadow"; 796 part { name: "shadow";
707 mouse_events: 0; 797 mouse_events: 0;
708 description { state: "default" 0.0; 798 description { state: "default" 0.0;
709 rel2.relative: 1.0 0.0; 799 rel2.relative: 1.0 0.0;
710 rel2.offset: -1 31; 800 rel2.offset: -1 31;
711 image.normal: "dia_topshad.png"; 801 image.normal: "dia_topshad.png";
712 fill { 802 fill {
713 smooth: 0; 803 smooth: 0;
714 size { 804 size {
715 relative: 0.0 1.0; 805 relative: 0.0 1.0;
716 offset: 64 0; 806 offset: 64 0;
717 } 807 }
718 } 808 }
719 } 809 }
720 } 810 }
721 part { name: "shadow2"; 811 part { name: "shadow2";
722 mouse_events: 0; 812 mouse_events: 0;
723 description { state: "default" 0.0; 813 description { state: "default" 0.0;
724 rel1.relative: 0.0 1.0; 814 rel1.relative: 0.0 1.0;
725 rel1.offset: 0 -4; 815 rel1.offset: 0 -4;
726 image.normal: "dia_botshad.png"; 816 image.normal: "dia_botshad.png";
727 fill { 817 fill {
728 smooth: 0; 818 smooth: 0;
729 size { 819 size {
730 relative: 0.0 1.0; 820 relative: 0.0 1.0;
731 offset: 64 0; 821 offset: 64 0;
732 } 822 }
733 } 823 }
734 } 824 }
735 } 825 }
736 } 826 }
737 } 827 }
738 828
829 group { name: "ewl/window";
830 images { image: "base_bg.png" COMP; }
831 parts {
832 part { name: "base";
833 mouse_events: 0;
834 description { state: "default" 0.0;
835 align: 0.5 0.0;
836 image {
837 normal: "base_bg.png";
838 border: 2 2 2 2;
839 }
840 fill.smooth: 0;
841 }
842 }
843 }
844 }
845
739 group { name: "ewl/dialog/actionarea"; 846 group { name: "ewl/dialog/actionarea";
847 images { image: "menu_sep.png" COMP; }
740 min: 315 12; 848 min: 315 12;
741 data { 849 data {
742 item: "inset/top" 10; 850 item: "inset/top" 10;
743 item: "inset/bottom" 2; 851 item: "inset/bottom" 2;
744 } 852 }
745 parts { 853 parts {
746 part { name: "separator"; 854 part { name: "separator";
747 mouse_events: 0; 855 mouse_events: 0;
748 description { state: "default" 0.0; 856 description { state: "default" 0.0;
749 image { 857 image {
750 normal: "menu_sep.png"; 858 normal: "menu_sep.png";
751 border: 2 2 0 0; 859 border: 2 2 0 0;
752 } 860 }
753 fill.smooth: 0; 861 fill.smooth: 0;
754 } 862 }
755 } 863 }
756 } 864 }
757 } 865 }
758 866
759 group { name: "ewl/icondialog/box"; } 867 group { name: "ewl/icondialog/box";
868 data {
869 item: "inset" 16;
870 item: "inset/bottom" 0;
871 }
872 }
760 873
761 group { name: "ewl/icondialog/icon"; } 874 group { name: "ewl/icondialog/icon";
875 data { item: "pad/right" 8; }
876 }
762 877
763 878
764/////////////////////////////////////////////////////// 879///////////////////////////////////////////////////////
765 /*** MENU ***/ 880 /*** MENU ***/
766 881
767 group { name: "ewl/menu"; } 882 group { name: "ewl/menu";
768 883 images { image: "base_bg.png" COMP; }
769 group { name: "ewl/menu/item"; } 884 parts {
770 885 part { name: "base";
771 group { name: "ewl/menu/subitem"; } 886 mouse_events: 0;
772 887 description { state: "default" 0.0;
888 align: 0.5 0.0;
889 image {
890 normal: "base_bg.png";
891 border: 2 2 2 2;
892 }
893 fill.smooth: 0;
894 }
895 }
896 }
897 }
898
899 group { name: "ewl/menu/item";
900 images {
901 image: "menu_sel_bg.png" COMP;
902 image: "menu_sel_fg.png" COMP;
903 }
904 data {
905 item: "pad" 0;
906 item: "inset" 0;
907 item: "inset/right" 8;
908 }
909 parts {
910 part { name: "bg";
911 mouse_events: 0;
912 description { state: "default" 0.0;
913 visible: 0;
914 color: 255 255 255 0;
915 rel1.offset: 3 3;
916 rel2.offset: -4 -4;
917 image {
918 normal: "menu_sel_bg.png";
919 border: 8 8 5 9;
920 }
921 }
922 description { state: "selected" 0.0;
923 inherit: "default" 0.0;
924 visible: 1;
925 color: 255 255 255 255;
926 rel1.offset: 0 0;
927 rel2.offset: -1 -1;
928 }
929 }
930 part { name: "ewl/label/text";
931 type: TEXT;
932 mouse_events: 0;
933 repeat_events: 1;
934 description { state: "default" 0.0;
935 rel1.offset: 7 7;
936 rel2.offset: -12 -8;
937 color: 0 0 0 255;
938 text {
939 text: "text";
940 font: "Sans";
941 size: 10;
942 min: 1 1;
943 align: 0.0 0.5;
944 }
945 }
946 description { state: "selected" 0.0;
947 inherit: "default" 0.0;
948 color: 200 200 200 255;
949 }
950 }
951 part { name: "fg";
952 mouse_events: 0;
953 description { state: "default" 0.0;
954 visible: 0;
955 color: 255 255 255 0;
956 rel1.to: "bg";
957 rel2.to: "bg";
958 image {
959 normal: "menu_sel_fg.png";
960 border: 8 8 5 9;
961 }
962 }
963 description { state: "selected" 0.0;
964 inherit: "default" 0.0;
965 visible: 1;
966 color: 255 255 255 255;
967 }
968 }
969 }
970 programs {
971 program {
972 name: "selected";
973 signal: "focus,in";
974 source: "*";
975 action: STATE_SET "selected" 0.0;
976 transition: LINEAR 0.2;
977 target: "bg";
978 target: "fg";
979 target: "ewl/label/text";
980 }
981 program {
982 name: "deselected";
983 signal: "focus,out";
984 source: "*";
985 action: STATE_SET "default" 0.0;
986 transition: LINEAR 0.1;
987 target: "bg";
988 target: "fg";
989 target: "ewl/label/text";
990 }
991 }
992 }
993
994 group { name: "ewl/menu/subitem";
995 images {
996 image: "menu_sel_bg.png" COMP;
997 image: "menu_sel_fg.png" COMP;
998 image: "menu_arrow_normal.png" COMP;
999 image: "menu_arrow_sel.png" COMP;
1000 }
1001 data {
1002 item: "pad" 0;
1003 item: "inset" 0;
1004 item: "inset/right" 8;
1005 }
1006 parts {
1007 part { name: "bg";
1008 mouse_events: 0;
1009 description { state: "default" 0.0;
1010 visible: 0;
1011 color: 255 255 255 0;
1012 rel1.offset: 3 3;
1013 rel2.offset: -4 -4;
1014 image {
1015 normal: "menu_sel_bg.png";
1016 border: 8 8 5 9;
1017 }
1018 }
1019 description { state: "selected" 0.0;
1020 inherit: "default" 0.0;
1021 visible: 1;
1022 color: 255 255 255 255;
1023 rel1.offset: 0 0;
1024 rel2.offset: -1 -1;
1025 }
1026 }
1027 part { name: "ewl/label/text";
1028 type: TEXT;
1029 mouse_events: 0;
1030 repeat_events: 1;
1031 description { state: "default" 0.0;
1032 rel1.offset: 8 6;
1033 rel2.offset: -12 -6;
1034 color: 0 0 0 255;
1035 text {
1036 text: "text";
1037 font: "Sans";
1038 size: 10;
1039 min: 1 1;
1040 align: 0.0 0.5;
1041 }
1042 }
1043 description { state: "selected" 0.0;
1044 inherit: "default" 0.0;
1045 color: 200 200 200 255;
1046 }
1047 }
1048 part { name: "arrow";
1049 mouse_events: 0;
1050 description { state: "default" 0.0;
1051 min: 9 12;
1052 max: 9 12;
1053 align: 1.0 0.5;
1054 rel2.offset: -3 -1;
1055 image.normal: "menu_arrow_normal.png";
1056 }
1057 description { state: "selected" 0.0;
1058 inherit: "default" 0.0;
1059 image.normal: "menu_arrow_sel.png";
1060 }
1061 }
1062 part { name: "fg";
1063 mouse_events: 0;
1064 description { state: "default" 0.0;
1065 visible: 0;
1066 color: 255 255 255 0;
1067 rel1.to: "bg";
1068 rel2.to: "bg";
1069 image {
1070 normal: "menu_sel_fg.png";
1071 border: 8 8 5 9;
1072 }
1073 }
1074 description { state: "selected" 0.0;
1075 inherit: "default" 0.0;
1076 visible: 1;
1077 color: 255 255 255 255;
1078 }
1079 }
1080 }
1081 programs {
1082 program {
1083 name: "selected";
1084 signal: "focus,in";
1085 source: "*";
1086 action: STATE_SET "selected" 0.0;
1087 transition: LINEAR 0.2;
1088 target: "bg";
1089 target: "fg";
1090 target: "arrow";
1091 target: "ewl/label/text";
1092 }
1093 program {
1094 name: "deselected";
1095 signal: "focus,out";
1096 source: "*";
1097 action: STATE_SET "default" 0.0;
1098 transition: LINEAR 0.1;
1099 target: "bg";
1100 target: "fg";
1101 target: "arrow";
1102 target: "ewl/label/text";
1103 }
1104 }
1105 }
773 1106
774/////////////////////////////////////////////////////// 1107///////////////////////////////////////////////////////
775 /*** PROGRESSBAR ***/ 1108 /*** PROGRESSBAR ***/
@@ -824,14 +1157,118 @@ collections {
824 1157
825/////////////////////////////////////////////////////// 1158///////////////////////////////////////////////////////
826 /*** TREE ***/ 1159 /*** TREE ***/
827 1160 group {
828 group { name: "ewl/tree"; } 1161 name: "ewl/tree";
1162 data { item: "inset" 8; }
1163 images {
1164 image: "frame_1.png" COMP;
1165 image: "frame_2.png" COMP;
1166 image: "dia_grad.png" COMP;
1167 }
1168 parts {
1169 part { name: "base0";
1170 mouse_events: 0;
1171 description { state: "default" 0.0;
1172 image.normal: "dia_grad.png";
1173 rel1.to: "over";
1174 rel2.to: "over";
1175 fill {
1176 smooth: 0;
1177 size {
1178 relative: 0.0 1.0;
1179 offset: 64 0;
1180 }
1181 }
1182 }
1183 }
1184 part { name: "base";
1185 mouse_events: 0;
1186 description { state: "default" 0.0;
1187 image {
1188 normal: "frame_2.png";
1189 border: 5 5 32 26;
1190 middle: 0;
1191 }
1192 fill.smooth : 0;
1193 }
1194 }
1195 part { name: "over";
1196 mouse_events: 0;
1197 description { state: "default" 0.0;
1198 rel1.offset: 4 4;
1199 rel2.offset: -5 -5;
1200 image {
1201 normal: "frame_1.png";
1202 border: 2 2 28 22;
1203 middle: 0;
1204 }
1205 fill.smooth : 0;
1206 }
1207 }
1208 }
1209 }
829 1210
830 group { name: "ewl/tree/scrollpane/background"; } 1211 group { name: "ewl/tree/scrollpane/background"; }
831 1212
832 group { name: "ewl/tree/vbox"; } 1213 group { name: "ewl/tree/vbox";
833 1214 data { item: "inset" 1; } }
834 group { name: "ewl/tree/expansion"; } 1215
1216 group { name: "ewl/tree/expansion";
1217 images {
1218 image: "icon_right_arrow.png" COMP;
1219 image: "icon_down_arrow.png" COMP;
1220 }
1221 min: 16 16;
1222 parts {
1223 part { name: "clip";
1224 type: RECT;
1225 mouse_events: 1;
1226 description { state: "default" 0.0; visible: 1; }
1227 description { state: "hidden" 0.0; visible: 0; }
1228 }
1229 part { name: "expansion";
1230 mouse_events: 1;
1231 clip_to: "clip";
1232 description { state: "default" 0.0;
1233 max: 13 16;
1234 image.normal: "icon_right_arrow.png";
1235 }
1236 description { state: "open" 0.0;
1237 inherit: "default" 0.0;
1238 max: 16 13;
1239 image.normal: "icon_down_arrow.png";
1240 }
1241 }
1242 }
1243 programs {
1244 program { name: "expandable";
1245 signal: "expandable";
1246 source: "*";
1247 action: STATE_SET "default" 0.0;
1248 target: "clip";
1249 }
1250 program { name: "nonexpandable";
1251 signal: "nonexpandable";
1252 source: "*";
1253 action: STATE_SET "hidden" 0.0;
1254 target: "clip";
1255 }
1256 program { name: "collapsed";
1257 signal: "default";
1258 source: "*";
1259 action: STATE_SET "default" 0.0;
1260 transition: LINEAR 0.0;
1261 target: "expansion";
1262 }
1263 program { name: "expand";
1264 signal: "checked";
1265 source: "*";
1266 action: STATE_SET "open" 0.0;
1267 transition: LINEAR 0.0;
1268 target: "expansion";
1269 }
1270 }
1271 }
835 1272
836 group { name: "ewl/tree/header"; } 1273 group { name: "ewl/tree/header"; }
837 1274
@@ -839,12 +1276,111 @@ collections {
839 1276
840 group { name: "ewl/tree/header/normal"; } 1277 group { name: "ewl/tree/header/normal"; }
841 1278
842 group { name: "ewl/row"; } 1279/* FIXME: Not finished */
843 1280
844 group { name: "ewl/tree/cell"; } 1281 group { name: "ewl/row";
845 1282 parts {
846 1283 part { name: "bg";
847 1284 type: RECT;
1285 mouse_events: 0;
1286 description { state: "default" 0.0;
1287 color: 255 255 255 255;
1288 min: 5 19;
1289 }
1290 description { state: "even" 0.0;
1291 inherit: "default" 0.0;
1292 color: 200 200 200 32;
1293 }
1294 }
1295 part { name: "selected";
1296 mouse_events: 0;
1297 type: RECT;
1298 description { state: "default" 0.0;
1299 rel1.offset: -4 -4;
1300 rel2.offset: 3 3;
1301 color: 0 0 0 0;
1302 }
1303 description { state: "selected" 0.0;
1304 inherit: "default" 0.0;
1305 color: 100 100 100 128;
1306 }
1307 }
1308 }
1309 programs {
1310 program { name: "odd";
1311 signal: "odd";
1312 source: "*";
1313 action: STATE_SET "default" 0.0;
1314 transition: LINEAR 0.0;
1315 target: "bg";
1316 }
1317 program { name: "even";
1318 signal: "even";
1319 source: "*";
1320 action: STATE_SET "even" 0.0;
1321 transition: LINEAR 0.0;
1322 target: "bg";
1323 }
1324 program { name: "select";
1325 signal: "selected";
1326 source: "*";
1327 action: STATE_SET "selected" 0.0;
1328 transition: DECELERATE 0.1;
1329 target: "selected";
1330 }
1331 program { name: "un-select";
1332 signal: "deselect";
1333 source: "*";
1334 action: STATE_SET "default" 0.0;
1335 transition: ACCELERATE 0.2;
1336 target: "selected";
1337 }
1338 /* *** Enable for mouse-over hilighting ***
1339 program { name: "highlight";
1340 signal: "highlight,on";
1341 source: "EWL";
1342 }
1343 program { name: "un-highlight";
1344 signal: "highlight,off";
1345 source: "EWL";
1346 }
1347 */
1348 }
1349 }
1350
1351 group { name: "ewl/tree/cell";
1352 parts {
1353 part { name: "selected";
1354 mouse_events: 0;
1355 type: RECT;
1356 description { state: "default" 0.0;
1357 rel1.offset: -4 -4;
1358 rel2.offset: 3 3;
1359 color: 0 0 0 0;
1360 }
1361 description { state: "selected" 0.0;
1362 inherit: "default" 0.0;
1363 color: 100 100 100 128;
1364 }
1365 }
1366 }
1367 programs {
1368 program { name: "select";
1369 signal: "selected";
1370 source: "*";
1371 action: STATE_SET "selected" 0.0;
1372 transition: LINEAR 0.1;
1373 target: "selected";
1374 }
1375 program { name: "deselect";
1376 signal: "deselect";
1377 source: "*";
1378 action: STATE_SET "default" 0.0;
1379 transition: LINEAR 0.2;
1380 target: "selected";
1381 }
1382 }
1383 }
848} 1384}
849 1385
850 1386