summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYeshwanth Reddivari <r.yeshwanth@samsung.com>2016-03-28 13:41:27 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-03-28 13:41:27 +0530
commit1152fb3e3528e024f0f9e01451783a937fdbe4dc (patch)
tree8b1d884ea8ee4ae19170f54899719a2b5c683747 /data
parent3f1686d01e4f3a23c125afb4a9bb89106609c303 (diff)
Slider: Theme - Add support for range in edc
phab: https://phab.enlightenment.org/D3821 Test Plan: elementary_test -to slider @feature Change-Id: Ibc3f7c93efb927a6fc602f246a795c426f80bd39
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/slider.edc473
-rwxr-xr-xdata/elementary/themes/img/horiz_glow_range.pngbin0 -> 131 bytes
-rwxr-xr-xdata/elementary/themes/img/vert_glow_range.pngbin0 -> 127 bytes
3 files changed, 443 insertions, 30 deletions
diff --git a/data/elementary/themes/edc/elm/slider.edc b/data/elementary/themes/edc/elm/slider.edc
index b39a680..5786dfe 100644
--- a/data/elementary/themes/edc/elm/slider.edc
+++ b/data/elementary/themes/edc/elm/slider.edc
@@ -39,6 +39,7 @@ group { name: "elm/slider/horizontal/default";
39 images.image: "slider_run_bevel_horiz.png" COMP; 39 images.image: "slider_run_bevel_horiz.png" COMP;
40 images.image: "slider_run_base_light_horiz.png" COMP; 40 images.image: "slider_run_base_light_horiz.png" COMP;
41 images.image: "horiz_glow_run.png" COMP; 41 images.image: "horiz_glow_run.png" COMP;
42 images.image: "horiz_glow_range.png" COMP;
42 images.image: "horiz_glow_run_rev.png" COMP; 43 images.image: "horiz_glow_run_rev.png" COMP;
43 images.image: "knob_round_small_normal.png" COMP; 44 images.image: "knob_round_small_normal.png" COMP;
44 images.image: "knob_round_small_selected.png" COMP; 45 images.image: "knob_round_small_selected.png" COMP;
@@ -65,6 +66,19 @@ group { name: "elm/slider/horizontal/default";
65#define DISABLE 32 66#define DISABLE 32
66 script { 67 script {
67 public slmode; 68 public slmode;
69 public range;
70 public g_timer_id;
71 public update_glow()
72 {
73 new x1,y1,w1,h1;
74 new x2,y2,w2,h2;
75 get_geometry(PART:"knob", x1, y1, w1, h1);
76 get_geometry(PART:"knob2", x2, y2, w2, h2);
77 if(x2 < x1)
78 set_state(PART:"glow", "range_reverse", 0.0);
79 else
80 set_state(PART:"glow", "range", 0.0);
81 }
68 public eval_mode(m) { 82 public eval_mode(m) {
69 new ic = m & ICON; 83 new ic = m & ICON;
70 new l = m & LABEL; 84 new l = m & LABEL;
@@ -72,22 +86,36 @@ group { name: "elm/slider/horizontal/default";
72 new u = m & UNITS; 86 new u = m & UNITS;
73 new d = m & DISABLE; 87 new d = m & DISABLE;
74 new i = m & INVERT; 88 new i = m & INVERT;
75 if (i) { 89 new r = get_int(range);
76 if (!d) { 90 if (!r) {
77 set_state(PART:"base", "default", 0.0); 91 if (i) {
78 set_state(PART:"glow", "inverted", 0.0); 92 if (!d) {
79 } else { 93 set_state(PART:"base", "default", 0.0);
80 set_state(PART:"base", "disabled", 0.0); 94 set_state(PART:"glow", "inverted", 0.0);
81 set_state(PART:"glow", "disabled_inverted", 0.0); 95 } else {
82 } 96 set_state(PART:"base", "disabled", 0.0);
83 } else { 97 set_state(PART:"glow", "disabled_inverted", 0.0);
84 if (!d) { 98 }
85 set_state(PART:"base", "default", 0.0); 99 } else {
86 set_state(PART:"glow", "default", 0.0); 100 if (!d) {
87 } else { 101 set_state(PART:"base", "default", 0.0);
88 set_state(PART:"base", "disabled", 0.0); 102 set_state(PART:"glow", "default", 0.0);
89 set_state(PART:"glow", "disabled", 0.0); 103 } else {
90 } 104 set_state(PART:"base", "disabled", 0.0);
105 set_state(PART:"glow", "disabled", 0.0);
106 }
107 }
108 } else if (d) {
109 new x1,y1,w1,h1;
110 new x2,y2,w2,h2;
111 get_geometry(PART:"knob", x1, y1, w1, h1);
112 get_geometry(PART:"knob2", x2, y2, w2, h2);
113 set_state(PART:"base", "disabled", 0.0);
114 if(x2 < x1)
115 set_state(PART:"glow", "disabled_range_reverse", 0.0);
116 else
117 set_state(PART:"glow", "disabled_range", 0.0);
118
91 } 119 }
92 if (l) { 120 if (l) {
93 if (!d) { 121 if (!d) {
@@ -189,6 +217,32 @@ group { name: "elm/slider/horizontal/default";
189 rel2.to: "base"; 217 rel2.to: "base";
190 image.border: 4 0 0 0; 218 image.border: 4 0 0 0;
191 } 219 }
220 description { state: "range" 0.0;
221 image.normal: "horiz_glow_range.png";
222 rel1.relative: 0.5 1.0;
223 rel1.offset: -1 -2;
224 rel1.to_x: "button";
225 rel1.to_y: "base";
226 rel2.relative: 0.5 1.0;
227 rel2.offset: -1 -2;
228 rel2.to_x: "button2";
229 rel2.to_y: "base";
230 fixed: 0 1;
231 image.border: 0 4 0 0;
232 }
233 description { state: "disabled_range" 0.0;
234 inherit: "range" 0.0;
235 color: 255 255 255 64;
236 }
237 description { state: "range_reverse" 0.0;
238 inherit: "range" 0.0;
239 rel1.to_x: "button2";
240 rel2.to_x: "button";
241 }
242 description { state: "disabled_range_reverse" 0.0;
243 inherit: "range_reverse" 0.0;
244 color: 255 255 255 64;
245 }
192 description { state: "disabled_inverted" 0.0; 246 description { state: "disabled_inverted" 0.0;
193 inherit: "inverted" 0.0; 247 inherit: "inverted" 0.0;
194 color: 255 255 255 64; 248 color: 255 255 255 64;
@@ -223,6 +277,7 @@ group { name: "elm/slider/horizontal/default";
223 rel2.offset: -1 -3; 277 rel2.offset: -1 -3;
224 rel2.relative: 0.0 1.0; 278 rel2.relative: 0.0 1.0;
225 rel2.to_y: "elm.swallow.bar"; 279 rel2.to_y: "elm.swallow.bar";
280 fixed: 1 0;
226 } 281 }
227 description { state: "visible" 0.0; 282 description { state: "visible" 0.0;
228 inherit: "default" 0.0; 283 inherit: "default" 0.0;
@@ -297,6 +352,7 @@ group { name: "elm/slider/horizontal/default";
297 rel1.offset: 0 2; 352 rel1.offset: 0 2;
298 rel1.relative: 1.0 0.0; 353 rel1.relative: 1.0 0.0;
299 rel2.offset: -1 -3; 354 rel2.offset: -1 -3;
355 fixed: 1 0;
300 } 356 }
301 description { state: "visible" 0.0; 357 description { state: "visible" 0.0;
302 inherit: "default" 0.0; 358 inherit: "default" 0.0;
@@ -350,6 +406,12 @@ group { name: "elm/slider/horizontal/default";
350 rel1.offset: -3 2; 406 rel1.offset: -3 2;
351 rel2.offset: -3 -3; 407 rel2.offset: -3 -3;
352 } 408 }
409 description { state: "disabled_visible" 0.0;
410 inherit: "default" 0.0;
411 rel1.offset: -3 2;
412 rel2.offset: -3 -3;
413 color: 255 255 255 64;
414 }
353 } 415 }
354 part { name: "elm.units"; type: TEXT; mouse_events: 0; 416 part { name: "elm.units"; type: TEXT; mouse_events: 0;
355 effect: SHADOW BOTTOM; 417 effect: SHADOW BOTTOM;
@@ -440,6 +502,93 @@ group { name: "elm/slider/horizontal/default";
440 rel2.to: "elm.dragable.slider"; 502 rel2.to: "elm.dragable.slider";
441 } 503 }
442 } 504 }
505 part { name: "button2"; type: GROUP; mouse_events: 0;
506 source: "elm/slider/horizontal/indicator/default";
507 description { state: "default" 0.0;
508 fixed: 1 1;
509 rel1.to: "elm.dragable2.slider";
510 rel2.to: "elm.dragable2.slider";
511 visible: 0;
512 }
513 description { state: "show" 0.0;
514 inherit: "default" 0.0;
515 visible: 1;
516 }
517 description { state: "hidden" 0.0;
518 inherit: "default" 0.0;
519 visible: 0;
520 }
521 }
522 part { name: "elm.dragable2.slider"; type: RECT;
523 scale: 1;
524 dragable.x: 1 1 0;
525 dragable.y: 0 0 0;
526 dragable.confine: "elm.swallow.bar";
527 description { state: "default" 0.0;
528 color: 0 0 0 0;
529 min: 16 16;
530 max: 16 16;
531 fixed: 1 1;
532 rel1.relative: 0.5 0.0;
533 rel1.to_x: "elm.swallow.bar";
534 rel2.relative: 0.5 1.0;
535 rel2.to_x: "elm.swallow.bar";
536 visible: 0;
537 }
538 description { state: "show" 0.0;
539 inherit: "default" 0.0;
540 visible: 1;
541 }
542 }
543 part { name: "knob2";
544 description { state: "default" 0.0;
545 image.normal: "knob";
546 fixed: 1 1;
547 min: 12 12;
548 step: 2 2;
549 max: 32 32; // XXX allow bigger sizes with more knob images
550 rel1.to: "elm.dragable2.slider";
551 rel1.offset: -4 -4;
552 rel2.to: "elm.dragable2.slider";
553 rel2.offset: 3 3;
554 visible: 0;
555 }
556 description { state: "show" 0.0;
557 inherit: "default" 0.0;
558 visible: 1;
559 }
560 description { state: "clicked" 0.0;
561 inherit: "default" 0.0;
562 }
563 }
564 part { name: "slideevent2"; type: RECT; repeat_events: 1;
565 scale: 1;
566 ignore_flags: ON_HOLD;
567 dragable.events: "elm.dragable2.slider";
568 description { state: "default" 0.0;
569 fixed: 1 1;
570 rel1.to: "elm.dragable2.slider";
571 rel2.to: "elm.dragable2.slider";
572 color: 0 0 0 0;
573 visible: 0;
574 }
575 description { state: "show" 0.0;
576 inherit: "default" 0.0;
577 visible: 1;
578 }
579 }
580 part { name: "elm.track2.slider"; type: SWALLOW; mouse_events: 0;
581 description { state: "default" 0.0;
582 max: 0 0;
583 rel1.to: "elm.dragable2.slider";
584 rel2.to: "elm.dragable2.slider";
585 visible: 0;
586 }
587 description { state: "show" 0.0;
588 inherit: "default" 0.0;
589 visible: 1;
590 }
591 }
443 part { name: "event"; type: RECT; 592 part { name: "event"; type: RECT;
444 description { state: "default" 0.0; 593 description { state: "default" 0.0;
445 color: 0 0 0 0; 594 color: 0 0 0 0;
@@ -463,6 +612,46 @@ group { name: "elm/slider/horizontal/default";
463 target: "knob"; 612 target: "knob";
464 } 613 }
465 program { 614 program {
615 signal: "elm,slider,range,enable";
616 source: "elm";
617 script {
618 set_int(range, 1);
619 set_state(PART:"button2", "show", 0.0);
620 set_state(PART:"elm.dragable2.slider", "show", 0.0);
621 set_state(PART:"knob2", "show", 0.0);
622 set_state(PART:"slideevent2", "show", 0.0);
623 set_state(PART:"elm.track2.slider", "show", 0.0);
624 update_glow();
625 new m = get_int(slmode);
626 eval_mode(m);
627 }
628 }
629 program {
630 signal: "elm,slider,range,disable";
631 source: "elm";
632 script {
633 set_int(range, 0);
634 set_state(PART:"button2", "default", 0.0);
635 set_state(PART:"elm.dragable2.slider", "default", 0.0);
636 set_state(PART:"knob2", "default", 0.0);
637 set_state(PART:"slideevent2", "default", 0.0);
638 set_state(PART:"elm.track2.slider", "default", 0.0);
639 set_state(PART:"glow", "default", 0.0);
640 new m = get_int(slmode);
641 eval_mode(m);
642 }
643 }
644 program {
645 signal: "drag";
646 source: "elm.dragable*";
647 script {
648 new r;
649 r = get_int(range);
650 if (r)
651 update_glow();
652 }
653 }
654 program {
466 signal: "elm,state,indicator,show"; source: "elm"; 655 signal: "elm,state,indicator,show"; source: "elm";
467 action: SIGNAL_EMIT "elm,popup,show" "elm"; 656 action: SIGNAL_EMIT "elm,popup,show" "elm";
468 after: "popup_show2"; 657 after: "popup_show2";
@@ -490,6 +679,24 @@ group { name: "elm/slider/horizontal/default";
490 action: STATE_SET "default" 0.0; 679 action: STATE_SET "default" 0.0;
491 target: "button"; 680 target: "button";
492 } 681 }
682 program {
683 signal: "mouse,down,1"; source: "slideevent2";
684 action: SIGNAL_EMIT "elm,popup,show" "elm";
685 after: "popup2_show2";
686 }
687 program { name: "popup2_show2";
688 action: STATE_SET "show" 0.0;
689 target: "button2";
690 }
691 program {
692 signal: "mouse,up,1"; source: "slideevent2";
693 action: SIGNAL_EMIT "elm,popup,hide" "elm";
694 after: "popup2_hide2";
695 }
696 program { name: "popup2_hide2";
697 action: STATE_SET "hidden" 0.0;
698 target: "button2";
699 }
493 program { 700 program {
494 signal: "elm,state,text,visible"; source: "elm"; 701 signal: "elm,state,text,visible"; source: "elm";
495 script { 702 script {
@@ -622,6 +829,9 @@ group { name: "elm/slider/horizontal/indicator/default";
622 fixed: 1 1; 829 fixed: 1 1;
623 min: 16 16; 830 min: 16 16;
624 } 831 }
832 description { state: "disabled" 0.0;
833 inherit: "default" 0.0;
834 }
625 } 835 }
626 part { name: "clip"; type: RECT; 836 part { name: "clip"; type: RECT;
627 description { state: "default" 0.0; 837 description { state: "default" 0.0;
@@ -745,6 +955,7 @@ group { name: "elm/slider/vertical/default";
745 images.image: "slider_run_bevel_vert.png" COMP; 955 images.image: "slider_run_bevel_vert.png" COMP;
746 images.image: "slider_run_base_light_vert.png" COMP; 956 images.image: "slider_run_base_light_vert.png" COMP;
747 images.image: "vert_glow_run.png" COMP; 957 images.image: "vert_glow_run.png" COMP;
958 images.image: "vert_glow_range.png" COMP;
748 images.image: "vert_glow_run_rev.png" COMP; 959 images.image: "vert_glow_run_rev.png" COMP;
749 images.image: "knob_round_small_normal.png" COMP; 960 images.image: "knob_round_small_normal.png" COMP;
750 images.image: "knob_round_small_selected.png" COMP; 961 images.image: "knob_round_small_selected.png" COMP;
@@ -771,6 +982,19 @@ group { name: "elm/slider/vertical/default";
771#define DISABLE 32 982#define DISABLE 32
772 script { 983 script {
773 public slmode; 984 public slmode;
985 public range;
986 public g_timer_id;
987 public update_glow()
988 {
989 new x1,y1,w1,h1;
990 new x2,y2,w2,h2;
991 get_geometry(PART:"knob", x1, y1, w1, h1);
992 get_geometry(PART:"knob2", x2, y2, w2, h2);
993 if(y2 < y1)
994 set_state(PART:"glow", "range_reverse", 0.0);
995 else
996 set_state(PART:"glow", "range", 0.0);
997 }
774 public eval_mode(m) { 998 public eval_mode(m) {
775 new ic = m & ICON; 999 new ic = m & ICON;
776 new l = m & LABEL; 1000 new l = m & LABEL;
@@ -778,22 +1002,35 @@ group { name: "elm/slider/vertical/default";
778 new u = m & UNITS; 1002 new u = m & UNITS;
779 new d = m & DISABLE; 1003 new d = m & DISABLE;
780 new i = m & INVERT; 1004 new i = m & INVERT;
781 if (i) { 1005 new r = get_int(range);
782 if (!d) { 1006 if (!r) {
783 set_state(PART:"base", "default", 0.0); 1007 if (i) {
784 set_state(PART:"glow", "inverted", 0.0); 1008 if (!d) {
1009 set_state(PART:"base", "default", 0.0);
1010 set_state(PART:"glow", "inverted", 0.0);
1011 } else {
1012 set_state(PART:"base", "disabled", 0.0);
1013 set_state(PART:"glow", "disabled_inverted", 0.0);
1014 }
785 } else { 1015 } else {
786 set_state(PART:"base", "disabled", 0.0); 1016 if (!d) {
787 set_state(PART:"glow", "disabled_inverted", 0.0); 1017 set_state(PART:"base", "default", 0.0);
788 } 1018 set_state(PART:"glow", "default", 0.0);
789 } else { 1019 } else {
790 if (!d) { 1020 set_state(PART:"base", "disabled", 0.0);
791 set_state(PART:"base", "default", 0.0); 1021 set_state(PART:"glow", "disabled", 0.0);
792 set_state(PART:"glow", "default", 0.0); 1022 }
793 } else {
794 set_state(PART:"base", "disabled", 0.0);
795 set_state(PART:"glow", "disabled", 0.0);
796 } 1023 }
1024 } else if (d) {
1025 new x1,y1,w1,h1;
1026 new x2,y2,w2,h2;
1027 get_geometry(PART:"knob", x1, y1, w1, h1);
1028 get_geometry(PART:"knob2", x2, y2, w2, h2);
1029 set_state(PART:"base", "disabled", 0.0);
1030 if(y2 < y1)
1031 set_state(PART:"glow", "disabled_range_reverse", 0.0);
1032 else
1033 set_state(PART:"glow", "disabled_range", 0.0);
797 } 1034 }
798 if (l) { 1035 if (l) {
799 if (!d) { 1036 if (!d) {
@@ -895,6 +1132,32 @@ group { name: "elm/slider/vertical/default";
895 rel2.to: "base"; 1132 rel2.to: "base";
896 image.border: 0 0 4 0; 1133 image.border: 0 0 4 0;
897 } 1134 }
1135 description { state: "range" 0.0;
1136 image.normal: "vert_glow_range.png";
1137 rel1.relative: 0.5 1.0;
1138 rel1.offset: -1 -2;
1139 rel1.to_x: "base";
1140 rel1.to_y: "button";
1141 rel2.relative: 0.5 1.0;
1142 rel2.offset: -1 -2;
1143 rel2.to_x: "base";
1144 rel2.to_y: "button2";
1145 fixed: 1 0;
1146 image.border: 0 4 0 0;
1147 }
1148 description { state: "disabled_range" 0.0;
1149 inherit: "range" 0.0;
1150 color: 255 255 255 64;
1151 }
1152 description { state: "range_reverse" 0.0;
1153 inherit: "range" 0.0;
1154 rel1.to_y: "button2";
1155 rel2.to_y: "button";
1156 }
1157 description { state: "disabled_range_reverse" 0.0;
1158 inherit: "range_reverse" 0.0;
1159 color: 255 255 255 64;
1160 }
898 description { state: "disabled_inverted" 0.0; 1161 description { state: "disabled_inverted" 0.0;
899 inherit: "inverted" 0.0; 1162 inherit: "inverted" 0.0;
900 color: 255 255 255 64; 1163 color: 255 255 255 64;
@@ -929,6 +1192,7 @@ group { name: "elm/slider/vertical/default";
929 rel2.offset: -3 -1; 1192 rel2.offset: -3 -1;
930 rel2.relative: 1.0 0.0; 1193 rel2.relative: 1.0 0.0;
931 rel2.to_x: "elm.swallow.bar"; 1194 rel2.to_x: "elm.swallow.bar";
1195 fixed: 0 1;
932 } 1196 }
933 description { state: "visible" 0.0; 1197 description { state: "visible" 0.0;
934 inherit: "default" 0.0; 1198 inherit: "default" 0.0;
@@ -1004,6 +1268,7 @@ group { name: "elm/slider/vertical/default";
1004 rel1.offset: 2 0; 1268 rel1.offset: 2 0;
1005 rel1.relative: 0.0 1.0; 1269 rel1.relative: 0.0 1.0;
1006 rel2.offset: -3 -1; 1270 rel2.offset: -3 -1;
1271 fixed: 0 1;
1007 } 1272 }
1008 description { state: "visible" 0.0; 1273 description { state: "visible" 0.0;
1009 inherit: "default" 0.0; 1274 inherit: "default" 0.0;
@@ -1149,6 +1414,93 @@ group { name: "elm/slider/vertical/default";
1149 rel2.to: "elm.dragable.slider"; 1414 rel2.to: "elm.dragable.slider";
1150 } 1415 }
1151 } 1416 }
1417 part { name: "button2"; type: GROUP; mouse_events: 0;
1418 source: "elm/slider/vertical/indicator/default";
1419 description { state: "default" 0.0;
1420 fixed: 1 1;
1421 rel1.to: "elm.dragable2.slider";
1422 rel2.to: "elm.dragable2.slider";
1423 visible: 0;
1424 }
1425 description { state: "hidden" 0.0;
1426 inherit: "default" 0.0;
1427 visible: 0;
1428 }
1429 description { state: "show" 0.0;
1430 inherit: "default" 0.0;
1431 visible: 1;
1432 }
1433 }
1434 part { name: "elm.dragable2.slider"; type: RECT;
1435 scale: 1;
1436 dragable.x: 0 0 0;
1437 dragable.y: 1 1 0;
1438 dragable.confine: "elm.swallow.bar";
1439 description { state: "default" 0.0;
1440 color: 0 0 0 0;
1441 min: 16 16;
1442 max: 16 16;
1443 fixed: 1 1;
1444 rel1.relative: 0.0 0.5;
1445 rel1.to_x: "elm.swallow.bar";
1446 rel2.relative: 1.0 0.5;
1447 rel2.to_x: "elm.swallow.bar";
1448 visible: 0;
1449 }
1450 description { state: "show" 0.0;
1451 inherit: "default" 0.0;
1452 visible: 1;
1453 }
1454 }
1455 part { name: "knob2";
1456 description { state: "default" 0.0;
1457 image.normal: "knob";
1458 fixed: 1 1;
1459 min: 12 12;
1460 step: 2 2;
1461 max: 32 32; // XXX allow bigger sizes with more knob images
1462 rel1.to: "elm.dragable2.slider";
1463 rel1.offset: -4 -4;
1464 rel2.to: "elm.dragable2.slider";
1465 rel2.offset: 3 3;
1466 visible: 0;
1467 }
1468 description { state: "show" 0.0;
1469 inherit: "default" 0.0;
1470 visible: 1;
1471 }
1472 description { state: "clicked" 0.0;
1473 inherit: "default" 0.0;
1474 }
1475 }
1476 part { name: "slideevent2"; type: RECT; repeat_events: 1;
1477 scale: 1;
1478 ignore_flags: ON_HOLD;
1479 dragable.events: "elm.dragable2.slider";
1480 description { state: "default" 0.0;
1481 fixed: 1 1;
1482 rel1.to: "elm.dragable2.slider";
1483 rel2.to: "elm.dragable2.slider";
1484 color: 0 0 0 0;
1485 visible: 0;
1486 }
1487 description { state: "show" 0.0;
1488 inherit: "default" 0.0;
1489 visible: 1;
1490 }
1491 }
1492 part { name: "elm.track2.slider"; type: SWALLOW; mouse_events: 0;
1493 description { state: "default" 0.0;
1494 max: 0 0;
1495 rel1.to: "elm.dragable2.slider";
1496 rel2.to: "elm.dragable2.slider";
1497 visible: 0;
1498 }
1499 description { state: "show" 0.0;
1500 inherit: "default" 0.0;
1501 visible: 1;
1502 }
1503 }
1152 part { name: "event"; type: RECT; 1504 part { name: "event"; type: RECT;
1153 description { state: "default" 0.0; 1505 description { state: "default" 0.0;
1154 color: 0 0 0 0; 1506 color: 0 0 0 0;
@@ -1172,6 +1524,46 @@ group { name: "elm/slider/vertical/default";
1172 target: "knob"; 1524 target: "knob";
1173 } 1525 }
1174 program { 1526 program {
1527 signal: "elm,slider,range,enable";
1528 source: "elm";
1529 script {
1530 set_int(range, 1);
1531 set_state(PART:"button2", "show", 0.0);
1532 set_state(PART:"elm.dragable2.slider", "show", 0.0);
1533 set_state(PART:"knob2", "show", 0.0);
1534 set_state(PART:"slideevent2", "show", 0.0);
1535 set_state(PART:"elm.track2.slider", "show", 0.0);
1536 update_glow();
1537 new m = get_int(slmode);
1538 eval_mode(m);
1539 }
1540 }
1541 program {
1542 signal: "elm,slider,range,disable";
1543 source: "elm";
1544 script {
1545 set_int(range, 0);
1546 set_state(PART:"button2", "default", 0.0);
1547 set_state(PART:"elm.dragable2.slider", "default", 0.0);
1548 set_state(PART:"knob2", "default", 0.0);
1549 set_state(PART:"slideevent2", "default", 0.0);
1550 set_state(PART:"elm.track2.slider", "default", 0.0);
1551 set_state(PART:"glow", "default", 0.0);
1552 new m = get_int(slmode);
1553 eval_mode(m);
1554 }
1555 }
1556 program {
1557 signal: "drag";
1558 source: "elm.dragable*";
1559 script {
1560 new r;
1561 r = get_int(range);
1562 if (r)
1563 update_glow();
1564 }
1565 }
1566 program {
1175 signal: "elm,state,indicator,show"; source: "elm"; 1567 signal: "elm,state,indicator,show"; source: "elm";
1176 action: SIGNAL_EMIT "elm,popup,show" "elm"; 1568 action: SIGNAL_EMIT "elm,popup,show" "elm";
1177 after: "popup_show2"; 1569 after: "popup_show2";
@@ -1200,6 +1592,24 @@ group { name: "elm/slider/vertical/default";
1200 target: "button"; 1592 target: "button";
1201 } 1593 }
1202 program { 1594 program {
1595 signal: "mouse,down,1"; source: "slideevent2";
1596 action: SIGNAL_EMIT "elm,popup,show" "elm";
1597 after: "popup2_show2";
1598 }
1599 program { name: "popup2_show2";
1600 action: STATE_SET "show" 0.0;
1601 target: "button2";
1602 }
1603 program {
1604 signal: "mouse,up,1"; source: "slideevent2";
1605 action: SIGNAL_EMIT "elm,popup,hide" "elm";
1606 after: "popup2_hide2";
1607 }
1608 program { name: "popup2_hide2";
1609 action: STATE_SET "hidden" 0.0;
1610 target: "button2";
1611 }
1612 program {
1203 signal: "elm,state,text,visible"; source: "elm"; 1613 signal: "elm,state,text,visible"; source: "elm";
1204 script { 1614 script {
1205 new m = get_int(slmode); 1615 new m = get_int(slmode);
@@ -1329,6 +1739,9 @@ group { name: "elm/slider/vertical/indicator/default";
1329 fixed: 1 1; 1739 fixed: 1 1;
1330 min: 16 16; 1740 min: 16 16;
1331 } 1741 }
1742 description { state: "disabled" 0.0;
1743 inherit: "default" 0.0;
1744 }
1332 } 1745 }
1333 part { name: "clip"; type: RECT; 1746 part { name: "clip"; type: RECT;
1334 description { state: "default" 0.0; 1747 description { state: "default" 0.0;
diff --git a/data/elementary/themes/img/horiz_glow_range.png b/data/elementary/themes/img/horiz_glow_range.png
new file mode 100755
index 0000000..63b0e6c
--- /dev/null
+++ b/data/elementary/themes/img/horiz_glow_range.png
Binary files differ
diff --git a/data/elementary/themes/img/vert_glow_range.png b/data/elementary/themes/img/vert_glow_range.png
new file mode 100755
index 0000000..c546fd2
--- /dev/null
+++ b/data/elementary/themes/img/vert_glow_range.png
Binary files differ