summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 17:42:19 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commitc7cd5c0a14b66e91c3176ce262cabfccbdbbafef (patch)
tree7b52585b3d2ffea5b44bf626eef6057f07e90c53
parentdd712c011a35effd2e87c770c0dd86d59a3d7e60 (diff)
theme: calendar - remove elm btn inheritance.
-rw-r--r--data/elementary/themes/edc/efl/calendar.edc180
1 files changed, 173 insertions, 7 deletions
diff --git a/data/elementary/themes/edc/efl/calendar.edc b/data/elementary/themes/edc/efl/calendar.edc
index 86aee2ce42..2fd7e95233 100644
--- a/data/elementary/themes/edc/efl/calendar.edc
+++ b/data/elementary/themes/edc/efl/calendar.edc
@@ -541,11 +541,177 @@ group { "efl/calendar";
541#undef CIT 541#undef CIT
542#undef CH 542#undef CH
543 543
544 group { name: "efl/calendar/inc_button";
545 images.image: "sym_right_light_normal.png" COMP;
546 images.image: "sym_right_glow_normal.png" COMP;
547 images.image: "sym_right_dark_normal.png" COMP;
548 script {
549 public mouse_down = 0;
550 public multi_down = 0;
551 }
552 parts {
553 part { name: "arrow.image";
554 scale: 1;
555 description { state: "default" 0.0;
556 min: 15 15;
557 max: 15 15;
558 color_class: "F032L1";
559 image.normal: "sym_right_light_normal.png";
560 }
561 description { state: "pressed" 0.0;
562 inherit: "default" 0.0;
563 image.normal: "sym_right_glow_normal.png";
564 }
565 description { state: "disabled" 0.0;
566 inherit: "default" 0.0;
567 image.normal: "sym_right_dark_normal.png";
568 }
569 }
570 part { name: "over";
571 type: RECT;
572 repeat_events: 1;
573 description { state: "default" 0.0;
574 color: 0 0 0 0;
575 }
576 }
577 part { name: "disabler";
578 type: RECT;
579 description { state: "default" 0.0;
580 color: 0 0 0 0;
581 visible: 0;
582 }
583 description { state: "disabled" 0.0;
584 inherit: "default" 0.0;
585 visible: 1;
586 }
587 }
588 }
589 programs {
590 program { name: "button_press";
591 signal: "mouse,down,1";
592 source: "over";
593 script {
594 if ((get_int(multi_down) == 0) &&
595 (get_int(mouse_down) == 0)) {
596 set_int(mouse_down, 1);
597 run_program(PROGRAM:"button_press2");
598 }
599 }
600 }
601 program { name: "button_press2";
602 action: SIGNAL_EMIT "elm,action,press" "";
603 after: "button_press_anim";
604 }
605 program { name: "button_press_anim";
606 action: STATE_SET "pressed" 0.0;
607 target: "arrow.image";
608 }
609 program { name: "button_unpress";
610 signal: "mouse,up,1";
611 source: "over";
612 script {
613 if (get_int(mouse_down) == 1) {
614 set_int(mouse_down, 0);
615 run_program(PROGRAM:"button_unpress2");
616 run_program(PROGRAM:"button_unpress_anim");
617 }
618 }
619 }
620 program { name: "button_unpress2";
621 action: SIGNAL_EMIT "elm,action,unpress" "";
622 }
623 program { name: "button_unpress_anim";
624 action: STATE_SET "default" 0.0;
625 target: "arrow.image";
626 }
627 program { name: "button_click";
628 signal: "mouse,clicked,1";
629 source: "over";
630 script {
631 if (get_int(multi_down) == 0) {
632 run_program(PROGRAM:"button_click2");
633 }
634 }
635 }
636 program { name: "action_unpressed";
637 signal: "elm,action,unpressed";
638 source: "elm";
639 after: "button_unpress_anim";
640 }
641 program { name: "action_pressed";
642 signal: "elm,action,pressed";
643 source: "elm";
644 after: "button_press_anim";
645 }
646 program { name: "button_click2";
647 action: SIGNAL_EMIT "elm,action,click" "";
648 }
649 program { name: "access_pressed";
650 signal: "elm,action,anim,activate";
651 source: "elm";
652 action: STATE_SET "pressed" 0.0;
653 target: "arrow.image";
654 after: "access_pressed_anim";
655 }
656 program { name: "access_pressed_anim";
657 action: STATE_SET "default" 0.0;
658 transition: DECELERATE 0.1;
659 target: "arrow.image";
660 }
661 program { name: "disable";
662 signal: "elm,state,disabled";
663 source: "elm";
664 action: STATE_SET "disabled" 0.0;
665 target: "arrow.image";
666 target: "disabler";
667 }
668 program { name: "enable";
669 signal: "elm,state,enabled";
670 source: "elm";
671 action: STATE_SET "default" 0.0;
672 target: "arrow.image";
673 target: "disabler";
674 }
675 program {
676 name: "multi_down";
677 signal: "elm,action,multi,down";
678 source: "elm";
679 script {
680 set_int(multi_down, 1);
681 }
682 }
683 program {
684 name: "multi_up";
685 signal: "elm,action,multi,up";
686 source: "elm";
687 script {
688 set_int(multi_down, 0);
689 }
690 }
691 }
692 }
544 693
545group { "efl/calendar/inc_button"; 694 group { name: "efl/calendar/dec_button";
546 inherit: "elm/button/base/calendar/increase/default"; 695 inherit: "efl/calendar/inc_button";
547} 696 images.image: "sym_left_light_normal.png" COMP;
548 697 images.image: "sym_left_glow_normal.png" COMP;
549group { "efl/calendar/dec_button"; 698 images.image: "sym_left_dark_normal.png" COMP;
550 inherit: "elm/button/base/calendar/decrease/default"; 699 parts {
551} 700 part { name: "arrow.image";
701 scale: 1;
702 description { state: "default" 0.0;
703 min: 15 15;
704 max: 15 15;
705 image.normal: "sym_left_light_normal.png";
706 }
707 description { state: "pressed" 0.0;
708 inherit: "default" 0.0;
709 image.normal: "sym_left_glow_normal.png";
710 }
711 description { state: "disabled" 0.0;
712 inherit: "default" 0.0;
713 image.normal: "sym_left_dark_normal.png";
714 }
715 }
716 }
717 } \ No newline at end of file