summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-04-09 05:25:27 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-04-09 05:25:27 +0000
commit83dd794a6b43b6929f8a64d559d13522bb95dad5 (patch)
tree1b76f9906a06b8009ac2cab8be2b13c34a8ae2c0 /data
parent7e549cc34f70188a7736ef6c05ab7c22772d9be4 (diff)
support "guide text" for entries. trivial internal + theme changes :)
SVN revision: 69961
Diffstat (limited to 'data')
-rw-r--r--data/themes/widgets/entry.edc140
1 files changed, 140 insertions, 0 deletions
diff --git a/data/themes/widgets/entry.edc b/data/themes/widgets/entry.edc
index 8ab026810..6fbee9d96 100644
--- a/data/themes/widgets/entry.edc
+++ b/data/themes/widgets/entry.edc
@@ -718,11 +718,34 @@ group { name: "elm/entry/base/default";
718 tag: "preedit" "+ underline=on underline_color=#000"; 718 tag: "preedit" "+ underline=on underline_color=#000";
719 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; 719 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
720 } 720 }
721 style { name: "entry_textblock_guide_style";
722 base: "font=Sans font_size=10 color=#00000040 wrap=word text_class=entry left_margin=4 right_margin=4 ellipsis=0.0";
723 tag: "em" "+ font_style=Oblique";
724 tag: "hilight" "+ font_weight=Bold";
725 }
721 } 726 }
722 data { 727 data {
723 // item: context_menu_orientation "horizontal"; 728 // item: context_menu_orientation "horizontal";
724 } 729 }
725 parts { 730 parts {
731 part { name: "elm.guide";
732 type: TEXTBLOCK;
733 mouse_events: 0;
734 scale: 1;
735 description { state: "default" 0.0;
736 rel1.to: "elm.text";
737 rel2.to: "elm.text";
738 text {
739 style: "entry_textblock_guide_style";
740 min: 0 1;
741 align: 0.0 0.0;
742 }
743 }
744 description { state: "hidden" 0.0;
745 inherit: "default" 0.0;
746 visible: 0;
747 }
748 }
726 part { name: "elm.text"; 749 part { name: "elm.text";
727 type: TEXTBLOCK; 750 type: TEXTBLOCK;
728 mouse_events: 1; 751 mouse_events: 1;
@@ -773,6 +796,18 @@ group { name: "elm/entry/base/default";
773 action: STATE_SET "default" 0.0; 796 action: STATE_SET "default" 0.0;
774 target: "elm.text"; 797 target: "elm.text";
775 } 798 }
799 program { name: "gdisable";
800 signal: "elm,guide,disabled";
801 source: "elm";
802 action: STATE_SET "hidden" 0.0;
803 target: "elm.guide";
804 }
805 program { name: "genable";
806 signal: "elm,guide,enabled";
807 source: "elm";
808 action: STATE_SET "default" 0.0;
809 target: "elm.guide";
810 }
776 } 811 }
777} 812}
778 813
@@ -796,8 +831,31 @@ group { name: "elm/entry/base-mixedwrap/default";
796 tag: "preedit" "+ underline=on underline_color=#000"; 831 tag: "preedit" "+ underline=on underline_color=#000";
797 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; 832 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
798 } 833 }
834 style { name: "entry_textblock_guide_style_mixedwrap";
835 base: "font=Sans font_size=10 color=#00000040 wrap=mixed text_class=entry left_margin=4 right_margin=4 ellipsis=0.0";
836 tag: "em" "+ font_style=Oblique";
837 tag: "hilight" "+ font_weight=Bold";
838 }
799 } 839 }
800 parts { 840 parts {
841 part { name: "elm.guide";
842 type: TEXTBLOCK;
843 mouse_events: 0;
844 scale: 1;
845 description { state: "default" 0.0;
846 rel1.to: "elm.text";
847 rel2.to: "elm.text";
848 text {
849 style: "entry_textblock_guide_style_mixedwrap";
850 min: 0 1;
851 align: 0.0 0.0;
852 }
853 }
854 description { state: "hidden" 0.0;
855 inherit: "default" 0.0;
856 visible: 0;
857 }
858 }
801 part { name: "elm.text"; 859 part { name: "elm.text";
802 description { state: "default" 0.0; 860 description { state: "default" 0.0;
803 fixed: 1 0; 861 fixed: 1 0;
@@ -838,8 +896,31 @@ group { name: "elm/entry/base-charwrap/default";
838 tag: "preedit" "+ underline=on underline_color=#000"; 896 tag: "preedit" "+ underline=on underline_color=#000";
839 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; 897 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
840 } 898 }
899 style { name: "entry_textblock_guide_style_charwrap";
900 base: "font=Sans font_size=10 color=#00000040 wrap=char text_class=entry left_margin=4 right_margin=4 ellipsis=0.0";
901 tag: "em" "+ font_style=Oblique";
902 tag: "hilight" "+ font_weight=Bold";
903 }
841 } 904 }
842 parts { 905 parts {
906 part { name: "elm.guide";
907 type: TEXTBLOCK;
908 mouse_events: 0;
909 scale: 1;
910 description { state: "default" 0.0;
911 rel1.to: "elm.text";
912 rel2.to: "elm.text";
913 text {
914 style: "entry_textblock_guide_style_charwrap";
915 min: 0 1;
916 align: 0.0 0.0;
917 }
918 }
919 description { state: "hidden" 0.0;
920 inherit: "default" 0.0;
921 visible: 0;
922 }
923 }
843 part { name: "elm.text"; 924 part { name: "elm.text";
844 description { state: "default" 0.0; 925 description { state: "default" 0.0;
845 fixed: 1 0; 926 fixed: 1 0;
@@ -863,6 +944,24 @@ group { name: "elm/entry/base-charwrap/default";
863group { name: "elm/entry/base-nowrap/default"; 944group { name: "elm/entry/base-nowrap/default";
864 inherit: "elm/entry/base/default"; 945 inherit: "elm/entry/base/default";
865 parts { 946 parts {
947 part { name: "elm.guide";
948 type: TEXTBLOCK;
949 mouse_events: 0;
950 scale: 1;
951 description { state: "default" 0.0;
952 rel1.to: "elm.text";
953 rel2.to: "elm.text";
954 text {
955 style: "entry_textblock_guide_style";
956 min: 0 1;
957 align: 0.0 0.0;
958 }
959 }
960 description { state: "hidden" 0.0;
961 inherit: "default" 0.0;
962 visible: 0;
963 }
964 }
866 part { name: "elm.text"; 965 part { name: "elm.text";
867 description { state: "default" 0.0; 966 description { state: "default" 0.0;
868 text { 967 text {
@@ -902,8 +1001,31 @@ group { name: "elm/entry/base-single/default";
902 tag: "preedit" "+ underline=on underline_color=#000"; 1001 tag: "preedit" "+ underline=on underline_color=#000";
903 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; 1002 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
904 } 1003 }
1004 style { name: "entry_single_textblock_guide_style";
1005 base: "font=Sans font_size=10 color=#00000080 wrap=none text_class=entry left_margin=4 right_margin=4 ellipsis=0.0";
1006 tag: "em" "+ font_style=Oblique";
1007 tag: "hilight" "+ font_weight=Bold";
1008 }
905 } 1009 }
906 parts { 1010 parts {
1011 part { name: "elm.guide";
1012 type: TEXTBLOCK;
1013 mouse_events: 0;
1014 scale: 1;
1015 description { state: "default" 0.0;
1016 rel1.to: "elm.text";
1017 rel2.to: "elm.text";
1018 text {
1019 style: "entry_single_textblock_guide_style";
1020 min: 0 1;
1021 align: 0.0 0.0;
1022 }
1023 }
1024 description { state: "hidden" 0.0;
1025 inherit: "default" 0.0;
1026 visible: 0;
1027 }
1028 }
907 part { name: "elm.text"; 1029 part { name: "elm.text";
908 multiline: 0; 1030 multiline: 0;
909 description { state: "default" 0.0; 1031 description { state: "default" 0.0;
@@ -1057,6 +1179,24 @@ group { name: "elm/entry/base-nowrap-noedit/default";
1057group { name: "elm/entry/base-password/default"; 1179group { name: "elm/entry/base-password/default";
1058 inherit: "elm/entry/base/default"; 1180 inherit: "elm/entry/base/default";
1059 parts { 1181 parts {
1182 part { name: "elm.guide";
1183 type: TEXTBLOCK;
1184 mouse_events: 0;
1185 scale: 1;
1186 description { state: "default" 0.0;
1187 rel1.to: "elm.text";
1188 rel2.to: "elm.text";
1189 text {
1190 style: "entry_single_textblock_guide_style";
1191 min: 0 1;
1192 align: 0.0 0.0;
1193 }
1194 }
1195 description { state: "hidden" 0.0;
1196 inherit: "default" 0.0;
1197 visible: 0;
1198 }
1199 }
1060 part { name: "elm.text"; 1200 part { name: "elm.text";
1061 entry_mode: PASSWORD; 1201 entry_mode: PASSWORD;
1062 multiline: 0; 1202 multiline: 0;