summaryrefslogtreecommitdiff
path: root/data/elementary/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-28 23:22:48 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-28 23:22:48 +0000
commit2b942b6b87904af6c325851bf79f2fe7c403d082 (patch)
treec9a3c59ce8c0adb9e7f7e63811a2ab7129d32fa0 /data/elementary/themes
parentf9533884c5762d620de06b53d42beffeb80cba74 (diff)
TH - add new radioa nd check styles from master
Diffstat (limited to 'data/elementary/themes')
-rw-r--r--data/elementary/themes/edc/elm/check.edc1
-rw-r--r--data/elementary/themes/edc/elm/radio.edc500
2 files changed, 429 insertions, 72 deletions
diff --git a/data/elementary/themes/edc/elm/check.edc b/data/elementary/themes/edc/elm/check.edc
index 197637750f..038e5e9027 100644
--- a/data/elementary/themes/edc/elm/check.edc
+++ b/data/elementary/themes/edc/elm/check.edc
@@ -63,6 +63,7 @@ group { name: "elm/check/base/default";
63 text { "sizer_content"; nomouse; 63 text { "sizer_content"; nomouse;
64 scale: 1; 64 scale: 1;
65 desc { "default"; 65 desc { "default";
66 fixed: 1 1;
66 visible: 0; 67 visible: 0;
67 text { font: FN; size: 10; 68 text { font: FN; size: 10;
68 min: 0 0; 69 min: 0 0;
diff --git a/data/elementary/themes/edc/elm/radio.edc b/data/elementary/themes/edc/elm/radio.edc
index dba16a3762..07c7b22c97 100644
--- a/data/elementary/themes/edc/elm/radio.edc
+++ b/data/elementary/themes/edc/elm/radio.edc
@@ -296,16 +296,10 @@ group { name: "elm/radio/base/default";
296 } 296 }
297} 297}
298 298
299#define SELECTED 8
299group { name: "elm/radio/base/plain"; 300group { name: "elm/radio/base/plain";
300 alias: "elm/check/base/plain"; 301 alias: "elm/check/base/plain";
301 images.image: "button_normal.png" COMP; 302 images.image: "win_shadow.png" COMP;
302 images.image: "button_clicked.png" COMP;
303 images.image: "horizontal_separated_bar_small_glow.png" COMP;
304#define ICON 1
305#define LABEL 2
306#define MASK 3
307#define DISABLE 4
308#define SELECTED 8
309 script { 303 script {
310 public btmode; 304 public btmode;
311 public eval_mode(m) { 305 public eval_mode(m) {
@@ -313,17 +307,32 @@ group { name: "elm/radio/base/plain";
313 new d = m & DISABLE; 307 new d = m & DISABLE;
314 new s = m & SELECTED; 308 new s = m & SELECTED;
315 if (s) { 309 if (s) {
316 set_state(PART:"base", "selected", 0.0); 310 if (!d) {
317 set_state(PART:"bar", "selected", 0.0); 311 set_state(PART:"shadow", "selected", 0.0);
312 set_state(PART:"base", "selected", 0.0);
313 set_state(PART:"bar", "selected", 0.0);
314 } else {
315 set_state(PART:"shadow", "selected", 0.0);
316 set_state(PART:"base", "disabled", 0.0);
317 set_state(PART:"bar", "default", 0.0);
318 }
318 } else { 319 } else {
319 set_state(PART:"base", "default", 0.0); 320 if (!d) {
320 set_state(PART:"bar", "default", 0.0); 321 set_state(PART:"shadow", "default", 0.0);
322 set_state(PART:"base", "default", 0.0);
323 set_state(PART:"bar", "default", 0.0);
324 } else {
325 set_state(PART:"shadow", "selected", 0.0);
326 set_state(PART:"base", "disabled", 0.0);
327 set_state(PART:"bar", "default", 0.0);
328 }
321 } 329 }
322 if (m1 == (ICON | LABEL)) { 330 if (m1 == (ICON | LABEL)) {
323 if (!d) { 331 if (!d) {
324 set_state(PART:"elm.swallow.content", "visible", 0.0); 332 set_state(PART:"elm.swallow.content", "visible", 0.0);
325 set_state(PART:"sizer_content", "visible", 0.0); 333 set_state(PART:"sizer_content", "visible", 0.0);
326 set_state(PART:"elm.text", "visible", 0.0); 334 if (s) set_state(PART:"elm.text", "selected", 0.0);
335 else set_state(PART:"elm.text", "visible", 0.0);
327 set_state(PART:"clip", "default", 0.0); 336 set_state(PART:"clip", "default", 0.0);
328 set_state(PART:"event", "default", 0.0); 337 set_state(PART:"event", "default", 0.0);
329 } else { 338 } else {
@@ -343,8 +352,7 @@ group { name: "elm/radio/base/plain";
343 } else { 352 } else {
344 set_state(PART:"elm.swallow.content", "icononly", 0.0); 353 set_state(PART:"elm.swallow.content", "icononly", 0.0);
345 set_state(PART:"sizer_content", "icononly", 0.0); 354 set_state(PART:"sizer_content", "icononly", 0.0);
346 set_state(PART:"elm.text", "disabled", 0.0); 355 set_state(PART:"elm.text", "default", 0.0);
347 set_state(PART:"base", "disabled", 0.0);
348 set_state(PART:"clip", "disabled", 0.0); 356 set_state(PART:"clip", "disabled", 0.0);
349 set_state(PART:"event", "disabled", 0.0); 357 set_state(PART:"event", "disabled", 0.0);
350 } 358 }
@@ -352,7 +360,8 @@ group { name: "elm/radio/base/plain";
352 if (!d) { 360 if (!d) {
353 set_state(PART:"elm.swallow.content", "default", 0.0); 361 set_state(PART:"elm.swallow.content", "default", 0.0);
354 set_state(PART:"sizer_content", "default", 0.0); 362 set_state(PART:"sizer_content", "default", 0.0);
355 set_state(PART:"elm.text", "visible", 0.0); 363 if (s) set_state(PART:"elm.text", "selected", 0.0);
364 else set_state(PART:"elm.text", "visible", 0.0);
356 set_state(PART:"clip", "default", 0.0); 365 set_state(PART:"clip", "default", 0.0);
357 set_state(PART:"event", "default", 0.0); 366 set_state(PART:"event", "default", 0.0);
358 } else { 367 } else {
@@ -380,22 +389,34 @@ group { name: "elm/radio/base/plain";
380 } 389 }
381 } 390 }
382 parts { 391 parts {
383 part { name: "base"; mouse_events: 0; 392 part { name: "shadow"; mouse_events: 0;
393 scale: 1;
384 description { state: "default" 0.0; 394 description { state: "default" 0.0;
385 rel1.offset: -1 0; 395 rel.to: "base";
396 WIN_SHADOW_SMALL;
397 }
398 description { state: "selected" 0.0; inherit;
399 image.border_scale_by: 0.1;
400 rel1.offset: -2 -1;
386 rel2.offset: 0 1; 401 rel2.offset: 0 1;
387 image.normal: "button_normal.png";
388 image.border: 4 4 3 5;
389 image.middle: SOLID;
390 fill.smooth: 0;
391 } 402 }
392 description { state: "selected" 0.0; 403 }
393 inherit: "default" 0.0; 404 rect { name: "base"; nomouse;
394 image.normal: "button_clicked.png"; 405 scale: 1;
395 image.border: 5 5 4 6; 406 desc { "default";
407 color: 96 96 96 255;
408 rel1.offset: 2 2;
409 rel2.offset: -3 -3;
410 offscale;
396 } 411 }
397 description { state: "disabled" 0.0; 412 desc { "selected"; inherit;
398 inherit: "default" 0.0; 413 color: 128 128 128 255;
414 rel1.offset: 3 3;
415 rel2.offset: -4 -4;
416 offscale;
417 }
418 desc { "disabled"; inherit;
419 color: 72 72 72 255;
399 } 420 }
400 } 421 }
401 part { name: "clip"; type: RECT; 422 part { name: "clip"; type: RECT;
@@ -414,11 +435,10 @@ group { name: "elm/radio/base/plain";
414 visible: 0; 435 visible: 0;
415 align: 0.0 0.5; 436 align: 0.0 0.5;
416 max: 0 0; 437 max: 0 0;
417 rel1.offset: 6 5; 438 rel1.offset: 0 6;
418 rel1.to: "base";
419 rel2.relative: 0.0 1.0; 439 rel2.relative: 0.0 1.0;
420 rel2.offset: 6 -8; 440 rel2.offset: 0 -7;
421 rel2.to: "base"; 441 offscale;
422 } 442 }
423 description { state: "icononly" 0.0; 443 description { state: "icononly" 0.0;
424 inherit: "default" 0.0; 444 inherit: "default" 0.0;
@@ -426,13 +446,18 @@ group { name: "elm/radio/base/plain";
426 align: 0.5 0.5; 446 align: 0.5 0.5;
427 max: 9999 9999; 447 max: 9999 9999;
428 min: 16 16; 448 min: 16 16;
449 rel1.offset: 6 6;
450 rel2.offset: 6 -7;
429 rel2.relative: 1.0 1.0; 451 rel2.relative: 1.0 1.0;
430 rel2.offset: -7 -8; 452 rel2.offset: -5 -5;
453 fixed: 0 0;
431 } 454 }
432 description { state: "visible" 0.0; 455 description { state: "visible" 0.0;
433 inherit: "default" 0.0; 456 inherit: "default" 0.0;
434 visible: 1; 457 visible: 1;
435 aspect: 1.0 1.0; 458 aspect: 1.0 1.0;
459 rel1.offset: 6 6;
460 rel2.offset: 6 -7;
436 max: 9999 9999; 461 max: 9999 9999;
437 min: 16 16; 462 min: 16 16;
438 } 463 }
@@ -469,60 +494,59 @@ group { name: "elm/radio/base/plain";
469 } 494 }
470 } 495 }
471 part { name: "elm.text"; type: TEXT; mouse_events: 0; 496 part { name: "elm.text"; type: TEXT; mouse_events: 0;
472 effect: SHADOW BOTTOM;
473 scale: 1; 497 scale: 1;
474 description { state: "default" 0.0; 498 description { state: "default" 0.0;
475 rel1.offset: 2 4; 499 fixed: 1 1;
500 rel1.offset: 0 6;
476 rel1.to_x: "elm.swallow.content"; 501 rel1.to_x: "elm.swallow.content";
477 rel1.relative: 1.0 0.0; 502 rel1.relative: 1.0 0.0;
478 rel1.to_y: "base"; 503 rel2.offset: -7 -7;
479 rel2.offset: -8 -8; 504 color: 192 192 192 255;
480 rel2.to: "base";
481 color: FN_COL_DEFAULT;
482 color_class: "radio_text";
483 text { font: FN; size: 10; 505 text { font: FN; size: 10;
484 min: 0 0; 506 min: 0 0;
485 align: 0.0 0.5; 507 align: 0.0 0.5;
486 text_class: "radio"; 508 text_class: "radio";
487 } 509 }
510 offscale;
488 } 511 }
489 description { state: "disabled" 0.0; 512 description { state: "disabled" 0.0;
490 inherit: "default" 0.0; 513 inherit: "default" 0.0;
491 color_class: "radio_text_disabled"; 514 color: 96 96 96 255;
492 color3: 255 255 255 255;
493 } 515 }
494 description { state: "visible" 0.0; 516 description { state: "visible" 0.0;
495 inherit: "default" 0.0; 517 inherit: "default" 0.0;
518 fixed: 0 0;
519 rel1.offset: 6 6;
496 visible: 1; 520 visible: 1;
497 text.min: 1 1; 521 text.min: 1 1;
498 text.ellipsis: -1; 522 text.ellipsis: -1;
499 } 523 }
524 description { state: "selected" 0.0;
525 inherit: "visible" 0.0;
526 color: 255 255 255 255;
527 }
500 description { state: "disabled_visible" 0.0; 528 description { state: "disabled_visible" 0.0;
501 inherit: "default" 0.0; 529 inherit: "default" 0.0;
502 color_class: "radio_text_disabled"; 530 color: 96 96 96 255;
503 color3: 255 255 255 255; 531 rel1.offset: 6 6;
504 visible: 1; 532 visible: 1;
505 text.min: 1 1; 533 text.min: 1 1;
506 text.ellipsis: -1; 534 text.ellipsis: -1;
507 } 535 }
508 } 536 }
509 image { "bar"; nomouse; 537 rect { "bar"; nomouse;
510 desc { "default"; 538 desc { "default";
511 image.normal: "horizontal_separated_bar_small_glow.png"; 539 color: 51 153 255 0;
512 image.border: 4 4 4 4;
513 fill.smooth: 0;
514 fill.smooth: 0;
515 fixed: 0 1; 540 fixed: 0 1;
516 rel.to: "base"; 541 rel.to: "base";
517 rel1.relative: 0.0 1.0; 542 rel1.relative: 0.0 1.0;
518 rel1.offset: 1 -12; 543 rel1.offset: 0 -1;
519 rel2.offset: -2 -3; 544 align: 0.5 1.0;
520 color: 255 255 255 0;
521 visible: 0; 545 visible: 0;
522 } 546 }
523 desc { "selected"; 547 desc { "selected"; inherit;
524 inherit: "default"; 548 min: 0 5;
525 color: 255 255 255 255; 549 color: 51 153 255 255;
526 visible: 1; 550 visible: 1;
527 } 551 }
528 } 552 }
@@ -538,8 +562,10 @@ group { name: "elm/radio/base/plain";
538 } 562 }
539 programs { 563 programs {
540 program { signal: "mouse,down,1"; source: "event"; 564 program { signal: "mouse,down,1"; source: "event";
541 action: STATE_SET "selected" 0.0; 565 script {
542 target: "base"; 566 new m = get_int(btmode);
567 eval_mode(m | SELECTED);
568 }
543 } 569 }
544 program { signal: "mouse,up,1"; source: "event"; 570 program { signal: "mouse,up,1"; source: "event";
545 script { 571 script {
@@ -610,22 +636,355 @@ group { name: "elm/radio/base/plain";
610 } 636 }
611 } 637 }
612 } 638 }
613#undef ICON
614#undef LABEL
615#undef MASK
616#undef DISABLE
617} 639}
618 640
619group { name: "elm/radio/base/icon"; 641group { name: "elm/radio/base/icon";
620 alias: "elm/check/base/icon"; 642 alias: "elm/check/base/icon";
643 images.image: "win_shadow.png" COMP;
644 script {
645 public btmode;
646 public eval_mode(m) {
647 new m1 = m & MASK;
648 new d = m & DISABLE;
649 new s = m & SELECTED;
650 if (s) {
651 if (!d) {
652 set_state(PART:"shadow", "selected", 0.0);
653 set_state(PART:"base", "selected", 0.0);
654 set_state(PART:"bar", "selected", 0.0);
655 } else {
656 set_state(PART:"shadow", "selected", 0.0);
657 set_state(PART:"base", "disabled", 0.0);
658 set_state(PART:"bar", "default", 0.0);
659 }
660 } else {
661 if (!d) {
662 set_state(PART:"shadow", "default", 0.0);
663 set_state(PART:"base", "default", 0.0);
664 set_state(PART:"bar", "default", 0.0);
665 } else {
666 set_state(PART:"shadow", "selected", 0.0);
667 set_state(PART:"base", "disabled", 0.0);
668 set_state(PART:"bar", "default", 0.0);
669 }
670 }
671 if (m1 == (ICON | LABEL)) {
672 if (!d) {
673 set_state(PART:"elm.swallow.content", "visible", 0.0);
674 set_state(PART:"sizer_content", "visible", 0.0);
675 if (s) set_state(PART:"elm.text", "selected", 0.0);
676 else set_state(PART:"elm.text", "visible", 0.0);
677 set_state(PART:"clip", "default", 0.0);
678 set_state(PART:"event", "default", 0.0);
679 } else {
680 set_state(PART:"elm.swallow.content", "visible", 0.0);
681 set_state(PART:"sizer_content", "visible", 0.0);
682 set_state(PART:"elm.text", "disabled_visible", 0.0);
683 set_state(PART:"clip", "disabled", 0.0);
684 set_state(PART:"event", "disabled", 0.0);
685 }
686 } else if (m1 == (ICON)) {
687 if (!d) {
688 set_state(PART:"elm.swallow.content", "icononly", 0.0);
689 set_state(PART:"sizer_content", "icononly", 0.0);
690 set_state(PART:"elm.text", "default", 0.0);
691 set_state(PART:"clip", "default", 0.0);
692 set_state(PART:"event", "default", 0.0);
693 } else {
694 set_state(PART:"elm.swallow.content", "icononly", 0.0);
695 set_state(PART:"sizer_content", "icononly", 0.0);
696 set_state(PART:"elm.text", "default", 0.0);
697 set_state(PART:"clip", "disabled", 0.0);
698 set_state(PART:"event", "disabled", 0.0);
699 }
700 } else if (m1 == (LABEL)) {
701 if (!d) {
702 set_state(PART:"elm.swallow.content", "default", 0.0);
703 set_state(PART:"sizer_content", "default", 0.0);
704 if (s) set_state(PART:"elm.text", "selected", 0.0);
705 else set_state(PART:"elm.text", "visible", 0.0);
706 set_state(PART:"clip", "default", 0.0);
707 set_state(PART:"event", "default", 0.0);
708 } else {
709 set_state(PART:"elm.swallow.content", "default", 0.0);
710 set_state(PART:"sizer_content", "default", 0.0);
711 set_state(PART:"elm.text", "disabled_visible", 0.0);
712 set_state(PART:"clip", "disabled", 0.0);
713 set_state(PART:"event", "disabled", 0.0);
714 }
715 } else {
716 if (!d) {
717 set_state(PART:"elm.swallow.content", "default", 0.0);
718 set_state(PART:"sizer_content", "default", 0.0);
719 set_state(PART:"elm.text", "default", 0.0);
720 set_state(PART:"clip", "default", 0.0);
721 set_state(PART:"event", "default", 0.0);
722 } else {
723 set_state(PART:"elm.swallow.content", "default", 0.0);
724 set_state(PART:"sizer_content", "default", 0.0);
725 set_state(PART:"elm.text", "default", 0.0);
726 set_state(PART:"clip", "disabled", 0.0);
727 set_state(PART:"event", "disabled", 0.0);
728 }
729 }
730 }
731 }
732 parts {
733 part { name: "shadow"; mouse_events: 0;
734 scale: 1;
735 description { state: "default" 0.0;
736 rel.to: "base";
737 WIN_SHADOW_SMALL;
738 }
739 description { state: "selected" 0.0; inherit;
740 image.border_scale_by: 0.1;
741 rel1.offset: -2 -1;
742 rel2.offset: 0 1;
743 }
744 }
745 rect { name: "base"; nomouse;
746 scale: 1;
747 desc { "default";
748 color: 96 96 96 255;
749 rel1.offset: 2 2;
750 rel2.offset: -3 -3;
751 offscale;
752 }
753 desc { "selected"; inherit;
754 color: 128 128 128 255;
755 rel1.offset: 3 3;
756 rel2.offset: -4 -4;
757 offscale;
758 }
759 desc { "disabled"; inherit;
760 color: 72 72 72 255;
761 }
762 }
763 part { name: "clip"; type: RECT;
764 description { state: "default" 0.0;
765 }
766 description { state: "disabled" 0.0;
767 inherit: "default" 0.0;
768 color: 255 255 255 64;
769 }
770 }
771 part { name: "elm.swallow.content"; type: SWALLOW;
772 scale: 1;
773 clip_to: "clip";
774 description { state: "default" 0.0;
775 fixed: 0 1;
776 visible: 0;
777 align: 0.5 0.0;
778 max: 0 0;
779 rel1.offset: 6 0;
780 rel2.relative: 1.0 0.0;
781 rel2.offset: -7 0;
782 offscale;
783 }
784 description { state: "icononly" 0.0;
785 inherit: "default" 0.0;
786 visible: 1;
787 align: 0.5 0.5;
788 max: 9999 9999;
789 min: 16 16;
790 rel1.offset: 6 6;
791 rel2.offset: 6 -7;
792 rel2.relative: 1.0 1.0;
793 rel2.offset: -5 -5;
794 fixed: 0 0;
795 }
796 description { state: "visible" 0.0;
797 inherit: "default" 0.0;
798 visible: 1;
799 aspect: 1.0 1.0;
800 rel1.offset: 6 5;
801 rel2.offset: -5 5;
802 max: 9999 9999;
803 min: 16 16;
804 fixed: 1 1;
805 }
806 }
807 part { name: "sizer_content"; type: TEXT; mouse_events: 0;
808 scale: 1;
809 description { state: "default" 0.0;
810 fixed: 1 1;
811 visible: 0;
812 text { font: FN; size: 10;
813 min: 0 0;
814 text_class: "radio_text";
815 }
816 }
817 description { state: "visible" 0.0;
818 inherit: "default" 0.0;
819 rel1.to: "elm.swallow.content";
820 rel2.to: "elm.swallow.content";
821 text {
822 min: 1 1;
823 ellipsis: -1;
824 text: "M";
825 }
826 }
827 description { state: "icononly" 0.0;
828 inherit: "default" 0.0;
829 rel1.to: "elm.swallow.content";
830 rel2.to: "elm.swallow.content";
831 text {
832 min: 1 1;
833 ellipsis: -1;
834 text: "M";
835 }
836 }
837 }
838 part { name: "elm.text"; type: TEXT; mouse_events: 0;
839 scale: 1;
840 description { state: "default" 0.0;
841 fixed: 1 1;
842 rel1.offset: 6 0;
843 rel1.to_y: "elm.swallow.content";
844 rel1.relative: 0.0 1.0;
845 rel2.offset: -7 -7;
846 color: 192 192 192 255;
847 text { font: FN; size: 10;
848 min: 0 0;
849 align: 0.5 1.0;
850 text_class: "radio";
851 }
852 offscale;
853 }
854 description { state: "disabled" 0.0;
855 inherit: "default" 0.0;
856 color: 96 96 96 255;
857 }
858 description { state: "visible" 0.0;
859 inherit: "default" 0.0;
860 fixed: 0 0;
861 rel1.offset: 6 6;
862 visible: 1;
863 text.min: 1 1;
864 text.ellipsis: -1;
865 }
866 description { state: "selected" 0.0;
867 inherit: "visible" 0.0;
868 color: 255 255 255 255;
869 }
870 description { state: "disabled_visible" 0.0;
871 inherit: "default" 0.0;
872 color: 96 96 96 255;
873 rel1.offset: 6 6;
874 visible: 1;
875 text.min: 1 1;
876 text.ellipsis: -1;
877 }
878 }
879 rect { "bar"; nomouse;
880 desc { "default";
881 color: 51 153 255 0;
882 fixed: 0 1;
883 rel.to: "base";
884 rel1.relative: 0.0 1.0;
885 rel1.offset: 0 -1;
886 align: 0.5 1.0;
887 visible: 0;
888 }
889 desc { "selected"; inherit;
890 min: 0 5;
891 color: 51 153 255 255;
892 visible: 1;
893 }
894 }
895 part { name: "event"; type: RECT;
896 description { state: "default" 0.0;
897 color: 0 0 0 0;
898 }
899 description { state: "disabled" 0.0;
900 inherit: "default" 0.0;
901 visible: 0;
902 }
903 }
904 }
905 programs {
906 program { signal: "mouse,down,1"; source: "event";
907 script {
908 new m = get_int(btmode);
909 eval_mode(m | SELECTED);
910 }
911 }
912 program { signal: "mouse,up,1"; source: "event";
913 script {
914 new m = get_int(btmode);
915 eval_mode(m);
916 }
917 }
918 program { signal: "mouse,clicked,1"; source: "event";
919 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
920 }
921 program { signal: "mouse,clicked,1"; source: "event";
922 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
923 }
924 program { signal: "elm,state,*,on"; source: "elm";
925 script {
926 new m = get_int(btmode);
927 m |= SELECTED; set_int(btmode, m);
928 eval_mode(m);
929 }
930 }
931 program { signal: "elm,state,*,off"; source: "elm";
932 script {
933 new m = get_int(btmode);
934 m &= ~SELECTED; set_int(btmode, m);
935 eval_mode(m);
936 }
937 }
938 program { signal: "elm,state,text,visible"; source: "elm";
939 script {
940 new m = get_int(btmode);
941 m |= LABEL; set_int(btmode, m);
942 eval_mode(m);
943 }
944 }
945 program { signal: "elm,state,text,hidden"; source: "elm";
946 script {
947 new m = get_int(btmode);
948 m &= ~LABEL; set_int(btmode, m);
949 eval_mode(m);
950 }
951 }
952 program { signal: "elm,state,icon,visible"; source: "elm";
953 script {
954 new m = get_int(btmode);
955 m |= ICON; set_int(btmode, m);
956 eval_mode(m);
957 }
958 }
959 program { signal: "elm,state,icon,hidden"; source: "elm";
960 script {
961 new m = get_int(btmode);
962 m &= ~ICON; set_int(btmode, m);
963 eval_mode(m);
964 }
965 }
966 program { signal: "elm,state,disabled"; source: "elm";
967 script {
968 new m = get_int(btmode);
969 m |= DISABLE; set_int(btmode, m);
970 eval_mode(m);
971 }
972 }
973 program { signal: "elm,state,enabled"; source: "elm";
974 script {
975 new m = get_int(btmode);
976 m &= ~DISABLE; set_int(btmode, m);
977 eval_mode(m);
978 }
979 }
980 }
981}
982/*
983group { name: "elm/radio/base/icon";
984 alias: "elm/check/base/icon";
621 images.image: "button_normal.png" COMP; 985 images.image: "button_normal.png" COMP;
622 images.image: "button_clicked.png" COMP; 986 images.image: "button_clicked.png" COMP;
623 images.image: "horizontal_separated_bar_small_glow.png" COMP; 987 images.image: "horizontal_separated_bar_small_glow.png" COMP;
624#define ICON 1
625#define LABEL 2
626#define MASK 3
627#define DISABLE 4
628#define SELECTED 8
629 script { 988 script {
630 public btmode; 989 public btmode;
631 public eval_mode(m) { 990 public eval_mode(m) {
@@ -664,7 +1023,6 @@ group { name: "elm/radio/base/icon";
664 set_state(PART:"elm.swallow.content", "icononly", 0.0); 1023 set_state(PART:"elm.swallow.content", "icononly", 0.0);
665 set_state(PART:"sizer_content", "icononly", 0.0); 1024 set_state(PART:"sizer_content", "icononly", 0.0);
666 set_state(PART:"elm.text", "disabled", 0.0); 1025 set_state(PART:"elm.text", "disabled", 0.0);
667 set_state(PART:"base", "disabled", 0.0);
668 set_state(PART:"clip", "disabled", 0.0); 1026 set_state(PART:"clip", "disabled", 0.0);
669 set_state(PART:"event", "disabled", 0.0); 1027 set_state(PART:"event", "disabled", 0.0);
670 } 1028 }
@@ -730,7 +1088,7 @@ group { name: "elm/radio/base/icon";
730 scale: 1; 1088 scale: 1;
731 clip_to: "clip"; 1089 clip_to: "clip";
732 description { state: "default" 0.0; 1090 description { state: "default" 0.0;
733 fixed: 0 1; 1091 fixed: 1 0;
734 visible: 0; 1092 visible: 0;
735 align: 0.5 0.0; 1093 align: 0.5 0.0;
736 max: 0 0; 1094 max: 0 0;
@@ -749,6 +1107,7 @@ group { name: "elm/radio/base/icon";
749 min: 16 16; 1107 min: 16 16;
750 rel2.relative: 1.0 1.0; 1108 rel2.relative: 1.0 1.0;
751 rel2.offset: -7 -8; 1109 rel2.offset: -7 -8;
1110 fixed: 0 0;
752 } 1111 }
753 description { state: "visible" 0.0; 1112 description { state: "visible" 0.0;
754 inherit: "default" 0.0; 1113 inherit: "default" 0.0;
@@ -933,8 +1292,5 @@ group { name: "elm/radio/base/icon";
933 } 1292 }
934 } 1293 }
935 } 1294 }
936#undef ICON
937#undef LABEL
938#undef MASK
939#undef DISABLE
940} 1295}
1296*/