summaryrefslogtreecommitdiff
path: root/data/elementary/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-28 20:39:48 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-28 20:39:48 +0000
commitf9533884c5762d620de06b53d42beffeb80cba74 (patch)
tree69cbc2fddf2c2cd047b557a7a76fad2d58948bb1 /data/elementary/themes
parent45fca5d7367a3b4510aa136cefcc4512659c7c39 (diff)
parentf989cea52ddcff188bfab56a4cf5b29612d7ebaf (diff)
Merge branch 'master' into feature/themes/flat
Diffstat (limited to 'data/elementary/themes')
-rw-r--r--data/elementary/themes/edc/efl/grid.edc21
-rw-r--r--data/elementary/themes/edc/efl/group_item.edc2
-rw-r--r--data/elementary/themes/edc/efl/list.edc42
-rw-r--r--data/elementary/themes/edc/elm/radio.edc643
4 files changed, 677 insertions, 31 deletions
diff --git a/data/elementary/themes/edc/efl/grid.edc b/data/elementary/themes/edc/efl/grid.edc
index 51c1bd941d..d312ee71db 100644
--- a/data/elementary/themes/edc/efl/grid.edc
+++ b/data/elementary/themes/edc/efl/grid.edc
@@ -41,7 +41,7 @@ group { "efl/view_grid";
41 data.item: "version" "123"; 41 data.item: "version" "123";
42} 42}
43 43
44group { "efl/grid_item"; data.item: "version" "123"; 44group { "efl/grid_item"; data.item: "version" "124";
45 data.item: "selectraise" "on"; 45 data.item: "selectraise" "on";
46 data.item: "focusraise" "on"; 46 data.item: "focusraise" "on";
47 images.image: "bevel_dark_out.png" COMP; 47 images.image: "bevel_dark_out.png" COMP;
@@ -52,15 +52,6 @@ group { "efl/grid_item"; data.item: "version" "123";
52 parts { 52 parts {
53 53
54 // BASE PARTS // 54 // BASE PARTS //
55 rect { "event";
56 desc { "default";
57 color: 0 0 0 0;
58 }
59 desc { "disabled";
60 inherit: "default";
61 hid;
62 }
63 }
64 rect { "base"; mouse; 55 rect { "base"; mouse;
65 desc { "default"; 56 desc { "default";
66 } 57 }
@@ -208,6 +199,15 @@ group { "efl/grid_item"; data.item: "version" "123";
208 color: 255 255 255 64; 199 color: 255 255 255 64;
209 } 200 }
210 } 201 }
202 rect { "event";
203 desc { "default";
204 color: 0 0 0 0;
205 }
206 desc { "disabled";
207 inherit: "default";
208 hid;
209 }
210 }
211 swallow { "efl.icon"; 211 swallow { "efl.icon";
212 clip_to: "icon_area"; 212 clip_to: "icon_area";
213 desc { "default"; 213 desc { "default";
@@ -258,6 +258,7 @@ group { "efl/grid_item"; data.item: "version" "123";
258 // TOP PARTS // 258 // TOP PARTS //
259 } 259 }
260 programs { 260 programs {
261 EFL_UI_CLICKABLE_PART_BIND("event")
261 program { 262 program {
262 signal: "efl,state,selected"; source: "efl"; 263 signal: "efl,state,selected"; source: "efl";
263 action: STATE_SET "selected"; 264 action: STATE_SET "selected";
diff --git a/data/elementary/themes/edc/efl/group_item.edc b/data/elementary/themes/edc/efl/group_item.edc
index a76ae36c8c..16d4c78b94 100644
--- a/data/elementary/themes/edc/efl/group_item.edc
+++ b/data/elementary/themes/edc/efl/group_item.edc
@@ -8,7 +8,7 @@ Group: efl/group_item (@since 1.23)
8 8
9*/ 9*/
10 10
11group { "efl/group_item"; data.item: "version" "123"; nomouse; program_source: "efl"; 11group { "efl/group_item"; data.item: "version" "124"; nomouse; program_source: "efl";
12 images.image: "shadow_square_tiny.png" COMP; 12 images.image: "shadow_square_tiny.png" COMP;
13 images.image: "bevel_out.png" COMP; 13 images.image: "bevel_out.png" COMP;
14 images.image: "horizontal_separated_bar_small_glow.png" COMP; 14 images.image: "horizontal_separated_bar_small_glow.png" COMP;
diff --git a/data/elementary/themes/edc/efl/list.edc b/data/elementary/themes/edc/efl/list.edc
index 71da7877f2..debbd77944 100644
--- a/data/elementary/themes/edc/efl/list.edc
+++ b/data/elementary/themes/edc/efl/list.edc
@@ -56,7 +56,7 @@ group { "efl/list_view";
56 data.item: "version" "123"; 56 data.item: "version" "123";
57} 57}
58 58
59group { "efl/list_item"; data.item: "version" "123"; 59group { "efl/list_item"; data.item: "version" "124";
60 data.item: "selectraise" "on"; 60 data.item: "selectraise" "on";
61 data.item: "focusraise" "on"; 61 data.item: "focusraise" "on";
62 images.image: "bevel_curved_horiz_out.png" COMP; 62 images.image: "bevel_curved_horiz_out.png" COMP;
@@ -65,15 +65,6 @@ group { "efl/list_item"; data.item: "version" "123";
65 images.image: "bevel_horiz_out.png" COMP; 65 images.image: "bevel_horiz_out.png" COMP;
66 images.image: "shine.png" COMP; 66 images.image: "shine.png" COMP;
67 parts { 67 parts {
68 rect { "event";
69 desc { "default";
70 color: 0 0 0 0;
71 }
72 desc { "disabled";
73 inherit: "default";
74 hid;
75 }
76 }
77 rect { "base"; nomouse; 68 rect { "base"; nomouse;
78 desc { "default"; 69 desc { "default";
79 color: 64 64 64 255; 70 color: 64 64 64 255;
@@ -218,6 +209,15 @@ group { "efl/list_item"; data.item: "version" "123";
218 hid; 209 hid;
219 } 210 }
220 } 211 }
212 rect { "event";
213 desc { "default";
214 color: 0 0 0 0;
215 }
216 desc { "disabled";
217 inherit: "default";
218 hid;
219 }
220 }
221 //##// 221 //##//
222 swallow { "efl.icon"; 222 swallow { "efl.icon";
223 desc { "default"; 223 desc { "default";
@@ -268,6 +268,7 @@ group { "efl/list_item"; data.item: "version" "123";
268 } 268 }
269 } 269 }
270 programs { 270 programs {
271 EFL_UI_CLICKABLE_PART_BIND("event")
271 program { 272 program {
272 signal: "efl,state,odd"; source: "efl"; 273 signal: "efl,state,odd"; source: "efl";
273 action: STATE_SET "odd"; 274 action: STATE_SET "odd";
@@ -343,7 +344,7 @@ group { "efl/list_item"; data.item: "version" "123";
343 } 344 }
344} 345}
345 346
346group { "efl/list_item:placeholder"; data.item: "version" "123"; 347group { "efl/list_item:placeholder"; data.item: "version" "124";
347 data.item: "selectraise" "on"; 348 data.item: "selectraise" "on";
348 data.item: "focusraise" "on"; 349 data.item: "focusraise" "on";
349 images.image: "bevel_curved_horiz_out.png" COMP; 350 images.image: "bevel_curved_horiz_out.png" COMP;
@@ -352,15 +353,6 @@ group { "efl/list_item:placeholder"; data.item: "version" "123";
352 images.image: "bevel_horiz_out.png" COMP; 353 images.image: "bevel_horiz_out.png" COMP;
353 images.image: "shine.png" COMP; 354 images.image: "shine.png" COMP;
354 parts { 355 parts {
355 rect { "event";
356 desc { "default";
357 color: 0 0 0 0;
358 }
359 desc { "disabled";
360 inherit: "default";
361 hid;
362 }
363 }
364 rect { "base"; nomouse; 356 rect { "base"; nomouse;
365 desc { "default"; 357 desc { "default";
366 color: 64 64 64 255; 358 color: 64 64 64 255;
@@ -425,6 +417,15 @@ group { "efl/list_item:placeholder"; data.item: "version" "123";
425 vis; 417 vis;
426 } 418 }
427 } 419 }
420 rect { "event";
421 desc { "default";
422 color: 0 0 0 0;
423 }
424 desc { "disabled";
425 inherit: "default";
426 hid;
427 }
428 }
428 //##// 429 //##//
429 swallow { "efl.content"; mouse; 430 swallow { "efl.content"; mouse;
430 scale; 431 scale;
@@ -463,6 +464,7 @@ group { "efl/list_item:placeholder"; data.item: "version" "123";
463 } 464 }
464 } 465 }
465 programs { 466 programs {
467 EFL_UI_CLICKABLE_PART_BIND("event")
466 program { 468 program {
467 signal: "efl,state,odd"; source: "efl"; 469 signal: "efl,state,odd"; source: "efl";
468 action: STATE_SET "odd"; 470 action: STATE_SET "odd";
diff --git a/data/elementary/themes/edc/elm/radio.edc b/data/elementary/themes/edc/elm/radio.edc
index f4db844a2b..dba16a3762 100644
--- a/data/elementary/themes/edc/elm/radio.edc
+++ b/data/elementary/themes/edc/elm/radio.edc
@@ -295,3 +295,646 @@ group { name: "elm/radio/base/default";
295 } 295 }
296 } 296 }
297} 297}
298
299group { name: "elm/radio/base/plain";
300 alias: "elm/check/base/plain";
301 images.image: "button_normal.png" COMP;
302 images.image: "button_clicked.png" COMP;
303 images.image: "horizontal_separated_bar_small_glow.png" COMP;
304#define ICON 1
305#define LABEL 2
306#define MASK 3
307#define DISABLE 4
308#define SELECTED 8
309 script {
310 public btmode;
311 public eval_mode(m) {
312 new m1 = m & MASK;
313 new d = m & DISABLE;
314 new s = m & SELECTED;
315 if (s) {
316 set_state(PART:"base", "selected", 0.0);
317 set_state(PART:"bar", "selected", 0.0);
318 } else {
319 set_state(PART:"base", "default", 0.0);
320 set_state(PART:"bar", "default", 0.0);
321 }
322 if (m1 == (ICON | LABEL)) {
323 if (!d) {
324 set_state(PART:"elm.swallow.content", "visible", 0.0);
325 set_state(PART:"sizer_content", "visible", 0.0);
326 set_state(PART:"elm.text", "visible", 0.0);
327 set_state(PART:"clip", "default", 0.0);
328 set_state(PART:"event", "default", 0.0);
329 } else {
330 set_state(PART:"elm.swallow.content", "visible", 0.0);
331 set_state(PART:"sizer_content", "visible", 0.0);
332 set_state(PART:"elm.text", "disabled_visible", 0.0);
333 set_state(PART:"clip", "disabled", 0.0);
334 set_state(PART:"event", "disabled", 0.0);
335 }
336 } else if (m1 == (ICON)) {
337 if (!d) {
338 set_state(PART:"elm.swallow.content", "icononly", 0.0);
339 set_state(PART:"sizer_content", "icononly", 0.0);
340 set_state(PART:"elm.text", "default", 0.0);
341 set_state(PART:"clip", "default", 0.0);
342 set_state(PART:"event", "default", 0.0);
343 } else {
344 set_state(PART:"elm.swallow.content", "icononly", 0.0);
345 set_state(PART:"sizer_content", "icononly", 0.0);
346 set_state(PART:"elm.text", "disabled", 0.0);
347 set_state(PART:"base", "disabled", 0.0);
348 set_state(PART:"clip", "disabled", 0.0);
349 set_state(PART:"event", "disabled", 0.0);
350 }
351 } else if (m1 == (LABEL)) {
352 if (!d) {
353 set_state(PART:"elm.swallow.content", "default", 0.0);
354 set_state(PART:"sizer_content", "default", 0.0);
355 set_state(PART:"elm.text", "visible", 0.0);
356 set_state(PART:"clip", "default", 0.0);
357 set_state(PART:"event", "default", 0.0);
358 } else {
359 set_state(PART:"elm.swallow.content", "default", 0.0);
360 set_state(PART:"sizer_content", "default", 0.0);
361 set_state(PART:"elm.text", "disabled_visible", 0.0);
362 set_state(PART:"clip", "disabled", 0.0);
363 set_state(PART:"event", "disabled", 0.0);
364 }
365 } else {
366 if (!d) {
367 set_state(PART:"elm.swallow.content", "default", 0.0);
368 set_state(PART:"sizer_content", "default", 0.0);
369 set_state(PART:"elm.text", "default", 0.0);
370 set_state(PART:"clip", "default", 0.0);
371 set_state(PART:"event", "default", 0.0);
372 } else {
373 set_state(PART:"elm.swallow.content", "default", 0.0);
374 set_state(PART:"sizer_content", "default", 0.0);
375 set_state(PART:"elm.text", "default", 0.0);
376 set_state(PART:"clip", "disabled", 0.0);
377 set_state(PART:"event", "disabled", 0.0);
378 }
379 }
380 }
381 }
382 parts {
383 part { name: "base"; mouse_events: 0;
384 description { state: "default" 0.0;
385 rel1.offset: -1 0;
386 rel2.offset: 0 1;
387 image.normal: "button_normal.png";
388 image.border: 4 4 3 5;
389 image.middle: SOLID;
390 fill.smooth: 0;
391 }
392 description { state: "selected" 0.0;
393 inherit: "default" 0.0;
394 image.normal: "button_clicked.png";
395 image.border: 5 5 4 6;
396 }
397 description { state: "disabled" 0.0;
398 inherit: "default" 0.0;
399 }
400 }
401 part { name: "clip"; type: RECT;
402 description { state: "default" 0.0;
403 }
404 description { state: "disabled" 0.0;
405 inherit: "default" 0.0;
406 color: 255 255 255 64;
407 }
408 }
409 part { name: "elm.swallow.content"; type: SWALLOW;
410 scale: 1;
411 clip_to: "clip";
412 description { state: "default" 0.0;
413 fixed: 1 0;
414 visible: 0;
415 align: 0.0 0.5;
416 max: 0 0;
417 rel1.offset: 6 5;
418 rel1.to: "base";
419 rel2.relative: 0.0 1.0;
420 rel2.offset: 6 -8;
421 rel2.to: "base";
422 }
423 description { state: "icononly" 0.0;
424 inherit: "default" 0.0;
425 visible: 1;
426 align: 0.5 0.5;
427 max: 9999 9999;
428 min: 16 16;
429 rel2.relative: 1.0 1.0;
430 rel2.offset: -7 -8;
431 }
432 description { state: "visible" 0.0;
433 inherit: "default" 0.0;
434 visible: 1;
435 aspect: 1.0 1.0;
436 max: 9999 9999;
437 min: 16 16;
438 }
439 }
440 part { name: "sizer_content"; type: TEXT; mouse_events: 0;
441 scale: 1;
442 description { state: "default" 0.0;
443 fixed: 1 1;
444 visible: 0;
445 text { font: FN; size: 10;
446 min: 0 0;
447 text_class: "radio_text";
448 }
449 }
450 description { state: "visible" 0.0;
451 inherit: "default" 0.0;
452 rel1.to: "elm.swallow.content";
453 rel2.to: "elm.swallow.content";
454 text {
455 min: 1 1;
456 ellipsis: -1;
457 text: "M";
458 }
459 }
460 description { state: "icononly" 0.0;
461 inherit: "default" 0.0;
462 rel1.to: "elm.swallow.content";
463 rel2.to: "elm.swallow.content";
464 text {
465 min: 1 1;
466 ellipsis: -1;
467 text: "M";
468 }
469 }
470 }
471 part { name: "elm.text"; type: TEXT; mouse_events: 0;
472 effect: SHADOW BOTTOM;
473 scale: 1;
474 description { state: "default" 0.0;
475 rel1.offset: 2 4;
476 rel1.to_x: "elm.swallow.content";
477 rel1.relative: 1.0 0.0;
478 rel1.to_y: "base";
479 rel2.offset: -8 -8;
480 rel2.to: "base";
481 color: FN_COL_DEFAULT;
482 color_class: "radio_text";
483 text { font: FN; size: 10;
484 min: 0 0;
485 align: 0.0 0.5;
486 text_class: "radio";
487 }
488 }
489 description { state: "disabled" 0.0;
490 inherit: "default" 0.0;
491 color_class: "radio_text_disabled";
492 color3: 255 255 255 255;
493 }
494 description { state: "visible" 0.0;
495 inherit: "default" 0.0;
496 visible: 1;
497 text.min: 1 1;
498 text.ellipsis: -1;
499 }
500 description { state: "disabled_visible" 0.0;
501 inherit: "default" 0.0;
502 color_class: "radio_text_disabled";
503 color3: 255 255 255 255;
504 visible: 1;
505 text.min: 1 1;
506 text.ellipsis: -1;
507 }
508 }
509 image { "bar"; nomouse;
510 desc { "default";
511 image.normal: "horizontal_separated_bar_small_glow.png";
512 image.border: 4 4 4 4;
513 fill.smooth: 0;
514 fill.smooth: 0;
515 fixed: 0 1;
516 rel.to: "base";
517 rel1.relative: 0.0 1.0;
518 rel1.offset: 1 -12;
519 rel2.offset: -2 -3;
520 color: 255 255 255 0;
521 visible: 0;
522 }
523 desc { "selected";
524 inherit: "default";
525 color: 255 255 255 255;
526 visible: 1;
527 }
528 }
529 part { name: "event"; type: RECT;
530 description { state: "default" 0.0;
531 color: 0 0 0 0;
532 }
533 description { state: "disabled" 0.0;
534 inherit: "default" 0.0;
535 visible: 0;
536 }
537 }
538 }
539 programs {
540 program { signal: "mouse,down,1"; source: "event";
541 action: STATE_SET "selected" 0.0;
542 target: "base";
543 }
544 program { signal: "mouse,up,1"; source: "event";
545 script {
546 new m = get_int(btmode);
547 eval_mode(m);
548 }
549 }
550 program { signal: "mouse,clicked,1"; source: "event";
551 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
552 }
553 program { signal: "mouse,clicked,1"; source: "event";
554 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
555 }
556 program { signal: "elm,state,*,on"; source: "elm";
557 script {
558 new m = get_int(btmode);
559 m |= SELECTED; set_int(btmode, m);
560 eval_mode(m);
561 }
562 }
563 program { signal: "elm,state,*,off"; source: "elm";
564 script {
565 new m = get_int(btmode);
566 m &= ~SELECTED; set_int(btmode, m);
567 eval_mode(m);
568 }
569 }
570 program { signal: "elm,state,text,visible"; source: "elm";
571 script {
572 new m = get_int(btmode);
573 m |= LABEL; set_int(btmode, m);
574 eval_mode(m);
575 }
576 }
577 program { signal: "elm,state,text,hidden"; source: "elm";
578 script {
579 new m = get_int(btmode);
580 m &= ~LABEL; set_int(btmode, m);
581 eval_mode(m);
582 }
583 }
584 program { signal: "elm,state,icon,visible"; source: "elm";
585 script {
586 new m = get_int(btmode);
587 m |= ICON; set_int(btmode, m);
588 eval_mode(m);
589 }
590 }
591 program { signal: "elm,state,icon,hidden"; source: "elm";
592 script {
593 new m = get_int(btmode);
594 m &= ~ICON; set_int(btmode, m);
595 eval_mode(m);
596 }
597 }
598 program { signal: "elm,state,disabled"; source: "elm";
599 script {
600 new m = get_int(btmode);
601 m |= DISABLE; set_int(btmode, m);
602 eval_mode(m);
603 }
604 }
605 program { signal: "elm,state,enabled"; source: "elm";
606 script {
607 new m = get_int(btmode);
608 m &= ~DISABLE; set_int(btmode, m);
609 eval_mode(m);
610 }
611 }
612 }
613#undef ICON
614#undef LABEL
615#undef MASK
616#undef DISABLE
617}
618
619group { name: "elm/radio/base/icon";
620 alias: "elm/check/base/icon";
621 images.image: "button_normal.png" COMP;
622 images.image: "button_clicked.png" COMP;
623 images.image: "horizontal_separated_bar_small_glow.png" COMP;
624#define ICON 1
625#define LABEL 2
626#define MASK 3
627#define DISABLE 4
628#define SELECTED 8
629 script {
630 public btmode;
631 public eval_mode(m) {
632 new m1 = m & MASK;
633 new d = m & DISABLE;
634 new s = m & SELECTED;
635 if (s) {
636 set_state(PART:"base", "selected", 0.0);
637 set_state(PART:"bar", "selected", 0.0);
638 } else {
639 set_state(PART:"base", "default", 0.0);
640 set_state(PART:"bar", "default", 0.0);
641 }
642 if (m1 == (ICON | LABEL)) {
643 if (!d) {
644 set_state(PART:"elm.swallow.content", "visible", 0.0);
645 set_state(PART:"sizer_content", "visible", 0.0);
646 set_state(PART:"elm.text", "visible", 0.0);
647 set_state(PART:"clip", "default", 0.0);
648 set_state(PART:"event", "default", 0.0);
649 } else {
650 set_state(PART:"elm.swallow.content", "visible", 0.0);
651 set_state(PART:"sizer_content", "visible", 0.0);
652 set_state(PART:"elm.text", "disabled_visible", 0.0);
653 set_state(PART:"clip", "disabled", 0.0);
654 set_state(PART:"event", "disabled", 0.0);
655 }
656 } else if (m1 == (ICON)) {
657 if (!d) {
658 set_state(PART:"elm.swallow.content", "icononly", 0.0);
659 set_state(PART:"sizer_content", "icononly", 0.0);
660 set_state(PART:"elm.text", "default", 0.0);
661 set_state(PART:"clip", "default", 0.0);
662 set_state(PART:"event", "default", 0.0);
663 } else {
664 set_state(PART:"elm.swallow.content", "icononly", 0.0);
665 set_state(PART:"sizer_content", "icononly", 0.0);
666 set_state(PART:"elm.text", "disabled", 0.0);
667 set_state(PART:"base", "disabled", 0.0);
668 set_state(PART:"clip", "disabled", 0.0);
669 set_state(PART:"event", "disabled", 0.0);
670 }
671 } else if (m1 == (LABEL)) {
672 if (!d) {
673 set_state(PART:"elm.swallow.content", "default", 0.0);
674 set_state(PART:"sizer_content", "default", 0.0);
675 set_state(PART:"elm.text", "visible", 0.0);
676 set_state(PART:"clip", "default", 0.0);
677 set_state(PART:"event", "default", 0.0);
678 } else {
679 set_state(PART:"elm.swallow.content", "default", 0.0);
680 set_state(PART:"sizer_content", "default", 0.0);
681 set_state(PART:"elm.text", "disabled_visible", 0.0);
682 set_state(PART:"clip", "disabled", 0.0);
683 set_state(PART:"event", "disabled", 0.0);
684 }
685 } else {
686 if (!d) {
687 set_state(PART:"elm.swallow.content", "default", 0.0);
688 set_state(PART:"sizer_content", "default", 0.0);
689 set_state(PART:"elm.text", "default", 0.0);
690 set_state(PART:"clip", "default", 0.0);
691 set_state(PART:"event", "default", 0.0);
692 } else {
693 set_state(PART:"elm.swallow.content", "default", 0.0);
694 set_state(PART:"sizer_content", "default", 0.0);
695 set_state(PART:"elm.text", "default", 0.0);
696 set_state(PART:"clip", "disabled", 0.0);
697 set_state(PART:"event", "disabled", 0.0);
698 }
699 }
700 }
701 }
702 parts {
703 part { name: "base"; mouse_events: 0;
704 description { state: "default" 0.0;
705 rel1.offset: -1 0;
706 rel2.offset: 0 1;
707 image.normal: "button_normal.png";
708 image.border: 4 4 3 5;
709 image.middle: SOLID;
710 fill.smooth: 0;
711 }
712 description { state: "selected" 0.0;
713 inherit: "default" 0.0;
714 image.normal: "button_clicked.png";
715 image.border: 5 5 4 6;
716 }
717 description { state: "disabled" 0.0;
718 inherit: "default" 0.0;
719 }
720 }
721 part { name: "clip"; type: RECT;
722 description { state: "default" 0.0;
723 }
724 description { state: "disabled" 0.0;
725 inherit: "default" 0.0;
726 color: 255 255 255 64;
727 }
728 }
729 part { name: "elm.swallow.content"; type: SWALLOW;
730 scale: 1;
731 clip_to: "clip";
732 description { state: "default" 0.0;
733 fixed: 0 1;
734 visible: 0;
735 align: 0.5 0.0;
736 max: 0 0;
737 rel1.offset: 6 2;
738 rel1.to: "base";
739 rel2.relative: 1.0 0.0;
740 rel2.offset: -7 2;
741 rel2.to: "base";
742 }
743 description { state: "icononly" 0.0;
744 inherit: "default" 0.0;
745 fixed: 0 0;
746 visible: 1;
747 align: 0.5 0.5;
748 max: 9999 9999;
749 min: 16 16;
750 rel2.relative: 1.0 1.0;
751 rel2.offset: -7 -8;
752 }
753 description { state: "visible" 0.0;
754 inherit: "default" 0.0;
755 fixed: 0 0;
756 visible: 1;
757 rel1.offset: 6 5;
758 rel2.offset: -7 5;
759 aspect: 1.0 1.0;
760 max: 9999 9999;
761 min: 16 16;
762 }
763 }
764 part { name: "sizer_content"; type: TEXT; mouse_events: 0;
765 scale: 1;
766 description { state: "default" 0.0;
767 fixed: 1 1;
768 visible: 0;
769 text { font: FN; size: 10;
770 min: 0 0;
771 text_class: "radio_text";
772 }
773 }
774 description { state: "visible" 0.0;
775 inherit: "default" 0.0;
776 rel1.to: "elm.swallow.content";
777 rel2.to: "elm.swallow.content";
778 text {
779 min: 1 1;
780 ellipsis: -1;
781 text: "M";
782 }
783 }
784 description { state: "icononly" 0.0;
785 inherit: "default" 0.0;
786 rel1.to: "elm.swallow.content";
787 rel2.to: "elm.swallow.content";
788 text {
789 min: 1 1;
790 ellipsis: -1;
791 text: "M";
792 }
793 }
794 }
795 part { name: "elm.text"; type: TEXT; mouse_events: 0;
796 effect: SHADOW BOTTOM;
797 scale: 1;
798 description { state: "default" 0.0;
799 rel1.offset: 6 2;
800 rel1.to_y: "elm.swallow.content";
801 rel1.relative: 0.0 1.0;
802 rel2.offset: -8 -8;
803 rel2.to: "base";
804 color: FN_COL_DEFAULT;
805 color_class: "radio_text";
806 text { font: FN; size: 10;
807 min: 0 0;
808 align: 0.5 1.0;
809 text_class: "radio";
810 }
811 }
812 description { state: "disabled" 0.0;
813 inherit: "default" 0.0;
814 color_class: "radio_text_disabled";
815 color3: 255 255 255 255;
816 }
817 description { state: "visible" 0.0;
818 inherit: "default" 0.0;
819 visible: 1;
820 text.min: 1 1;
821 text.ellipsis: -1;
822 }
823 description { state: "disabled_visible" 0.0;
824 inherit: "default" 0.0;
825 color_class: "radio_text_disabled";
826 color3: 255 255 255 255;
827 visible: 1;
828 text.min: 1 1;
829 text.ellipsis: -1;
830 }
831 }
832 image { "bar"; nomouse;
833 desc { "default";
834 image.normal: "horizontal_separated_bar_small_glow.png";
835 image.border: 4 4 4 4;
836 fill.smooth: 0;
837 fill.smooth: 0;
838 fixed: 0 1;
839 rel.to: "base";
840 rel1.relative: 0.0 1.0;
841 rel1.offset: 1 -12;
842 rel2.offset: -2 -3;
843 color: 255 255 255 0;
844 visible: 0;
845 }
846 desc { "selected";
847 inherit: "default";
848 color: 255 255 255 255;
849 visible: 1;
850 }
851 }
852 part { name: "event"; type: RECT;
853 description { state: "default" 0.0;
854 color: 0 0 0 0;
855 }
856 description { state: "disabled" 0.0;
857 inherit: "default" 0.0;
858 visible: 0;
859 }
860 }
861 }
862 programs {
863 program { signal: "mouse,down,1"; source: "event";
864 action: STATE_SET "selected" 0.0;
865 target: "base";
866 }
867 program { signal: "mouse,up,1"; source: "event";
868 script {
869 new m = get_int(btmode);
870 eval_mode(m);
871 }
872 }
873 program { signal: "mouse,clicked,1"; source: "event";
874 action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
875 }
876 program { signal: "mouse,clicked,1"; source: "event";
877 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
878 }
879 program { signal: "elm,state,*,on"; source: "elm";
880 script {
881 new m = get_int(btmode);
882 m |= SELECTED; set_int(btmode, m);
883 eval_mode(m);
884 }
885 }
886 program { signal: "elm,state,*,off"; source: "elm";
887 script {
888 new m = get_int(btmode);
889 m &= ~SELECTED; set_int(btmode, m);
890 eval_mode(m);
891 }
892 }
893 program { signal: "elm,state,text,visible"; source: "elm";
894 script {
895 new m = get_int(btmode);
896 m |= LABEL; set_int(btmode, m);
897 eval_mode(m);
898 }
899 }
900 program { signal: "elm,state,text,hidden"; source: "elm";
901 script {
902 new m = get_int(btmode);
903 m &= ~LABEL; set_int(btmode, m);
904 eval_mode(m);
905 }
906 }
907 program { signal: "elm,state,icon,visible"; source: "elm";
908 script {
909 new m = get_int(btmode);
910 m |= ICON; set_int(btmode, m);
911 eval_mode(m);
912 }
913 }
914 program { signal: "elm,state,icon,hidden"; source: "elm";
915 script {
916 new m = get_int(btmode);
917 m &= ~ICON; set_int(btmode, m);
918 eval_mode(m);
919 }
920 }
921 program { signal: "elm,state,disabled"; source: "elm";
922 script {
923 new m = get_int(btmode);
924 m |= DISABLE; set_int(btmode, m);
925 eval_mode(m);
926 }
927 }
928 program { signal: "elm,state,enabled"; source: "elm";
929 script {
930 new m = get_int(btmode);
931 m &= ~DISABLE; set_int(btmode, m);
932 eval_mode(m);
933 }
934 }
935 }
936#undef ICON
937#undef LABEL
938#undef MASK
939#undef DISABLE
940}