summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-10-26 21:35:59 +0200
committerBoris Faure <billiob@gmail.com>2019-10-26 21:35:59 +0200
commitbd9bdaeaeaad6ba7d5d95c7f063620dc03aa1fee (patch)
tree6940ac150c13b388214a1af574837048e359798a
parent2ff19839816b3187ef539d748958861974e7467d (diff)
mild: also add tab selector on tab line
-rw-r--r--data/themes/mild.edc258
1 files changed, 254 insertions, 4 deletions
diff --git a/data/themes/mild.edc b/data/themes/mild.edc
index 7559035..bd5f63c 100644
--- a/data/themes/mild.edc
+++ b/data/themes/mild.edc
@@ -647,6 +647,254 @@ collections {
647 target: "tabtitle"; 647 target: "tabtitle";
648 } 648 }
649 649
650 program {
651 signal: "tab_btn,on"; source: "terminology";
652 action: STATE_SET "on" 0.0;
653 target: "tab_btn_clip";
654 target: "tab_btn_bg";
655 target: "terminology.tab_btn";
656 }
657 program {
658 signal: "tab_btn,off"; source: "terminology";
659 action: STATE_SET "default" 0.0;
660 target: "tab_btn_clip";
661 target: "tab_btn_bg";
662 target: "terminology.tab_btn";
663 }
664 part { name: "tab_btn_clip"; type: RECT;
665 description { state: "default" 0.0;
666 color: 255 255 255 0;
667 visible: 0;
668 }
669 description { state: "on" 0.0;
670 inherit: "default" 0.0;
671 visible: 1;
672 color: 255 255 255 255;
673 }
674 }
675 part { name: "tab_btn_bg";
676 mouse_events: 0;
677 clip_to: "tab_btn_clip";
678 description { state: "default" 0.0;
679 fixed: 1 1;
680 rel1.to: "terminology.tab_btn";
681 rel2.to: "terminology.tab_btn";
682 image.normal: "tab_bg_r0.png";
683 image.border: 0 2 4 4;
684 fill.smooth: 0;
685 visible: 0;
686 fixed: 1 1;
687 }
688 description { state: "on" 0.0;
689 inherit: "default" 0.0;
690 visible: 1;
691 }
692 }
693 part { name: "tab_btn_glow_r0";
694 clip_to: "tab_btn_clip";
695 description { state: "default" 0.0;
696 fixed: 1 1;
697 rel1.to: "tab_btn_r0";
698 rel2.to: "tab_btn_r0";
699 rel1.offset: -4 -4;
700 rel2.offset: 3 3;
701 image {
702 normal: "cr_glow.png";
703 border: 9 9 9 9;
704 }
705 color: 51 153 255 32;
706 }
707 description { state: "over" 0.0;
708 inherit: "default" 0.0;
709 color: 51 153 255 255;
710 }
711 }
712 part { name: "tab_btn_glow_r1";
713 clip_to: "tab_btn_clip";
714 description { state: "default" 0.0;
715 fixed: 1 1;
716 rel1.to: "tab_btn_r1";
717 rel2.to: "tab_btn_r1";
718 rel1.offset: -4 -4;
719 rel2.offset: 3 3;
720 image {
721 normal: "cr_glow.png";
722 border: 9 9 9 9;
723 }
724 color: 51 153 255 32;
725 }
726 description { state: "over" 0.0;
727 inherit: "default" 0.0;
728 color: 51 153 255 255;
729 }
730 }
731 part { name: "tab_btn_glow_r2";
732 clip_to: "tab_btn_clip";
733 description { state: "default" 0.0;
734 fixed: 1 1;
735 rel1.to: "tab_btn_r2";
736 rel2.to: "tab_btn_r2";
737 rel1.offset: -4 -4;
738 rel2.offset: 3 3;
739 image {
740 normal: "cr_glow.png";
741 border: 9 9 9 9;
742 }
743 color: 51 153 255 32;
744 }
745 description { state: "over" 0.0;
746 inherit: "default" 0.0;
747 color: 51 153 255 255;
748 }
749 }
750 part { name: "tab_btn_glow_r3";
751 clip_to: "tab_btn_clip";
752 description { state: "default" 0.0;
753 fixed: 1 1;
754 rel1.to: "tab_btn_r3";
755 rel2.to: "tab_btn_r3";
756 rel1.offset: -4 -4;
757 rel2.offset: 3 3;
758 image {
759 normal: "cr_glow.png";
760 border: 9 9 9 9;
761 }
762 color: 51 153 255 32;
763 }
764 description { state: "over" 0.0;
765 inherit: "default" 0.0;
766 color: 51 153 255 255;
767 }
768 }
769 part { name: "tab_btn_r0"; type: RECT;
770 clip_to: "tab_btn_clip";
771 description { state: "default" 0.0;
772 fixed: 1 1;
773 rel1.to: "terminology.tab_btn";
774 rel2.to: "terminology.tab_btn";
775 rel1.relative: 0.05 0.05;
776 rel2.relative: 0.45 0.45;
777 color: 255 255 255 32;
778 }
779 description { state: "over" 0.0;
780 inherit: "default" 0.0;
781 color: 255 255 255 255;
782 }
783 }
784 part { name: "tab_btn_r1"; type: RECT;
785 clip_to: "tab_btn_clip";
786 description { state: "default" 0.0;
787 fixed: 1 1;
788 rel1.to: "terminology.tab_btn";
789 rel2.to: "terminology.tab_btn";
790 rel1.relative: 0.55 0.05;
791 rel2.relative: 0.95 0.45;
792 color: 255 255 255 32;
793 }
794 description { state: "over" 0.0;
795 inherit: "default" 0.0;
796 color: 255 255 255 255;
797 }
798 }
799 part { name: "tab_btn_r2"; type: RECT;
800 clip_to: "tab_btn_clip";
801 description { state: "default" 0.0;
802 fixed: 1 1;
803 rel1.to: "terminology.tab_btn";
804 rel2.to: "terminology.tab_btn";
805 rel1.relative: 0.05 0.55;
806 rel2.relative: 0.45 0.95;
807 color: 255 255 255 32;
808 }
809 description { state: "over" 0.0;
810 inherit: "default" 0.0;
811 color: 255 255 255 255;
812 }
813 }
814 part { name: "tab_btn_r3"; type: RECT;
815 clip_to: "tab_btn_clip";
816 description { state: "default" 0.0;
817 fixed: 1 1;
818 rel1.to: "terminology.tab_btn";
819 rel2.to: "terminology.tab_btn";
820 rel1.relative: 0.55 0.55;
821 rel2.relative: 0.95 0.95;
822 color: 255 255 255 32;
823 }
824 description { state: "over" 0.0;
825 inherit: "default" 0.0;
826 color: 255 255 255 255;
827 }
828 }
829 part { name: "terminology.tab_btn"; type: SWALLOW;
830 clip_to: "tab_btn_clip";
831 mouse_events: 0;
832 description { state: "default" 0.0;
833 rel1.relative: 1.0 0.0;
834 rel2.to_y: "tabmiddle";
835 color: 250 0 250 255;
836 visible: 0;
837 align: 1.0 0.0;
838 fixed: 1 1;
839 }
840 description { state: "on" 0.0;
841 inherit: "default" 0.0;
842 min: 16 16;
843 visible: 1;
844 }
845 }
846 part { name: "tab_btn_ev"; type: RECT; repeat_events: 1;
847 clip_to: "tab_btn_clip";
848 description { state: "default" 0.0;
849 fixed: 1 1;
850 rel1.to: "terminology.tab_btn";
851 rel2.to: "terminology.tab_btn";
852 color: 0 0 0 0;
853 }
854 }
855 program {
856 signal: "mouse,in"; source: "tab_btn_ev";
857 action: STATE_SET "over" 0.0;
858 transition: DECELERATE 0.5;
859 target: "tab_btn_r0";
860 target: "tab_btn_r1";
861 target: "tab_btn_r2";
862 target: "tab_btn_r3";
863 target: "tab_btn_glow_r0";
864 target: "tab_btn_glow_r1";
865 target: "tab_btn_glow_r2";
866 target: "tab_btn_glow_r3";
867 }
868 program {
869 signal: "mouse,out"; source: "tab_btn_ev";
870 action: STATE_SET "default" 0.0;
871 transition: DECELERATE 2.0;
872 target: "tab_btn_r0";
873 target: "tab_btn_r1";
874 target: "tab_btn_r2";
875 target: "tab_btn_r3";
876 target: "tab_btn_glow_r0";
877 target: "tab_btn_glow_r1";
878 target: "tab_btn_glow_r2";
879 target: "tab_btn_glow_r3";
880 }
881 program {
882 signal: "mouse,clicked,1"; source: "tab_btn_ev";
883 action: SIGNAL_EMIT "tab,go" "terminology";
884 }
885 program {
886 signal: "mouse,clicked,3"; source: "tab_btn_ev";
887 action: SIGNAL_EMIT "tab,new" "terminology";
888 }
889 program {
890 signal: "mouse,wheel,0,1"; source: "tab_btn_ev";
891 action: SIGNAL_EMIT "tab,prev" "terminology";
892 }
893 program {
894 signal: "mouse,wheel,0,-1"; source: "tab_btn_ev";
895 action: SIGNAL_EMIT "tab,next" "terminology";
896 }
897
650 part { name: "terminology.tab"; type: SWALLOW; 898 part { name: "terminology.tab"; type: SWALLOW;
651 mouse_events: 0; 899 mouse_events: 0;
652 description { state: "default" 0.0; 900 description { state: "default" 0.0;
@@ -662,11 +910,12 @@ collections {
662 // some slot for dragable parts to stayt in along top edge of bg 910 // some slot for dragable parts to stayt in along top edge of bg
663 part { name: "tabdrag"; type: SPACER; 911 part { name: "tabdrag"; type: SPACER;
664 description { state: "default" 0.0; 912 description { state: "default" 0.0;
665 rel2.relative: 1.0 0.0; 913 rel2.relative: 0.0 0.0;
914 rel2.to_x: "terminology.tab_btn";
666 fixed: 1 1; 915 fixed: 1 1;
667 } 916 }
668 } 917 }
669 // left boundary of the active tab (ragable 0.0 -> 1.0) 918 // left boundary of the active tab (dragable 0.0 -> 1.0)
670 part { name: "terminology.tabl"; type: SPACER; 919 part { name: "terminology.tabl"; type: SPACER;
671 dragable.x: 1 1 0; 920 dragable.x: 1 1 0;
672 dragable.confine: "tabdrag"; 921 dragable.confine: "tabdrag";
@@ -676,12 +925,13 @@ collections {
676 fixed: 1 1; 925 fixed: 1 1;
677 } 926 }
678 } 927 }
679 // right boundary of the active tab (ragable 0.0 -> 1.0) 928 // right boundary of the active tab (dragable 0.0 -> 1.0)
680 part { name: "terminology.tabr"; type: SPACER; 929 part { name: "terminology.tabr"; type: SPACER;
681 dragable.x: 1 1 0; 930 dragable.x: 1 1 0;
682 dragable.confine: "tabdrag"; 931 dragable.confine: "tabdrag";
683 description { state: "default" 0.0; 932 description { state: "default" 0.0;
684 rel2.relative: 1.0 0.0; 933 rel2.relative: 0.0 0.0;
934 rel2.to_x: "terminology.tab_btn";
685 max: 1 1; 935 max: 1 1;
686 fixed: 1 1; 936 fixed: 1 1;
687 } 937 }