summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-03-15 14:41:56 +0100
committerBoris Faure <billiob@gmail.com>2018-03-15 14:41:56 +0100
commit1920c8609539435359792c3d6cf9fe7a4aabcec0 (patch)
tree90571805697670e3bf8ce79e92e80ce6877596a3 /data
parente2e197877fbf4c0e82125c282df5e5bd4e1198af (diff)
default.edc: add terminology/cursor_bar and terminology/cursor_underline groups
Diffstat (limited to 'data')
-rw-r--r--data/themes/default.edc424
1 files changed, 424 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 89fc7bc..3a55bd7 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -3612,6 +3612,430 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; target: "3.clip"; target:
3612 } 3612 }
3613 } 3613 }
3614 } 3614 }
3615
3616 ///////////////////////////////////////////////////////////////////////////
3617 //// the cursor as a bar to show where text is typed
3618 group { name: "terminology/cursor_bar";
3619 images {
3620 image: "cr_key.png" COMP;
3621 image: "cr_bar_out.png" COMP;
3622 image: "cr_bar_pulse.png" COMP;
3623 image: "cr_bar_glow.png" COMP;
3624 }
3625 sounds {
3626 sample { name: "key-tap1" LOSSY 64;
3627 source: "kbd-tap.wav";
3628 }
3629 sample { name: "key-tap2" LOSSY 64;
3630 source: "kbd-tap2.wav";
3631 }
3632 sample { name: "key-tap3" LOSSY 64;
3633 source: "kbd-tap3.wav";
3634 }
3635 sample { name: "key-tap4" LOSSY 64;
3636 source: "kbd-tap4.wav";
3637 }
3638 sample { name: "key-tap5" LOSSY 64;
3639 source: "kbd-tap5.wav";
3640 }
3641 }
3642 parts {
3643 part { name: "key";
3644 mouse_events: 0;
3645 description { state: "default" 0.0;
3646 rel1 {
3647 to: "outline";
3648 offset: -5 -5;
3649 }
3650 rel2 {
3651 to: "outline";
3652 offset: 4 4;
3653 }
3654 image {
3655 normal: "cr_key.png";
3656 border: 4 4 4 4;
3657 }
3658 color: 51 153 255 0;
3659 }
3660 description { state: "on" 0.0;
3661 inherit: "default" 0.0;
3662 color: 51 153 255 255;
3663 }
3664 description { state: "out" 0.0;
3665 inherit: "default" 0.0;
3666 color: 51 153 255 0;
3667 rel1.offset: -7 -15;
3668 rel2.offset: 6 14;
3669 }
3670 }
3671 part { name: "pulse";
3672 mouse_events: 0;
3673 description { state: "default" 0.0;
3674 rel1 {
3675 to: "outline";
3676 offset: -4 -4;
3677 }
3678 rel2 {
3679 to: "outline";
3680 offset: 3 3;
3681 }
3682 image {
3683 normal: "cr_bar_pulse.png";
3684 border: 4 4 4 4;
3685 }
3686 color: 51 153 255 0;
3687 }
3688 description { state: "on" 0.0;
3689 inherit: "default" 0.0;
3690 color: 51 153 255 255;
3691 }
3692 description { state: "out" 0.0;
3693 inherit: "default" 0.0;
3694 color: 51 153 255 0;
3695 rel1.offset: -8 -8;
3696 rel2.offset: 7 7;
3697 }
3698 }
3699 part { name: "glow";
3700 mouse_events: 0;
3701 description { state: "default" 0.0;
3702 rel1.offset: -4 -4;
3703 rel2.offset: 3 3;
3704 image {
3705 normal: "cr_bar_glow.png";
3706 border: 9 9 9 9;
3707 }
3708 color: 51 153 255 40;
3709 }
3710 description { state: "focused" 0.0;
3711 inherit: "default" 0.0;
3712 color: 51 153 255 255;
3713 }
3714 }
3715 part { name: "outline";
3716 mouse_events: 0;
3717 description { state: "default" 0.0;
3718 image {
3719 normal: "cr_bar_out.png";
3720 border: 3 3 3 3;
3721 }
3722 color: 51 153 255 80;
3723 }
3724 description { state: "focused" 0.0;
3725 inherit: "default" 0.0;
3726 color: 255 255 255 255;
3727 }
3728 }
3729 programs {
3730 program {
3731 signal: "focus,in,noblink"; source: "terminology";
3732 action: STATE_SET "focused" 0.0;
3733 target: "glow";
3734 target: "outline";
3735 }
3736 program { name: "focus_in";
3737 signal: "focus,in"; source: "terminology";
3738 action: STATE_SET "focused" 0.0;
3739 target: "glow";
3740 target: "outline";
3741 after: "focus2";
3742 after: "pulse";
3743 }
3744 program { name: "focus2";
3745 in: 0.5 0.0;
3746 action: STATE_SET "default" 0.0;
3747 transition: DECELERATE 0.2;
3748 target: "glow";
3749 target: "outline";
3750 after: "focus3";
3751 }
3752 program { name: "focus3";
3753 in: 0.5 0.0;
3754 action: STATE_SET "focused" 0.0;
3755 target: "glow";
3756 target: "outline";
3757 after: "focus2";
3758 after: "pulse";
3759 }
3760 program { name: "pulse";
3761 action: STATE_SET "on" 0.0;
3762 target: "pulse";
3763 after: "pulse2";
3764 }
3765 program { name: "pulse2";
3766 action: STATE_SET "out" 0.0;
3767 transition: DECELERATE 0.4;
3768 target: "pulse";
3769 }
3770 program {
3771 signal: "focus,out"; source: "terminology";
3772 action: ACTION_STOP;
3773 target: "focus_in";
3774 target: "focus2";
3775 target: "focus3";
3776 target: "pulse";
3777 target: "pulse2";
3778 after: "focus_out2";
3779 }
3780 program { name: "focus_out2";
3781 action: STATE_SET "default" 0.0;
3782 target: "glow";
3783 target: "outline";
3784 }
3785 program {
3786 signal: "key,down"; source: "terminology";
3787 script {
3788 new buf[32];
3789 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
3790 run_program(get_program_id(buf));
3791 }
3792 }
3793 program { name: "key-down1";
3794 action: PLAY_SAMPLE "key-tap1" 1.0 INPUT;
3795 }
3796 program { name: "key-down2";
3797 action: PLAY_SAMPLE "key-tap2" 1.0 INPUT;
3798 }
3799 program { name: "key-down3";
3800 action: PLAY_SAMPLE "key-tap3" 1.0 INPUT;
3801 }
3802 program { name: "key-down4";
3803 action: PLAY_SAMPLE "key-tap4" 1.0 INPUT;
3804 }
3805 program { name: "key-down5";
3806 action: PLAY_SAMPLE "key-tap5" 1.0 INPUT;
3807 }
3808 program {
3809 signal: "key,down"; source: "terminology";
3810 action: STATE_SET "default" 0.0;
3811 target: "key";
3812 after: "key2";
3813 }
3814 program { name: "key2";
3815 action: STATE_SET "on" 0.0;
3816 target: "key";
3817 after: "key3";
3818 }
3819 program { name: "key3";
3820 action: STATE_SET "out" 0.0;
3821 transition: DECELERATE 0.3;
3822 target: "key";
3823 }
3824 }
3825 }
3826 }
3827
3828 ///////////////////////////////////////////////////////////////////////////
3829 //// the cursor as an underline to show where text is typed
3830 group { name: "terminology/cursor_underline";
3831 images {
3832 image: "cr_key.png" COMP;
3833 image: "cr_underline_out.png" COMP;
3834 image: "cr_underline_pulse.png" COMP;
3835 image: "cr_underline_glow.png" COMP;
3836 }
3837 sounds {
3838 sample { name: "key-tap1" LOSSY 64;
3839 source: "kbd-tap.wav";
3840 }
3841 sample { name: "key-tap2" LOSSY 64;
3842 source: "kbd-tap2.wav";
3843 }
3844 sample { name: "key-tap3" LOSSY 64;
3845 source: "kbd-tap3.wav";
3846 }
3847 sample { name: "key-tap4" LOSSY 64;
3848 source: "kbd-tap4.wav";
3849 }
3850 sample { name: "key-tap5" LOSSY 64;
3851 source: "kbd-tap5.wav";
3852 }
3853 }
3854 parts {
3855 part { name: "key";
3856 mouse_events: 0;
3857 description { state: "default" 0.0;
3858 rel1 {
3859 to: "outline";
3860 offset: -5 -5;
3861 }
3862 rel2 {
3863 to: "outline";
3864 offset: 4 4;
3865 }
3866 image {
3867 normal: "cr_key.png";
3868 border: 4 4 4 4;
3869 }
3870 color: 51 153 255 0;
3871 }
3872 description { state: "on" 0.0;
3873 inherit: "default" 0.0;
3874 color: 51 153 255 255;
3875 }
3876 description { state: "out" 0.0;
3877 inherit: "default" 0.0;
3878 color: 51 153 255 0;
3879 rel1.offset: -7 -15;
3880 rel2.offset: 6 14;
3881 }
3882 }
3883 part { name: "pulse";
3884 mouse_events: 0;
3885 description { state: "default" 0.0;
3886 rel1 {
3887 to: "outline";
3888 offset: -4 -4;
3889 }
3890 rel2 {
3891 to: "outline";
3892 offset: 3 3;
3893 }
3894 image {
3895 normal: "cr_underline_pulse.png";
3896 border: 4 4 4 4;
3897 }
3898 color: 51 153 255 0;
3899 }
3900 description { state: "on" 0.0;
3901 inherit: "default" 0.0;
3902 color: 51 153 255 255;
3903 }
3904 description { state: "out" 0.0;
3905 inherit: "default" 0.0;
3906 color: 51 153 255 0;
3907 rel1.offset: -8 -8;
3908 rel2.offset: 7 7;
3909 }
3910 }
3911 part { name: "glow";
3912 mouse_events: 0;
3913 description { state: "default" 0.0;
3914 rel1.offset: -4 -4;
3915 rel2.offset: 3 3;
3916 image {
3917 normal: "cr_underline_glow.png";
3918 border: 9 9 9 9;
3919 }
3920 color: 51 153 255 40;
3921 }
3922 description { state: "focused" 0.0;
3923 inherit: "default" 0.0;
3924 color: 51 153 255 255;
3925 }
3926 }
3927 part { name: "outline";
3928 mouse_events: 0;
3929 description { state: "default" 0.0;
3930 image {
3931 normal: "cr_underline_out.png";
3932 border: 3 3 3 3;
3933 }
3934 color: 51 153 255 80;
3935 }
3936 description { state: "focused" 0.0;
3937 inherit: "default" 0.0;
3938 color: 255 255 255 255;
3939 }
3940 }
3941 programs {
3942 program {
3943 signal: "focus,in,noblink"; source: "terminology";
3944 action: STATE_SET "focused" 0.0;
3945 target: "glow";
3946 target: "outline";
3947 }
3948 program { name: "focus_in";
3949 signal: "focus,in"; source: "terminology";
3950 action: STATE_SET "focused" 0.0;
3951 target: "glow";
3952 target: "outline";
3953 after: "focus2";
3954 after: "pulse";
3955 }
3956 program { name: "focus2";
3957 in: 0.5 0.0;
3958 action: STATE_SET "default" 0.0;
3959 transition: DECELERATE 0.2;
3960 target: "glow";
3961 target: "outline";
3962 after: "focus3";
3963 }
3964 program { name: "focus3";
3965 in: 0.5 0.0;
3966 action: STATE_SET "focused" 0.0;
3967 target: "glow";
3968 target: "outline";
3969 after: "focus2";
3970 after: "pulse";
3971 }
3972 program { name: "pulse";
3973 action: STATE_SET "on" 0.0;
3974 target: "pulse";
3975 after: "pulse2";
3976 }
3977 program { name: "pulse2";
3978 action: STATE_SET "out" 0.0;
3979 transition: DECELERATE 0.4;
3980 target: "pulse";
3981 }
3982 program {
3983 signal: "focus,out"; source: "terminology";
3984 action: ACTION_STOP;
3985 target: "focus_in";
3986 target: "focus2";
3987 target: "focus3";
3988 target: "pulse";
3989 target: "pulse2";
3990 after: "focus_out2";
3991 }
3992 program { name: "focus_out2";
3993 action: STATE_SET "default" 0.0;
3994 target: "glow";
3995 target: "outline";
3996 }
3997 program {
3998 signal: "key,down"; source: "terminology";
3999 script {
4000 new buf[32];
4001 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
4002 run_program(get_program_id(buf));
4003 }
4004 }
4005 program { name: "key-down1";
4006 action: PLAY_SAMPLE "key-tap1" 1.0 INPUT;
4007 }
4008 program { name: "key-down2";
4009 action: PLAY_SAMPLE "key-tap2" 1.0 INPUT;
4010 }
4011 program { name: "key-down3";
4012 action: PLAY_SAMPLE "key-tap3" 1.0 INPUT;
4013 }
4014 program { name: "key-down4";
4015 action: PLAY_SAMPLE "key-tap4" 1.0 INPUT;
4016 }
4017 program { name: "key-down5";
4018 action: PLAY_SAMPLE "key-tap5" 1.0 INPUT;
4019 }
4020 program {
4021 signal: "key,down"; source: "terminology";
4022 action: STATE_SET "default" 0.0;
4023 target: "key";
4024 after: "key2";
4025 }
4026 program { name: "key2";
4027 action: STATE_SET "on" 0.0;
4028 target: "key";
4029 after: "key3";
4030 }
4031 program { name: "key3";
4032 action: STATE_SET "out" 0.0;
4033 transition: DECELERATE 0.3;
4034 target: "key";
4035 }
4036 }
4037 }
4038 }
3615 /////////////////////////////////////////////////////////////////////////// 4039 ///////////////////////////////////////////////////////////////////////////
3616 //// an object to contain the selection tool used for selecting tabs (with 4040 //// an object to contain the selection tool used for selecting tabs (with
3617 //// a glow grid of terms 4041 //// a glow grid of terms