summaryrefslogtreecommitdiff
path: root/data/elementary/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-30 14:19:03 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-30 14:19:03 +0000
commit9c04c1d1c8c08bf9d98f498b1f885fadddf16306 (patch)
tree718418fec11bc4c3a2a32aef36401b115e3aa8e6 /data/elementary/themes
parenta1c21eb59e104cc8d8b538bf94f69950f30eb319 (diff)
TH - clean up new radio styles
Diffstat (limited to 'data/elementary/themes')
-rw-r--r--data/elementary/themes/edc/elm/radio.edc460
1 files changed, 60 insertions, 400 deletions
diff --git a/data/elementary/themes/edc/elm/radio.edc b/data/elementary/themes/edc/elm/radio.edc
index 070891fef3..4f2d4ab20e 100644
--- a/data/elementary/themes/edc/elm/radio.edc
+++ b/data/elementary/themes/edc/elm/radio.edc
@@ -1,7 +1,16 @@
1group { name: "elm/radio/base/default"; 1group { name: "elm/radio/base/default";
2 images.image: "radio.png" COMP; 2 images.image: "radio.png" COMP;
3#define SELECTED 8
3 script { 4 script {
4 BUTTONMODE_SCRIPT 5 BUTTONMODE_SCRIPT
6 public sel;
7 public eval_sel(m) {
8 if (m) {
9 set_state(PART:"ck_check", "selected", 0.0);
10 } else {
11 set_state(PART:"ck_check", "default", 0.0);
12 }
13 }
5 } 14 }
6 parts { 15 parts {
7 part { name: "shadow"; type: SPACER; 16 part { name: "shadow"; type: SPACER;
@@ -196,107 +205,81 @@ group { name: "elm/radio/base/default";
196 } 205 }
197 } 206 }
198 programs { 207 programs {
199 program { 208 program { signal: "mouse,clicked,1"; source: "event";
200 signal: "mouse,clicked,1"; source: "event";
201 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm"; 209 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
202 } 210 }
203 program { 211 program { signal: "elm,state,radio,on"; source: "elm";
204 signal: "elm,state,radio,on"; source: "elm"; 212 script {
205 action: STATE_SET "selected" 0.0; 213 new m = get_int(sel) | SELECTED;
206 target: "ck_check"; 214 set_int(sel, m);
215 eval_sel(m);
216 }
207 } 217 }
208 program { 218 program { signal: "elm,state,radio,off"; source: "elm";
209 signal: "elm,state,radio,off"; source: "elm"; 219 script {
210 action: STATE_SET "default" 0.0; 220 new m = get_int(sel) & ~SELECTED;
211 target: "ck_check"; 221 set_int(sel, m);
222 eval_sel(m);
223 }
212 } 224 }
213 program { 225 program { signal: "mouse,down,1"; source: "event";
214 signal: "mouse,down,1"; source: "event";
215 action: SIGNAL_EMIT "elm,action,press" "elm"; 226 action: SIGNAL_EMIT "elm,action,press" "elm";
216 after: "button_click_anim"; 227 after: "button_click_anim";
217 } 228 }
218 program {
219 signal: "mouse,down,1"; source: "event";
220 action: STATE_SET "pressed" 0.0;
221 target: "ck_check";
222 }
223 program { name: "button_click_anim"; 229 program { name: "button_click_anim";
224 script { flag_set(PRESSED); } 230 script { flag_set(PRESSED); }
225 } 231 }
226 program { name: "button_unclick"; 232 program { signal: "mouse,down,1"; source: "event";
227 signal: "mouse,up,1"; source: "event"; 233 script { eval_sel(get_int(sel) | SELECTED); }
234 }
235 program { signal: "mouse,up,1"; source: "event";
228 action: SIGNAL_EMIT "elm,action,unpress" "elm"; 236 action: SIGNAL_EMIT "elm,action,unpress" "elm";
229 after: "button_unclick_anim"; 237 after: "button_unclick_anim";
230 } 238 }
231 program {
232 signal: "mouse,up,1"; source: "event";
233 action: STATE_SET "default" 0.0;
234 target: "ck_check";
235 }
236 program { name: "button_unclick_anim"; 239 program { name: "button_unclick_anim";
237 script { flag_unset(PRESSED); } 240 script { flag_unset(PRESSED); }
238 } 241 }
239 program { name: "buttonactivate"; 242 program { signal: "mouse,up,1"; source: "event";
240 signal: "elm,anim,activate"; source: "elm"; 243 script { eval_sel(get_int(sel)); }
241 action: STATE_SET "pressed" 0.0;
242 target: "ck_check";
243 after: "button_unpressed_anim";
244 }
245 program { name: "button_unpressed_anim";
246 in: 0.5 0.0;
247 action: STATE_SET "default" 0.0;
248 target: "ck_check";
249 } 244 }
250 program { 245 program { signal: "mouse,clicked,1"; source: "event";
251 signal: "mouse,clicked,1"; source: "event";
252 action: SIGNAL_EMIT "elm,action,click" "elm"; 246 action: SIGNAL_EMIT "elm,action,click" "elm";
253 } 247 }
254 program { name: "button_text_visible"; 248 program { signal: "elm,state,text,visible"; source: "elm";
255 signal: "elm,state,text,visible"; source: "elm";
256 script { flag_set(LABEL); } 249 script { flag_set(LABEL); }
257 } 250 }
258 program { name: "button_text_hidden"; 251 program { signal: "elm,state,text,hidden"; source: "elm";
259 signal: "elm,state,text,hidden"; source: "elm";
260 script { flag_unset(LABEL); } 252 script { flag_unset(LABEL); }
261 } 253 }
262 program { name: "button_icon_visible"; 254 program { signal: "elm,state,icon,visible"; source: "elm";
263 signal: "elm,state,icon,visible"; source: "elm";
264 script { flag_set(ICON); } 255 script { flag_set(ICON); }
265 } 256 }
266 program { name: "button_icon_hidden"; 257 program { signal: "elm,state,icon,hidden"; source: "elm";
267 signal: "elm,state,icon,hidden"; source: "elm";
268 script { flag_unset(ICON); } 258 script { flag_unset(ICON); }
269 } 259 }
270 program { name: "button_background_visible"; 260 program { signal: "elm,state,background,visible"; source: "elm";
271 signal: "elm,state,background,visible"; source: "elm";
272 script { flag_set(BACKGROUND); } 261 script { flag_set(BACKGROUND); }
273 } 262 }
274 program { name: "button_background_hidden"; 263 program { signal: "elm,state,background,hidden"; source: "elm";
275 signal: "elm,state,background,hidden"; source: "elm";
276 script { flag_unset(BACKGROUND); } 264 script { flag_unset(BACKGROUND); }
277 } 265 }
278 program { name: "button_state_disabled"; 266 program { signal: "elm,state,disabled"; source: "elm";
279 signal: "elm,state,disabled"; source: "elm";
280 script { flag_set(DISABLE); } 267 script { flag_set(DISABLE); }
281 } 268 }
282 program { name: "button_state_enabled"; 269 program { signal: "elm,state,enabled"; source: "elm";
283 signal: "elm,state,enabled"; source: "elm";
284 script { flag_unset(DISABLE); } 270 script { flag_unset(DISABLE); }
285 } 271 }
286 program { 272 program { signal: "elm,state,disabled"; source: "elm";
287 signal: "elm,state,disabled"; source: "elm";
288 action: STATE_SET "disabled" 0.0; 273 action: STATE_SET "disabled" 0.0;
289 target: "ck_check"; 274 target: "ck_check";
290 } 275 }
291 program { 276 program { signal: "elm,state,enabled"; source: "elm";
292 signal: "elm,state,enabled"; source: "elm";
293 action: STATE_SET "default" 0.0; 277 action: STATE_SET "default" 0.0;
294 target: "ck_check"; 278 target: "ck_check";
295 } 279 }
296 } 280 }
297} 281}
298 282
299#define SELECTED 8
300group { name: "elm/radio/base/plain"; 283group { name: "elm/radio/base/plain";
301 alias: "elm/check/base/plain"; 284 alias: "elm/check/base/plain";
302 images.image: "win_shadow.png" COMP; 285 images.image: "win_shadow.png" COMP;
@@ -435,9 +418,9 @@ group { name: "elm/radio/base/plain";
435 visible: 0; 418 visible: 0;
436 align: 0.0 0.5; 419 align: 0.0 0.5;
437 max: 0 0; 420 max: 0 0;
438 rel1.offset: 0 6; 421 rel1.offset: 0 8;
439 rel2.relative: 0.0 1.0; 422 rel2.relative: 0.0 1.0;
440 rel2.offset: 0 -7; 423 rel2.offset: 0 -9;
441 offscale; 424 offscale;
442 } 425 }
443 description { state: "icononly" 0.0; 426 description { state: "icononly" 0.0;
@@ -446,18 +429,17 @@ group { name: "elm/radio/base/plain";
446 align: 0.5 0.5; 429 align: 0.5 0.5;
447 max: 9999 9999; 430 max: 9999 9999;
448 min: 16 16; 431 min: 16 16;
449 rel1.offset: 6 6; 432 rel1.offset: 8 8;
450 rel2.offset: 6 -7;
451 rel2.relative: 1.0 1.0; 433 rel2.relative: 1.0 1.0;
452 rel2.offset: -5 -5; 434 rel2.offset: -9 -9;
453 fixed: 0 0; 435 fixed: 0 0;
454 } 436 }
455 description { state: "visible" 0.0; 437 description { state: "visible" 0.0;
456 inherit: "default" 0.0; 438 inherit: "default" 0.0;
457 visible: 1; 439 visible: 1;
458 aspect: 1.0 1.0; 440 aspect: 1.0 1.0;
459 rel1.offset: 6 6; 441 rel1.offset: 8 8;
460 rel2.offset: 6 -7; 442 rel2.offset: 8 -9;
461 max: 9999 9999; 443 max: 9999 9999;
462 min: 16 16; 444 min: 16 16;
463 } 445 }
@@ -497,10 +479,10 @@ group { name: "elm/radio/base/plain";
497 scale: 1; 479 scale: 1;
498 description { state: "default" 0.0; 480 description { state: "default" 0.0;
499 fixed: 1 1; 481 fixed: 1 1;
500 rel1.offset: 0 6; 482 rel1.offset: 0 8;
501 rel1.to_x: "elm.swallow.content"; 483 rel1.to_x: "elm.swallow.content";
502 rel1.relative: 1.0 0.0; 484 rel1.relative: 1.0 0.0;
503 rel2.offset: -7 -7; 485 rel2.offset: -9 -9;
504 color: 192 192 192 255; 486 color: 192 192 192 255;
505 text { font: FN; size: 10; 487 text { font: FN; size: 10;
506 min: 0 0; 488 min: 0 0;
@@ -516,7 +498,7 @@ group { name: "elm/radio/base/plain";
516 description { state: "visible" 0.0; 498 description { state: "visible" 0.0;
517 inherit: "default" 0.0; 499 inherit: "default" 0.0;
518 fixed: 0 0; 500 fixed: 0 0;
519 rel1.offset: 6 6; 501 rel1.offset: 8 8;
520 visible: 1; 502 visible: 1;
521 text.min: 1 1; 503 text.min: 1 1;
522 text.ellipsis: -1; 504 text.ellipsis: -1;
@@ -528,7 +510,7 @@ group { name: "elm/radio/base/plain";
528 description { state: "disabled_visible" 0.0; 510 description { state: "disabled_visible" 0.0;
529 inherit: "default" 0.0; 511 inherit: "default" 0.0;
530 color: 96 96 96 255; 512 color: 96 96 96 255;
531 rel1.offset: 6 6; 513 rel1.offset: 8 8;
532 visible: 1; 514 visible: 1;
533 text.min: 1 1; 515 text.min: 1 1;
534 text.ellipsis: -1; 516 text.ellipsis: -1;
@@ -577,9 +559,6 @@ group { name: "elm/radio/base/plain";
577 program { signal: "mouse,clicked,1"; source: "event"; 559 program { signal: "mouse,clicked,1"; source: "event";
578 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm"; 560 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
579 } 561 }
580 program { signal: "mouse,clicked,1"; source: "event";
581 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
582 }
583 program { signal: "elm,state,*,on"; source: "elm"; 562 program { signal: "elm,state,*,on"; source: "elm";
584 script { 563 script {
585 new m = get_int(btmode); 564 new m = get_int(btmode);
@@ -777,9 +756,9 @@ group { name: "elm/radio/base/icon";
777 visible: 0; 756 visible: 0;
778 align: 0.5 0.0; 757 align: 0.5 0.0;
779 max: 0 0; 758 max: 0 0;
780 rel1.offset: 6 0; 759 rel1.offset: 8 0;
781 rel2.relative: 1.0 0.0; 760 rel2.relative: 1.0 0.0;
782 rel2.offset: -7 0; 761 rel2.offset: -9 0;
783 offscale; 762 offscale;
784 } 763 }
785 description { state: "icononly" 0.0; 764 description { state: "icononly" 0.0;
@@ -788,18 +767,17 @@ group { name: "elm/radio/base/icon";
788 align: 0.5 0.5; 767 align: 0.5 0.5;
789 max: 9999 9999; 768 max: 9999 9999;
790 min: 16 16; 769 min: 16 16;
791 rel1.offset: 6 6; 770 rel1.offset: 8 8;
792 rel2.offset: 6 -7; 771 rel2.offset: -9 -9;
793 rel2.relative: 1.0 1.0; 772 rel2.relative: 1.0 1.0;
794 rel2.offset: -5 -5;
795 fixed: 0 0; 773 fixed: 0 0;
796 } 774 }
797 description { state: "visible" 0.0; 775 description { state: "visible" 0.0;
798 inherit: "default" 0.0; 776 inherit: "default" 0.0;
799 visible: 1; 777 visible: 1;
800 aspect: 1.0 1.0; 778 aspect: 1.0 1.0;
801 rel1.offset: 6 5; 779 rel1.offset: 8 8;
802 rel2.offset: -5 5; 780 rel2.offset: -9 8;
803 max: 9999 9999; 781 max: 9999 9999;
804 min: 16 16; 782 min: 16 16;
805 fixed: 1 1; 783 fixed: 1 1;
@@ -840,10 +818,10 @@ group { name: "elm/radio/base/icon";
840 scale: 1; 818 scale: 1;
841 description { state: "default" 0.0; 819 description { state: "default" 0.0;
842 fixed: 1 1; 820 fixed: 1 1;
843 rel1.offset: 6 0; 821 rel1.offset: 8 0;
844 rel1.to_y: "elm.swallow.content"; 822 rel1.to_y: "elm.swallow.content";
845 rel1.relative: 0.0 1.0; 823 rel1.relative: 0.0 1.0;
846 rel2.offset: -7 -7; 824 rel2.offset: -9 -9;
847 color: 192 192 192 255; 825 color: 192 192 192 255;
848 text { font: FN; size: 10; 826 text { font: FN; size: 10;
849 min: 0 0; 827 min: 0 0;
@@ -859,7 +837,7 @@ group { name: "elm/radio/base/icon";
859 description { state: "visible" 0.0; 837 description { state: "visible" 0.0;
860 inherit: "default" 0.0; 838 inherit: "default" 0.0;
861 fixed: 0 0; 839 fixed: 0 0;
862 rel1.offset: 6 6; 840 rel1.offset: 8 8;
863 visible: 1; 841 visible: 1;
864 text.min: 1 1; 842 text.min: 1 1;
865 text.ellipsis: -1; 843 text.ellipsis: -1;
@@ -871,7 +849,7 @@ group { name: "elm/radio/base/icon";
871 description { state: "disabled_visible" 0.0; 849 description { state: "disabled_visible" 0.0;
872 inherit: "default" 0.0; 850 inherit: "default" 0.0;
873 color: 96 96 96 255; 851 color: 96 96 96 255;
874 rel1.offset: 6 6; 852 rel1.offset: 8 8;
875 visible: 1; 853 visible: 1;
876 text.min: 1 1; 854 text.min: 1 1;
877 text.ellipsis: -1; 855 text.ellipsis: -1;
@@ -920,323 +898,6 @@ group { name: "elm/radio/base/icon";
920 program { signal: "mouse,clicked,1"; source: "event"; 898 program { signal: "mouse,clicked,1"; source: "event";
921 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm"; 899 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
922 } 900 }
923 program { signal: "mouse,clicked,1"; source: "event";
924 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
925 }
926 program { signal: "elm,state,*,on"; source: "elm";
927 script {
928 new m = get_int(btmode);
929 m |= SELECTED; set_int(btmode, m);
930 eval_mode(m);
931 }
932 }
933 program { signal: "elm,state,*,off"; source: "elm";
934 script {
935 new m = get_int(btmode);
936 m &= ~SELECTED; set_int(btmode, m);
937 eval_mode(m);
938 }
939 }
940 program { signal: "elm,state,text,visible"; source: "elm";
941 script {
942 new m = get_int(btmode);
943 m |= LABEL; set_int(btmode, m);
944 eval_mode(m);
945 }
946 }
947 program { signal: "elm,state,text,hidden"; source: "elm";
948 script {
949 new m = get_int(btmode);
950 m &= ~LABEL; set_int(btmode, m);
951 eval_mode(m);
952 }
953 }
954 program { signal: "elm,state,icon,visible"; source: "elm";
955 script {
956 new m = get_int(btmode);
957 m |= ICON; set_int(btmode, m);
958 eval_mode(m);
959 }
960 }
961 program { signal: "elm,state,icon,hidden"; source: "elm";
962 script {
963 new m = get_int(btmode);
964 m &= ~ICON; set_int(btmode, m);
965 eval_mode(m);
966 }
967 }
968 program { signal: "elm,state,disabled"; source: "elm";
969 script {
970 new m = get_int(btmode);
971 m |= DISABLE; set_int(btmode, m);
972 eval_mode(m);
973 }
974 }
975 program { signal: "elm,state,enabled"; source: "elm";
976 script {
977 new m = get_int(btmode);
978 m &= ~DISABLE; set_int(btmode, m);
979 eval_mode(m);
980 }
981 }
982 }
983}
984/*
985group { name: "elm/radio/base/icon";
986 alias: "elm/check/base/icon";
987 images.image: "button_normal.png" COMP;
988 images.image: "button_clicked.png" COMP;
989 images.image: "horizontal_separated_bar_small_glow.png" COMP;
990 script {
991 public btmode;
992 public eval_mode(m) {
993 new m1 = m & MASK;
994 new d = m & DISABLE;
995 new s = m & SELECTED;
996 if (s) {
997 set_state(PART:"base", "selected", 0.0);
998 set_state(PART:"bar", "selected", 0.0);
999 } else {
1000 set_state(PART:"base", "default", 0.0);
1001 set_state(PART:"bar", "default", 0.0);
1002 }
1003 if (m1 == (ICON | LABEL)) {
1004 if (!d) {
1005 set_state(PART:"elm.swallow.content", "visible", 0.0);
1006 set_state(PART:"sizer_content", "visible", 0.0);
1007 set_state(PART:"elm.text", "visible", 0.0);
1008 set_state(PART:"clip", "default", 0.0);
1009 set_state(PART:"event", "default", 0.0);
1010 } else {
1011 set_state(PART:"elm.swallow.content", "visible", 0.0);
1012 set_state(PART:"sizer_content", "visible", 0.0);
1013 set_state(PART:"elm.text", "disabled_visible", 0.0);
1014 set_state(PART:"clip", "disabled", 0.0);
1015 set_state(PART:"event", "disabled", 0.0);
1016 }
1017 } else if (m1 == (ICON)) {
1018 if (!d) {
1019 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1020 set_state(PART:"sizer_content", "icononly", 0.0);
1021 set_state(PART:"elm.text", "default", 0.0);
1022 set_state(PART:"clip", "default", 0.0);
1023 set_state(PART:"event", "default", 0.0);
1024 } else {
1025 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1026 set_state(PART:"sizer_content", "icononly", 0.0);
1027 set_state(PART:"elm.text", "disabled", 0.0);
1028 set_state(PART:"clip", "disabled", 0.0);
1029 set_state(PART:"event", "disabled", 0.0);
1030 }
1031 } else if (m1 == (LABEL)) {
1032 if (!d) {
1033 set_state(PART:"elm.swallow.content", "default", 0.0);
1034 set_state(PART:"sizer_content", "default", 0.0);
1035 set_state(PART:"elm.text", "visible", 0.0);
1036 set_state(PART:"clip", "default", 0.0);
1037 set_state(PART:"event", "default", 0.0);
1038 } else {
1039 set_state(PART:"elm.swallow.content", "default", 0.0);
1040 set_state(PART:"sizer_content", "default", 0.0);
1041 set_state(PART:"elm.text", "disabled_visible", 0.0);
1042 set_state(PART:"clip", "disabled", 0.0);
1043 set_state(PART:"event", "disabled", 0.0);
1044 }
1045 } else {
1046 if (!d) {
1047 set_state(PART:"elm.swallow.content", "default", 0.0);
1048 set_state(PART:"sizer_content", "default", 0.0);
1049 set_state(PART:"elm.text", "default", 0.0);
1050 set_state(PART:"clip", "default", 0.0);
1051 set_state(PART:"event", "default", 0.0);
1052 } else {
1053 set_state(PART:"elm.swallow.content", "default", 0.0);
1054 set_state(PART:"sizer_content", "default", 0.0);
1055 set_state(PART:"elm.text", "default", 0.0);
1056 set_state(PART:"clip", "disabled", 0.0);
1057 set_state(PART:"event", "disabled", 0.0);
1058 }
1059 }
1060 }
1061 }
1062 parts {
1063 part { name: "base"; mouse_events: 0;
1064 description { state: "default" 0.0;
1065 rel1.offset: -1 0;
1066 rel2.offset: 0 1;
1067 image.normal: "button_normal.png";
1068 image.border: 4 4 3 5;
1069 image.middle: SOLID;
1070 fill.smooth: 0;
1071 }
1072 description { state: "selected" 0.0;
1073 inherit: "default" 0.0;
1074 image.normal: "button_clicked.png";
1075 image.border: 5 5 4 6;
1076 }
1077 description { state: "disabled" 0.0;
1078 inherit: "default" 0.0;
1079 }
1080 }
1081 part { name: "clip"; type: RECT;
1082 description { state: "default" 0.0;
1083 }
1084 description { state: "disabled" 0.0;
1085 inherit: "default" 0.0;
1086 color: 255 255 255 64;
1087 }
1088 }
1089 part { name: "elm.swallow.content"; type: SWALLOW;
1090 scale: 1;
1091 clip_to: "clip";
1092 description { state: "default" 0.0;
1093 fixed: 1 0;
1094 visible: 0;
1095 align: 0.5 0.0;
1096 max: 0 0;
1097 rel1.offset: 6 2;
1098 rel1.to: "base";
1099 rel2.relative: 1.0 0.0;
1100 rel2.offset: -7 2;
1101 rel2.to: "base";
1102 }
1103 description { state: "icononly" 0.0;
1104 inherit: "default" 0.0;
1105 fixed: 0 0;
1106 visible: 1;
1107 align: 0.5 0.5;
1108 max: 9999 9999;
1109 min: 16 16;
1110 rel2.relative: 1.0 1.0;
1111 rel2.offset: -7 -8;
1112 fixed: 0 0;
1113 }
1114 description { state: "visible" 0.0;
1115 inherit: "default" 0.0;
1116 fixed: 0 0;
1117 visible: 1;
1118 rel1.offset: 6 5;
1119 rel2.offset: -7 5;
1120 aspect: 1.0 1.0;
1121 max: 9999 9999;
1122 min: 16 16;
1123 }
1124 }
1125 part { name: "sizer_content"; type: TEXT; mouse_events: 0;
1126 scale: 1;
1127 description { state: "default" 0.0;
1128 fixed: 1 1;
1129 visible: 0;
1130 text { font: FN; size: 10;
1131 min: 0 0;
1132 text_class: "radio_text";
1133 }
1134 }
1135 description { state: "visible" 0.0;
1136 inherit: "default" 0.0;
1137 rel1.to: "elm.swallow.content";
1138 rel2.to: "elm.swallow.content";
1139 text {
1140 min: 1 1;
1141 ellipsis: -1;
1142 text: "M";
1143 }
1144 }
1145 description { state: "icononly" 0.0;
1146 inherit: "default" 0.0;
1147 rel1.to: "elm.swallow.content";
1148 rel2.to: "elm.swallow.content";
1149 text {
1150 min: 1 1;
1151 ellipsis: -1;
1152 text: "M";
1153 }
1154 }
1155 }
1156 part { name: "elm.text"; type: TEXT; mouse_events: 0;
1157 effect: SHADOW BOTTOM;
1158 scale: 1;
1159 description { state: "default" 0.0;
1160 rel1.offset: 6 2;
1161 rel1.to_y: "elm.swallow.content";
1162 rel1.relative: 0.0 1.0;
1163 rel2.offset: -8 -8;
1164 rel2.to: "base";
1165 color: FN_COL_DEFAULT;
1166 color_class: "radio_text";
1167 text { font: FN; size: 10;
1168 min: 0 0;
1169 align: 0.5 1.0;
1170 text_class: "radio";
1171 }
1172 }
1173 description { state: "disabled" 0.0;
1174 inherit: "default" 0.0;
1175 color_class: "radio_text_disabled";
1176 color3: 255 255 255 255;
1177 }
1178 description { state: "visible" 0.0;
1179 inherit: "default" 0.0;
1180 visible: 1;
1181 text.min: 1 1;
1182 text.ellipsis: -1;
1183 }
1184 description { state: "disabled_visible" 0.0;
1185 inherit: "default" 0.0;
1186 color_class: "radio_text_disabled";
1187 color3: 255 255 255 255;
1188 visible: 1;
1189 text.min: 1 1;
1190 text.ellipsis: -1;
1191 }
1192 }
1193 image { "bar"; nomouse;
1194 desc { "default";
1195 image.normal: "horizontal_separated_bar_small_glow.png";
1196 image.border: 4 4 4 4;
1197 fill.smooth: 0;
1198 fill.smooth: 0;
1199 fixed: 0 1;
1200 rel.to: "base";
1201 rel1.relative: 0.0 1.0;
1202 rel1.offset: 1 -12;
1203 rel2.offset: -2 -3;
1204 color: 255 255 255 0;
1205 visible: 0;
1206 }
1207 desc { "selected";
1208 inherit: "default";
1209 color: 255 255 255 255;
1210 visible: 1;
1211 }
1212 }
1213 part { name: "event"; type: RECT;
1214 description { state: "default" 0.0;
1215 color: 0 0 0 0;
1216 }
1217 description { state: "disabled" 0.0;
1218 inherit: "default" 0.0;
1219 visible: 0;
1220 }
1221 }
1222 }
1223 programs {
1224 program { signal: "mouse,down,1"; source: "event";
1225 action: STATE_SET "selected" 0.0;
1226 target: "base";
1227 }
1228 program { signal: "mouse,up,1"; source: "event";
1229 script {
1230 new m = get_int(btmode);
1231 eval_mode(m);
1232 }
1233 }
1234 program { signal: "mouse,clicked,1"; source: "event";
1235 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
1236 }
1237 program { signal: "mouse,clicked,1"; source: "event";
1238 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
1239 }
1240 program { signal: "elm,state,*,on"; source: "elm"; 901 program { signal: "elm,state,*,on"; source: "elm";
1241 script { 902 script {
1242 new m = get_int(btmode); 903 new m = get_int(btmode);
@@ -1295,4 +956,3 @@ group { name: "elm/radio/base/icon";
1295 } 956 }
1296 } 957 }
1297} 958}
1298*/