summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-05-25 10:33:53 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-05-25 10:35:38 +0530
commitc983b3e1e67d933f2496b3f8785f492041235f93 (patch)
tree6d0e01471dd077a63c3a77a2e67cf3c936a64971 /data
parentecc556c7156362c2818b54bfb20f4c2d781b309d (diff)
slider: move range as a group in theme
Most of the used cases would be slider without range, hence move range feature to a new theme. "elm/slider/range/../.."
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/slider.edc1703
1 files changed, 1428 insertions, 275 deletions
diff --git a/data/elementary/themes/edc/elm/slider.edc b/data/elementary/themes/edc/elm/slider.edc
index 5786dfe..3a3bc8e 100644
--- a/data/elementary/themes/edc/elm/slider.edc
+++ b/data/elementary/themes/edc/elm/slider.edc
@@ -39,6 +39,1421 @@ 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_run_rev.png" COMP;
43 images.image: "knob_round_small_normal.png" COMP;
44 images.image: "knob_round_small_selected.png" COMP;
45 set { name: "knob";
46 // XXX: add more sizes (at least up to 128x128)
47 image { image: "knob_sz_24.png" COMP; size: 31 31 32 32; }
48 image { image: "knob_sz_22.png" COMP; size: 29 29 30 30; }
49 image { image: "knob_sz_20.png" COMP; size: 27 27 28 28; }
50 image { image: "knob_sz_18.png" COMP; size: 25 25 26 26; }
51 image { image: "knob_sz_16.png" COMP; size: 23 23 24 24; }
52 image { image: "knob_sz_14.png" COMP; size: 21 21 22 22; }
53 image { image: "knob_sz_12.png" COMP; size: 19 19 20 20; }
54 image { image: "knob_sz_10.png" COMP; size: 17 17 18 18; }
55 image { image: "knob_sz_08.png" COMP; size: 15 15 16 16; }
56 image { image: "knob_sz_06.png" COMP; size: 13 13 14 14; }
57 image { image: "knob_sz_04.png" COMP; size: 0 0 12 12; }
58 }
59#define ICON 1
60#define LABEL 2
61#define END 4
62#define UNITS 8
63#define MASK 15
64#define INVERT 16
65#define DISABLE 32
66 script {
67 public slmode;
68 public eval_mode(m) {
69 new ic = m & ICON;
70 new l = m & LABEL;
71 new e = m & END;
72 new u = m & UNITS;
73 new d = m & DISABLE;
74 new i = m & INVERT;
75 if (i) {
76 if (!d) {
77 set_state(PART:"base", "default", 0.0);
78 set_state(PART:"glow", "inverted", 0.0);
79 } else {
80 set_state(PART:"base", "disabled", 0.0);
81 set_state(PART:"glow", "disabled_inverted", 0.0);
82 }
83 } else {
84 if (!d) {
85 set_state(PART:"base", "default", 0.0);
86 set_state(PART:"glow", "default", 0.0);
87 } else {
88 set_state(PART:"base", "disabled", 0.0);
89 set_state(PART:"glow", "disabled", 0.0);
90 }
91 }
92 if (l) {
93 if (!d) {
94 set_state(PART:"elm.text", "visible", 0.0);
95 } else {
96 set_state(PART:"elm.text", "disabled_visible", 0.0);
97 }
98 } else {
99 set_state(PART:"elm.text", "default", 0.0);
100 }
101 if (u) {
102 if (!d) {
103 set_state(PART:"elm.units", "visible", 0.0);
104 set_state(PART:"limits", "visible", 0.0);
105 } else {
106 set_state(PART:"elm.units", "disabled_visible", 0.0);
107 set_state(PART:"limits", "disabled_visible", 0.0);
108 }
109 } else {
110 set_state(PART:"elm.units", "default", 0.0);
111 set_state(PART:"limits", "default", 0.0);
112 }
113 if (ic) {
114 set_state(PART:"elm.swallow.icon", "visible", 0.0);
115 set_state(PART:"sizer.content", "visible", 0.0);
116 } else {
117 set_state(PART:"elm.swallow.icon", "default", 0.0);
118 set_state(PART:"sizer.content", "default", 0.0);
119 }
120 if (e) {
121 set_state(PART:"elm.swallow.end", "visible", 0.0);
122 set_state(PART:"sizer.content.end", "visible", 0.0);
123 } else {
124 set_state(PART:"elm.swallow.end", "default", 0.0);
125 set_state(PART:"sizer.content.end", "default", 0.0);
126 }
127 if (!d) {
128 set_state(PART:"event", "default", 0.0);
129 set_state(PART:"dis_clip", "default", 0.0);
130 } else {
131 set_state(PART:"event", "disabled", 0.0);
132 set_state(PART:"dis_clip", "disabled", 0.0);
133 }
134 }
135 }
136 parts {
137 part { name: "elm.swallow.bar"; type: SWALLOW;
138 scale: 1;
139 description { state: "default" 0.0;
140 min: 42 21;
141 max: 99999 21;
142 align: 1.0 0.5;
143 rel1.to_x: "elm.text";
144 rel1.relative: 1.0 0.0;
145 rel1.offset: 2 0;
146 rel2.to_x: "limits";
147 rel2.relative: 0.0 1.0;
148 rel2.offset: -3 -1;
149 }
150 }
151 part { name: "base"; mouse_events: 0;
152 description { state: "default" 0.0;
153 rel1.to: "elm.swallow.bar";
154 rel2.to: "elm.swallow.bar";
155 image.normal: "slider_run_base_horiz.png";
156 image.border: 4 4 0 0;
157 fill.smooth: 0;
158 min: 8 5;
159 max: 99999 5;
160 fixed: 0 1;
161 }
162 description { state: "disabled" 0.0;
163 inherit: "default" 0.0;
164 image.normal: "slider_run_base_light_horiz.png";
165 }
166 }
167 part { name: "glow"; mouse_events: 0;
168 description { state: "default" 0.0;
169 image.normal: "horiz_glow_run.png";
170 rel1.offset: 1 1;
171 rel1.to: "base";
172 rel2.relative: 0.5 1.0;
173 rel2.offset: -1 -2;
174 rel2.to_x: "button";
175 rel2.to_y: "base";
176 image.border: 0 4 0 0;
177 }
178 description { state: "disabled" 0.0;
179 inherit: "default" 0.0;
180 color: 255 255 255 64;
181 }
182 description { state: "inverted" 0.0;
183 image.normal: "horiz_glow_run_rev.png";
184 rel1.relative: 0.5 0.0;
185 rel1.offset: 0 1;
186 rel1.to_x: "button";
187 rel1.to_y: "base";
188 rel2.offset: -2 -2;
189 rel2.to: "base";
190 image.border: 4 0 0 0;
191 }
192 description { state: "disabled_inverted" 0.0;
193 inherit: "inverted" 0.0;
194 color: 255 255 255 64;
195 }
196 }
197 part { name: "bevel"; mouse_events: 0;
198 description { state: "default" 0.0;
199 rel1.to: "base";
200 rel2.to: "base";
201 image.normal: "slider_run_bevel_horiz.png";
202 image.border: 5 5 0 0;
203 fill.smooth: 0;
204 }
205 }
206 part { name: "dis_clip"; type: RECT;
207 description { state: "default" 0.0;
208 rel1.to: "elm.swallow.icon";
209 rel2.to: "elm.swallow.end";
210 }
211 description { state: "disabled" 0.0;
212 inherit: "default" 0.0;
213 color: 255 255 255 64;
214 }
215 }
216 part { name: "elm.swallow.icon"; type: SWALLOW;
217 clip_to: "dis_clip";
218 description { state: "default" 0.0;
219 visible: 0;
220 align: 0.0 0.5;
221 rel1.offset: 0 2;
222 rel1.to_y: "elm.swallow.bar";
223 rel2.offset: -1 -3;
224 rel2.relative: 0.0 1.0;
225 rel2.to_y: "elm.swallow.bar";
226 }
227 description { state: "visible" 0.0;
228 inherit: "default" 0.0;
229 visible: 1;
230 aspect: 1.0 1.0; aspect_preference: VERTICAL;
231 rel1.offset: 2 2;
232 rel2.offset: 2 -3;
233 }
234 }
235 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
236 scale: 1;
237 description { state: "default" 0.0;
238 fixed: 1 1;
239 visible: 0;
240 text { font: FN; size: 10;
241 min: 0 0;
242 text_class: "slider_text";
243 }
244 }
245 description { state: "visible" 0.0;
246 inherit: "default" 0.0;
247 rel1.to: "elm.swallow.icon";
248 rel2.to: "elm.swallow.icon";
249 text {
250 min: 1 1;
251 ellipsis: -1;
252 text: "M";
253 }
254 }
255 }
256 part { name: "elm.text"; type: TEXT; mouse_events: 0;
257 effect: SHADOW BOTTOM;
258 scale: 1;
259 description { state: "default" 0.0;
260 fixed: 1 1;
261 align: 0.0 0.5;
262 rel1.to_x: "elm.swallow.icon";
263 rel1.relative: 1.0 0.0;
264 rel1.offset: -1 2;
265 rel2.to_x: "elm.swallow.icon";
266 rel2.relative: 1.0 1.0;
267 rel2.offset: -1 -3;
268 color: FN_COL_DEFAULT;
269 color_class: "slider_text";
270 text { font: FN; size: 10;
271 text_class: "slider";
272 min: 0 0;
273 align: 0.0 0.5;
274 }
275 visible: 0;
276 }
277 description { state: "visible" 0.0;
278 inherit: "default" 0.0;
279 fixed: 1 0;
280 visible: 1;
281 rel1.offset: 2 2;
282 rel2.offset: 2 -3;
283 text.min: 1 1;
284 text.ellipsis: -1;
285 }
286 description { state: "disabled_visible" 0.0;
287 inherit: "visible" 0.0;
288 color_class: "slider_text_disabled";
289 color3: 255 255 255 255;
290 }
291 }
292 part { name: "elm.swallow.end"; type: SWALLOW;
293 clip_to: "dis_clip";
294 description { state: "default" 0.0;
295 visible: 0;
296 align: 1.0 0.5;
297 rel1.offset: 0 2;
298 rel1.relative: 1.0 0.0;
299 rel2.offset: -1 -3;
300 }
301 description { state: "visible" 0.0;
302 inherit: "default" 0.0;
303 visible: 1;
304 aspect: 1.0 1.0;
305 aspect_preference: VERTICAL;
306 rel1.offset: -3 2;
307 rel2.offset: -3 -3;
308 }
309 }
310 part { name: "sizer.content.end"; type: TEXT; mouse_events: 0;
311 scale: 1;
312 description { state: "default" 0.0;
313 fixed: 1 1;
314 visible: 0;
315 text { font: FN; size: 10;
316 min: 0 0;
317 text_class: "slider_text";
318 }
319 }
320 description { state: "visible" 0.0;
321 inherit: "default" 0.0;
322 rel1.to: "elm.swallow.end";
323 rel2.to: "elm.swallow.end";
324 text {
325 min: 1 1;
326 ellipsis: -1;
327 text: "M";
328 }
329 }
330 }
331 alias: "elm.units.min" "limits:elm.units.min";
332 alias: "elm.units.max" "limits:elm.units.max";
333 part { name: "limits"; type: GROUP; mouse_events: 0;
334 source: "elm/slider/hidden/limit";
335 scale: 1;
336 description { state: "default" 0.0;
337 visible: 0;
338 align: 1.0 0.5;
339 min: SOURCE;
340 fixed: 1 1;
341 rel1.to_x: "elm.swallow.end";
342 rel1.relative: 0.0 0.0;
343 rel1.offset: 0 2;
344 rel2.to_x: "elm.swallow.end";
345 rel2.relative: 0.0 1.0;
346 rel2.offset: -1 -3;
347 }
348 description { state: "visible" 0.0;
349 inherit: "default" 0.0;
350 rel1.offset: -3 2;
351 rel2.offset: -3 -3;
352 }
353 }
354 part { name: "elm.units"; type: TEXT; mouse_events: 0;
355 effect: SHADOW BOTTOM;
356 scale: 1;
357 description { state: "default" 0.0;
358 visible: 0;
359 fixed: 1 1;
360 rel1.to_x: "limits";
361 rel2.to_x: "limits";
362 color: FN_COL_DEFAULT;
363 color_class: "slider_text";
364 text { font: FN; size: 10;
365 text_class: "slider";
366 align: 1.0 0.5;
367 min: 1 1;
368 ellipsis: -1;
369 }
370 }
371 description { state: "visible" 0.0;
372 inherit: "default" 0.0;
373 visible: 1;
374 }
375 description { state: "disabled_visible" 0.0;
376 inherit: "visible" 0.0;
377 color_class: "slider_text_disabled";
378 color3: 255 255 255 255;
379 }
380 }
381 part { name: "button"; type: GROUP; mouse_events: 0;
382 source: "elm/slider/horizontal/indicator/default";
383 description { state: "default" 0.0;
384 fixed: 1 1;
385 rel1.to: "elm.dragable.slider";
386 rel2.to: "elm.dragable.slider";
387 }
388 description { state: "hidden" 0.0;
389 inherit: "default" 0.0;
390 visible: 0;
391 }
392 }
393 part { name: "elm.dragable.slider"; type: RECT;
394 scale: 1;
395 dragable.x: 1 1 0;
396 dragable.y: 0 0 0;
397 dragable.confine: "elm.swallow.bar";
398 description { state: "default" 0.0;
399 color: 0 0 0 0;
400 min: 16 16;
401 max: 16 16;
402 fixed: 1 1;
403 rel1.relative: 0.5 0.0;
404 rel1.to_x: "elm.swallow.bar";
405 rel2.relative: 0.5 1.0;
406 rel2.to_x: "elm.swallow.bar";
407 }
408 }
409 part { name: "knob";
410 description { state: "default" 0.0;
411 image.normal: "knob";
412 fixed: 1 1;
413 min: 12 12;
414 step: 2 2;
415 max: 32 32; // XXX allow bigger sizes with more knob images
416 rel1.to: "elm.dragable.slider";
417 rel1.offset: -4 -4;
418 rel2.to: "elm.dragable.slider";
419 rel2.offset: 3 3;
420 }
421 description { state: "clicked" 0.0;
422 inherit: "default" 0.0;
423 }
424 }
425 part { name: "slideevent"; type: RECT; repeat_events: 1;
426 scale: 1;
427 ignore_flags: ON_HOLD;
428 dragable.events: "elm.dragable.slider";
429 description { state: "default" 0.0;
430 fixed: 1 1;
431 rel1.to: "elm.dragable.slider";
432 rel2.to: "elm.dragable.slider";
433 color: 0 0 0 0;
434 }
435 }
436 part { name: "elm.track.slider"; type: SWALLOW; mouse_events: 0;
437 description { state: "default" 0.0;
438 max: 0 0;
439 rel1.to: "elm.dragable.slider";
440 rel2.to: "elm.dragable.slider";
441 }
442 }
443 part { name: "event"; type: RECT;
444 description { state: "default" 0.0;
445 color: 0 0 0 0;
446 visible: 0;
447 }
448 description { state: "disabled" 0.0;
449 inherit: "default" 0.0;
450 visible: 1;
451 }
452 }
453 }
454 programs {
455 program {
456 signal: "mouse,down,1"; source: "elm.dragable.slider";
457 action: STATE_SET "clicked" 0.0;
458 target: "knob";
459 }
460 program {
461 signal: "mouse,up,1"; source: "elm.dragable.slider";
462 action: STATE_SET "default" 0.0;
463 target: "knob";
464 }
465 program {
466 signal: "elm,state,indicator,show"; source: "elm";
467 action: SIGNAL_EMIT "elm,popup,show" "elm";
468 after: "popup_show2";
469 }
470 program {
471 signal: "elm,state,indicator,hide"; source: "elm";
472 action: SIGNAL_EMIT "elm,popup,hide" "elm";
473 after: "popup_hide2";
474 }
475 program {
476 signal: "mouse,down,1"; source: "slideevent";
477 action: SIGNAL_EMIT "elm,popup,show" "elm";
478 after: "popup_show2";
479 }
480 program { name: "popup_show2";
481 action: STATE_SET "hidden" 0.0;
482 target: "button";
483 }
484 program {
485 signal: "mouse,up,1"; source: "slideevent";
486 action: SIGNAL_EMIT "elm,popup,hide" "elm";
487 after: "popup_hide2";
488 }
489 program { name: "popup_hide2";
490 action: STATE_SET "default" 0.0;
491 target: "button";
492 }
493 program {
494 signal: "elm,state,text,visible"; source: "elm";
495 script {
496 new m = get_int(slmode);
497 m |= LABEL; set_int(slmode, m);
498 eval_mode(m);
499 }
500 }
501 program {
502 signal: "elm,state,text,hidden"; source: "elm";
503 script {
504 new m = get_int(slmode);
505 m &= ~LABEL; set_int(slmode, m);
506 eval_mode(m);
507 }
508 }
509 program {
510 signal: "elm,state,icon,visible"; source: "elm";
511 script {
512 new m = get_int(slmode);
513 m |= ICON; set_int(slmode, m);
514 eval_mode(m);
515 }
516 }
517 program {
518 signal: "elm,state,icon,hidden"; source: "elm";
519 script {
520 new m = get_int(slmode);
521 m &= ~ICON; set_int(slmode, m);
522 eval_mode(m);
523 }
524 }
525 program { name: "end_show";
526 signal: "elm,state,end,visible"; source: "elm";
527 script {
528 new m = get_int(slmode);
529 m |= END; set_int(slmode, m);
530 eval_mode(m);
531 }
532 }
533 program { name: "end_hide";
534 signal: "elm,state,end,hidden"; source: "elm";
535 script {
536 new m = get_int(slmode);
537 m &= ~END; set_int(slmode, m);
538 eval_mode(m);
539 }
540 }
541 program {
542 signal: "elm,state,units,visible"; source: "elm";
543 script {
544 new m = get_int(slmode);
545 m |= UNITS; set_int(slmode, m);
546 eval_mode(m);
547 }
548 }
549 program {
550 signal: "elm,state,units,visible"; source: "elm";
551 action: SIGNAL_EMIT "limits,visible" "elm";
552 target: "limits";
553 }
554 program {
555 signal: "elm,state,units,hidden"; source: "elm";
556 action: STATE_SET "default" 0.0;
557 script {
558 new m = get_int(slmode);
559 m &= ~UNITS; set_int(slmode, m);
560 eval_mode(m);
561 }
562 }
563 program {
564 signal: "elm,state,units,hidden"; source: "elm";
565 action: SIGNAL_EMIT "limits,hide" "elm";
566 target: "limits";
567 }
568 program {
569 signal: "elm,state,inverted,on"; source: "elm";
570 script {
571 new m = get_int(slmode);
572 m |= INVERT; set_int(slmode, m);
573 eval_mode(m);
574 }
575 }
576 program {
577 signal: "elm,state,inverted,off"; source: "elm";
578 script {
579 new m = get_int(slmode);
580 m &= ~INVERT; set_int(slmode, m);
581 eval_mode(m);
582 }
583 }
584 program {
585 signal: "elm,state,disabled"; source: "elm";
586 script {
587 new m = get_int(slmode);
588 m |= DISABLE; set_int(slmode, m);
589 eval_mode(m);
590 }
591 }
592 program {
593 signal: "elm,state,enabled"; source: "elm";
594 script {
595 new m = get_int(slmode);
596 m &= ~DISABLE; set_int(slmode, m);
597 eval_mode(m);
598 }
599 }
600 }
601#undef ICON
602#undef LABEL
603#undef END
604#undef UNITS
605#undef MASK
606#undef INVERT
607#undef DISABLE
608}
609
610group { name: "elm/slider/horizontal/indicator/default";
611 alias: "elm/slider/horizontal/indicator/disabled";
612 alias: "elm/slider/horizontal/popup/default";
613 alias: "elm/slider/horizontal/indicator/media_player/position/default";
614 alias: "elm/slider/horizontal/indicator/media_player/position/flush";
615 alias: "elm/slider/horizontal/indicator/media_player/volume/default";
616 alias: "elm/slider/horizontal/indicator/media_player/volume/flush";
617 images.image: "darken_rounded_square.png" COMP;
618 parts {
619 part { name: "base"; type: SPACER;
620 scale: 1;
621 description { state: "default" 0.0;
622 fixed: 1 1;
623 min: 16 16;
624 }
625 }
626 part { name: "clip"; type: RECT;
627 description { state: "default" 0.0;
628 fixed: 1 1;
629 rel1.to: "elm.indicator";
630 rel1.offset: -100 -100;
631 rel2.to: "elm.indicator";
632 rel2.offset: 99 99;
633 visible: 0;
634 }
635 description { state: "visible" 0.0;
636 inherit: "default" 0.0;
637 visible: 1;
638 }
639 }
640 part { name: "bevel"; mouse_events: 0;
641 clip_to: "clip";
642 description { state: "default" 0.0;
643 rel1.offset: -12 -12;
644 rel1.to: "elm.indicator";
645 rel2.offset: 11 11;
646 rel2.to: "elm.indicator";
647 image.normal: "darken_rounded_square.png";
648 image.border: 15 15 15 15;
649 fill.smooth: 0;
650 visible: 0;
651 }
652 description { state: "visible" 0.0;
653 inherit: "default" 0.0;
654 visible: 1;
655 }
656 }
657 part { name: "elm.indicator"; type: TEXT; mouse_events: 0;
658 clip_to: "clip";
659 effect: SHADOW BOTTOM;
660 scale: 1;
661 description { state: "default" 0.0;
662 fixed: 1 1;
663 align: 0.5 1.0;
664 rel1.to: "base";
665 rel1.relative: 0.0 -0.1;
666 rel1.offset: 0 -12;
667 rel2.to: "base";
668 rel2.relative: 1.0 -0.1;
669 rel2.offset: -1 -12;
670 color_class: "slider_indicator";
671 color: FN_COL_DEFAULT;
672 text { font: FNBD; size: 10;
673 min: 1 1;
674 align: 0.5 1.0;
675 text_class: "slider_indicator";
676 ellipsis: -1;
677 }
678 visible: 0;
679 }
680 description { state: "visible" 0.0;
681 inherit: "default" 0.0;
682 visible: 1;
683 }
684 }
685 }
686 programs {
687 program {
688 signal: "elm,popup,show"; source: "elm";
689 action: STATE_SET "visible" 0.0;
690 target: "elm.indicator";
691 target: "bevel";
692 }
693 program {
694 signal: "elm,popup,hide"; source: "elm";
695 action: STATE_SET "default" 0.0;
696 target: "elm.indicator";
697 target: "bevel";
698 }
699 program {
700 signal: "elm,popup,hide"; source: "elm";
701 action: SIGNAL_EMIT "elm,popup,hide,done" "elm";
702 }
703 program {
704 signal: "elm,state,val,show"; source: "elm";
705 action: STATE_SET "visible" 0.0;
706 target: "clip";
707 }
708 program {
709 signal: "elm,state,val,hide"; source: "elm";
710 action: STATE_SET "default" 0.0;
711 target: "clip";
712 }
713 program {
714 signal: "elm,state,indicator,show"; source: "elm";
715 action: STATE_SET "visible" 0.0;
716 target: "elm.indicator";
717 target: "bevel";
718 }
719 program {
720 signal: "elm,state,indicator,hide"; source: "elm";
721 action: STATE_SET "visible" 0.0;
722 target: "elm.indicator";
723 target: "bevel";
724 }
725 program {
726 signal: "elm,state,disabled"; source: "elm";
727 action: STATE_SET "disabled" 0.0;
728 target: "base";
729 }
730 program {
731 signal: "elm,state,enabled"; source: "elm";
732 action: STATE_SET "default" 0.0;
733 target: "base";
734 }
735 }
736}
737
738group { name: "elm/slider/vertical/default";
739 alias: "elm/slider/vertical/disabled";
740 alias: "elm/slider/vertical/media_player/position/default";
741 alias: "elm/slider/vertical/media_player/position/flush";
742 alias: "elm/slider/vertical/media_player/volume/default";
743 alias: "elm/slider/vertical/media_player/volume/flush";
744 images.image: "slider_run_base_vert.png" COMP;
745 images.image: "slider_run_bevel_vert.png" COMP;
746 images.image: "slider_run_base_light_vert.png" COMP;
747 images.image: "vert_glow_run.png" COMP;
748 images.image: "vert_glow_run_rev.png" COMP;
749 images.image: "knob_round_small_normal.png" COMP;
750 images.image: "knob_round_small_selected.png" COMP;
751 set { name: "knob";
752 // XXX: add more sizes (at least up to 128x128)
753 image { image: "knob_sz_24.png" COMP; size: 31 31 32 32; }
754 image { image: "knob_sz_22.png" COMP; size: 29 29 30 30; }
755 image { image: "knob_sz_20.png" COMP; size: 27 27 28 28; }
756 image { image: "knob_sz_18.png" COMP; size: 25 25 26 26; }
757 image { image: "knob_sz_16.png" COMP; size: 23 23 24 24; }
758 image { image: "knob_sz_14.png" COMP; size: 21 21 22 22; }
759 image { image: "knob_sz_12.png" COMP; size: 19 19 20 20; }
760 image { image: "knob_sz_10.png" COMP; size: 17 17 18 18; }
761 image { image: "knob_sz_08.png" COMP; size: 15 15 16 16; }
762 image { image: "knob_sz_06.png" COMP; size: 13 13 14 14; }
763 image { image: "knob_sz_04.png" COMP; size: 0 0 12 12; }
764 }
765#define ICON 1
766#define LABEL 2
767#define END 4
768#define UNITS 8
769#define MASK 15
770#define INVERT 16
771#define DISABLE 32
772 script {
773 public slmode;
774 public eval_mode(m) {
775 new ic = m & ICON;
776 new l = m & LABEL;
777 new e = m & END;
778 new u = m & UNITS;
779 new d = m & DISABLE;
780 new i = m & INVERT;
781 if (i) {
782 if (!d) {
783 set_state(PART:"base", "default", 0.0);
784 set_state(PART:"glow", "inverted", 0.0);
785 } else {
786 set_state(PART:"base", "disabled", 0.0);
787 set_state(PART:"glow", "disabled_inverted", 0.0);
788 }
789 } else {
790 if (!d) {
791 set_state(PART:"base", "default", 0.0);
792 set_state(PART:"glow", "default", 0.0);
793 } else {
794 set_state(PART:"base", "disabled", 0.0);
795 set_state(PART:"glow", "disabled", 0.0);
796 }
797 }
798 if (l) {
799 if (!d) {
800 set_state(PART:"elm.text", "visible", 0.0);
801 } else {
802 set_state(PART:"elm.text", "disabled_visible", 0.0);
803 }
804 } else {
805 set_state(PART:"elm.text", "default", 0.0);
806 }
807 if (u) {
808 if (!d) {
809 set_state(PART:"elm.units", "visible", 0.0);
810 set_state(PART:"limits", "visible", 0.0);
811 } else {
812 set_state(PART:"elm.units", "disabled_visible", 0.0);
813 set_state(PART:"limits", "disabled_visible", 0.0);
814 }
815 } else {
816 set_state(PART:"elm.units", "default", 0.0);
817 set_state(PART:"limits", "default", 0.0);
818 }
819 if (ic) {
820 set_state(PART:"elm.swallow.icon", "visible", 0.0);
821 set_state(PART:"sizer.content", "visible", 0.0);
822 } else {
823 set_state(PART:"elm.swallow.icon", "default", 0.0);
824 set_state(PART:"sizer.content", "default", 0.0);
825 }
826 if (e) {
827 set_state(PART:"elm.swallow.end", "visible", 0.0);
828 set_state(PART:"sizer.content.end", "visible", 0.0);
829 } else {
830 set_state(PART:"elm.swallow.end", "default", 0.0);
831 set_state(PART:"sizer.content.end", "default", 0.0);
832 }
833 if (!d) {
834 set_state(PART:"event", "default", 0.0);
835 set_state(PART:"dis_clip", "default", 0.0);
836 } else {
837 set_state(PART:"event", "disabled", 0.0);
838 set_state(PART:"dis_clip", "disabled", 0.0);
839 }
840 }
841 }
842 parts {
843 part { name: "elm.swallow.bar"; type: SWALLOW;
844 scale: 1;
845 description { state: "default" 0.0;
846 min: 21 42;
847 max: 21 99999;
848 align: 0.5 1.0;
849 rel1.to_y: "elm.text";
850 rel1.relative: 0.0 1.0;
851 rel1.offset: 0 2;
852 rel2.to_y: "limits";
853 rel2.relative: 1.0 0.0;
854 rel2.offset: -1 -3;
855 }
856 }
857 part { name: "base"; mouse_events: 0;
858 description { state: "default" 0.0;
859 rel1.to: "elm.swallow.bar";
860 rel2.to: "elm.swallow.bar";
861 image.normal: "slider_run_base_vert.png";
862 image.border: 0 0 4 4;
863 fill.smooth: 0;
864 min: 5 8;
865 max: 5 99999;
866 fixed: 1 0;
867 }
868 description { state: "disabled" 0.0;
869 inherit: "default" 0.0;
870 image.normal: "slider_run_base_light_vert.png";
871 }
872 }
873 part { name: "glow"; mouse_events: 0;
874 description { state: "default" 0.0;
875 image.normal: "vert_glow_run.png";
876 rel1.offset: 1 1;
877 rel1.to: "base";
878 rel2.relative: 1.0 0.5;
879 rel2.offset: -2 -1;
880 rel2.to_y: "button";
881 rel2.to_x: "base";
882 image.border: 0 0 0 4;
883 }
884 description { state: "disabled" 0.0;
885 inherit: "default" 0.0;
886 color: 255 255 255 64;
887 }
888 description { state: "inverted" 0.0;
889 image.normal: "vert_glow_run_rev.png";
890 rel1.relative: 0.0 0.5;
891 rel1.offset: 1 0;
892 rel1.to_y: "button";
893 rel1.to_x: "base";
894 rel2.offset: -2 -2;
895 rel2.to: "base";
896 image.border: 0 0 4 0;
897 }
898 description { state: "disabled_inverted" 0.0;
899 inherit: "inverted" 0.0;
900 color: 255 255 255 64;
901 }
902 }
903 part { name: "bevel"; mouse_events: 0;
904 description { state: "default" 0.0;
905 rel1.to: "base";
906 rel2.to: "base";
907 image.normal: "slider_run_bevel_vert.png";
908 image.border: 0 0 5 5;
909 fill.smooth: 0;
910 }
911 }
912 part { name: "dis_clip"; type: RECT;
913 description { state: "default" 0.0;
914 rel1.to: "elm.swallow.icon";
915 rel2.to: "elm.swallow.end";
916 }
917 description { state: "disabled" 0.0;
918 inherit: "default" 0.0;
919 color: 255 255 255 64;
920 }
921 }
922 part { name: "elm.swallow.icon"; type: SWALLOW;
923 clip_to: "dis_clip";
924 description { state: "default" 0.0;
925 visible: 0;
926 align: 0.5 0.0;
927 rel1.offset: 2 0;
928 rel1.to_x: "elm.swallow.bar";
929 rel2.offset: -3 -1;
930 rel2.relative: 1.0 0.0;
931 rel2.to_x: "elm.swallow.bar";
932 }
933 description { state: "visible" 0.0;
934 inherit: "default" 0.0;
935 visible: 1;
936 aspect: 1.0 1.0; aspect_preference: VERTICAL;
937 rel1.offset: 2 2;
938 rel2.offset: -3 2;
939 }
940 }
941 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
942 scale: 1;
943 description { state: "default" 0.0;
944 fixed: 1 1;
945 visible: 0;
946 text { font: FN; size: 10;
947 min: 0 0;
948 text_class: "slider_text";
949 }
950 }
951 description { state: "visible" 0.0;
952 inherit: "default" 0.0;
953 rel1.to: "elm.swallow.icon";
954 rel2.to: "elm.swallow.icon";
955 text {
956 min: 1 1;
957 ellipsis: -1;
958 text: "M";
959 }
960 }
961 }
962 part { name: "elm.text"; type: TEXT; mouse_events: 0;
963 effect: SHADOW BOTTOM;
964 scale: 1;
965 description { state: "default" 0.0;
966 fixed: 0 1;
967 align: 0.5 0.0;
968 rel1.to_y: "elm.swallow.icon";
969 rel1.relative: 0.0 1.0;
970 rel1.offset: 2 -1;
971 rel2.to_y: "elm.swallow.icon";
972 rel2.relative: 1.0 1.0;
973 rel2.offset: -3 -1;
974 color: FN_COL_DEFAULT;
975 color_class: "slider_text";
976 text { font: FN; size: 10;
977 text_class: "slider";
978 min: 1 0;
979 ellipsis: -1;
980 align: 0.5 0.0;
981 }
982 visible: 0;
983 }
984 description { state: "visible" 0.0;
985 inherit: "default" 0.0;
986 visible: 1;
987 rel1.offset: 2 2;
988 rel2.offset: -3 2;
989 text.min: 1 1;
990 text.ellipsis: -1;
991
992 }
993 description { state: "disabled_visible" 0.0;
994 inherit: "visible" 0.0;
995 color_class: "slider_text_disabled";
996 color3: 255 255 255 255;
997 }
998 }
999 part { name: "elm.swallow.end"; type: SWALLOW;
1000 clip_to: "dis_clip";
1001 description { state: "default" 0.0;
1002 visible: 0;
1003 align: 0.5 1.0;
1004 rel1.offset: 2 0;
1005 rel1.relative: 0.0 1.0;
1006 rel2.offset: -3 -1;
1007 }
1008 description { state: "visible" 0.0;
1009 inherit: "default" 0.0;
1010 visible: 1;
1011 aspect: 1.0 1.0;
1012 aspect_preference: VERTICAL;
1013 rel2.offset: 2 -3;
1014 rel2.offset: -3 -3;
1015 }
1016 }
1017 part { name: "sizer.content.end"; type: TEXT; mouse_events: 0;
1018 scale: 1;
1019 description { state: "default" 0.0;
1020 fixed: 1 1;
1021 visible: 0;
1022 text { font: FN; size: 10;
1023 min: 0 0;
1024 text_class: "slider_text";
1025 }
1026 }
1027 description { state: "visible" 0.0;
1028 inherit: "default" 0.0;
1029 rel1.to: "elm.swallow.end";
1030 rel2.to: "elm.swallow.end";
1031 text {
1032 min: 1 1;
1033 ellipsis: -1;
1034 text: "M";
1035 }
1036 }
1037 }
1038 alias: "elm.units.min" "limits:elm.units.min";
1039 alias: "elm.units.max" "limits:elm.units.max";
1040 part { name: "limits"; type: GROUP; mouse_events: 0;
1041 source: "elm/slider/hidden/limit";
1042 scale: 1;
1043 description { state: "default" 0.0;
1044 align: 0.5 1.0;
1045 fixed: 1 1;
1046 max: 0 0;
1047 rel1.to_y: "elm.swallow.end";
1048 rel1.relative: 0.0 0.0;
1049 rel1.offset: 2 1;
1050 rel2.to_y: "elm.swallow.end";
1051 rel2.relative: 1.0 0.0;
1052 rel2.offset: -3 0;
1053 }
1054 description { state: "visible" 0.0;
1055 inherit: "default" 0.0;
1056 min: SOURCE;
1057 rel1.offset: 2 -3;
1058 rel2.offset: -3 -3;
1059 }
1060 }
1061 part { name: "elm.units"; type: TEXT; mouse_events: 0;
1062 effect: SHADOW BOTTOM;
1063 scale: 1;
1064 description { state: "default" 0.0;
1065 visible: 0;
1066 fixed: 1 1;
1067 rel1.to_y: "limits";
1068 rel2.to_y: "limits";
1069 color: FN_COL_DEFAULT;
1070 color_class: "slider_text";
1071 text { font: FN; size: 10;
1072 text_class: "slider";
1073 min: 0 0;
1074 align: 0.5 1.0;
1075 ellipsis: -1;
1076 }
1077 }
1078 description { state: "visible" 0.0;
1079 inherit: "default" 0.0;
1080 visible: 1;
1081 text.min: 1 1;
1082 text.ellipsis: -1;
1083 }
1084 description { state: "disabled_visible" 0.0;
1085 inherit: "visible" 0.0;
1086 color_class: "slider_text_disabled";
1087 color3: 255 255 255 255;
1088 }
1089 }
1090 part { name: "button"; type: GROUP; mouse_events: 0;
1091 source: "elm/slider/vertical/indicator/default";
1092 description { state: "default" 0.0;
1093 fixed: 1 1;
1094 rel1.to: "elm.dragable.slider";
1095 rel2.to: "elm.dragable.slider";
1096 }
1097 description { state: "hidden" 0.0;
1098 inherit: "default" 0.0;
1099 visible: 0;
1100 }
1101 }
1102 part { name: "elm.dragable.slider"; type: RECT;
1103 scale: 1;
1104 dragable.x: 0 0 0;
1105 dragable.y: 1 1 0;
1106 dragable.confine: "elm.swallow.bar";
1107 description { state: "default" 0.0;
1108 color: 0 0 0 0;
1109 min: 16 16;
1110 max: 16 16;
1111 fixed: 1 1;
1112 rel1.relative: 0.0 0.5;
1113 rel1.to_x: "elm.swallow.bar";
1114 rel2.relative: 1.0 0.5;
1115 rel2.to_x: "elm.swallow.bar";
1116 }
1117 }
1118 part { name: "knob";
1119 description { state: "default" 0.0;
1120 image.normal: "knob";
1121 fixed: 1 1;
1122 min: 12 12;
1123 step: 2 2;
1124 max: 32 32; // XXX allow bigger sizes with more knob images
1125 rel1.to: "elm.dragable.slider";
1126 rel1.offset: -4 -4;
1127 rel2.to: "elm.dragable.slider";
1128 rel2.offset: 3 3;
1129 }
1130 description { state: "clicked" 0.0;
1131 inherit: "default" 0.0;
1132 }
1133 }
1134 part { name: "slideevent"; type: RECT; repeat_events: 1;
1135 scale: 1;
1136 ignore_flags: ON_HOLD;
1137 dragable.events: "elm.dragable.slider";
1138 description { state: "default" 0.0;
1139 fixed: 1 1;
1140 rel1.to: "elm.dragable.slider";
1141 rel2.to: "elm.dragable.slider";
1142 color: 0 0 0 0;
1143 }
1144 }
1145 part { name: "elm.track.slider"; type: SWALLOW; mouse_events: 0;
1146 description { state: "default" 0.0;
1147 max: 0 0;
1148 rel1.to: "elm.dragable.slider";
1149 rel2.to: "elm.dragable.slider";
1150 }
1151 }
1152 part { name: "event"; type: RECT;
1153 description { state: "default" 0.0;
1154 color: 0 0 0 0;
1155 visible: 0;
1156 }
1157 description { state: "disabled" 0.0;
1158 inherit: "default" 0.0;
1159 visible: 1;
1160 }
1161 }
1162 }
1163 programs {
1164 program {
1165 signal: "mouse,down,1"; source: "elm.dragable.slider";
1166 action: STATE_SET "clicked" 0.0;
1167 target: "knob";
1168 }
1169 program {
1170 signal: "mouse,up,1"; source: "elm.dragable.slider";
1171 action: STATE_SET "default" 0.0;
1172 target: "knob";
1173 }
1174 program {
1175 signal: "elm,state,indicator,show"; source: "elm";
1176 action: SIGNAL_EMIT "elm,popup,show" "elm";
1177 after: "popup_show2";
1178 }
1179 program {
1180 signal: "elm,state,indicator,hide"; source: "elm";
1181 action: SIGNAL_EMIT "elm,popup,hide" "elm";
1182 after: "popup_hide2";
1183 }
1184 program {
1185 signal: "mouse,down,1"; source: "slideevent";
1186 action: SIGNAL_EMIT "elm,popup,show" "elm";
1187 after: "popup_show2";
1188 }
1189 program { name: "popup_show2";
1190 action: STATE_SET "hidden" 0.0;
1191 target: "button";
1192 }
1193 program {
1194 signal: "mouse,up,1"; source: "slideevent";
1195 action: SIGNAL_EMIT "elm,popup,hide" "elm";
1196 after: "popup_hide2";
1197 }
1198 program { name: "popup_hide2";
1199 action: STATE_SET "default" 0.0;
1200 target: "button";
1201 }
1202 program {
1203 signal: "elm,state,text,visible"; source: "elm";
1204 script {
1205 new m = get_int(slmode);
1206 m |= LABEL; set_int(slmode, m);
1207 eval_mode(m);
1208 }
1209 }
1210 program {
1211 signal: "elm,state,text,hidden"; source: "elm";
1212 script {
1213 new m = get_int(slmode);
1214 m &= ~LABEL; set_int(slmode, m);
1215 eval_mode(m);
1216 }
1217 }
1218 program {
1219 signal: "elm,state,icon,visible"; source: "elm";
1220 script {
1221 new m = get_int(slmode);
1222 m |= ICON; set_int(slmode, m);
1223 eval_mode(m);
1224 }
1225 }
1226 program {
1227 signal: "elm,state,icon,hidden"; source: "elm";
1228 script {
1229 new m = get_int(slmode);
1230 m &= ~ICON; set_int(slmode, m);
1231 eval_mode(m);
1232 }
1233 }
1234 program { name: "end_show";
1235 signal: "elm,state,end,visible"; source: "elm";
1236 script {
1237 new m = get_int(slmode);
1238 m |= END; set_int(slmode, m);
1239 eval_mode(m);
1240 }
1241 }
1242 program { name: "end_hide";
1243 signal: "elm,state,end,hidden"; source: "elm";
1244 script {
1245 new m = get_int(slmode);
1246 m &= ~END; set_int(slmode, m);
1247 eval_mode(m);
1248 }
1249 }
1250 program {
1251 signal: "elm,state,units,visible"; source: "elm";
1252 script {
1253 new m = get_int(slmode);
1254 m |= UNITS; set_int(slmode, m);
1255 eval_mode(m);
1256 }
1257 }
1258 program {
1259 signal: "elm,state,units,visible"; source: "elm";
1260 action: SIGNAL_EMIT "limits:limits,visible" "elm";
1261 }
1262 program {
1263 signal: "elm,state,units,hidden"; source: "elm";
1264 action: STATE_SET "default" 0.0;
1265 script {
1266 new m = get_int(slmode);
1267 m &= ~UNITS; set_int(slmode, m);
1268 eval_mode(m);
1269 }
1270 }
1271 program {
1272 signal: "elm,state,units,hidden"; source: "elm";
1273 action: SIGNAL_EMIT "limits:limits,hide" "elm";
1274 }
1275 program {
1276 signal: "elm,state,inverted,on"; source: "elm";
1277 script {
1278 new m = get_int(slmode);
1279 m |= INVERT; set_int(slmode, m);
1280 eval_mode(m);
1281 }
1282 }
1283 program {
1284 signal: "elm,state,inverted,off"; source: "elm";
1285 script {
1286 new m = get_int(slmode);
1287 m &= ~INVERT; set_int(slmode, m);
1288 eval_mode(m);
1289 }
1290 }
1291 program {
1292 signal: "elm,state,disabled"; source: "elm";
1293 script {
1294 new m = get_int(slmode);
1295 m |= DISABLE; set_int(slmode, m);
1296 eval_mode(m);
1297 }
1298 }
1299 program {
1300 signal: "elm,state,enabled"; source: "elm";
1301 script {
1302 new m = get_int(slmode);
1303 m &= ~DISABLE; set_int(slmode, m);
1304 eval_mode(m);
1305 }
1306 }
1307 }
1308#undef ICON
1309#undef LABEL
1310#undef END
1311#undef UNITS
1312#undef MASK
1313#undef INVERT
1314#undef DISABLE
1315}
1316
1317group { name: "elm/slider/vertical/indicator/default";
1318 alias: "elm/slider/vertical/indicator/disabled";
1319 alias: "elm/slider/vertical/popup/default";
1320 alias: "elm/slider/vertical/indicator/media_player/position/default";
1321 alias: "elm/slider/vertical/indicator/media_player/position/flush";
1322 alias: "elm/slider/vertical/indicator/media_player/volume/default";
1323 alias: "elm/slider/vertical/indicator/media_player/volume/flush";
1324 images.image: "darken_rounded_square.png" COMP;
1325 parts {
1326 part { name: "base"; type: SPACER;
1327 scale: 1;
1328 description { state: "default" 0.0;
1329 fixed: 1 1;
1330 min: 16 16;
1331 }
1332 }
1333 part { name: "clip"; type: RECT;
1334 description { state: "default" 0.0;
1335 fixed: 1 1;
1336 rel1.to: "elm.indicator";
1337 rel1.offset: -100 -100;
1338 rel2.to: "elm.indicator";
1339 rel2.offset: 99 99;
1340 visible: 0;
1341 }
1342 description { state: "visible" 0.0;
1343 inherit: "default" 0.0;
1344 visible: 1;
1345 }
1346 }
1347 part { name: "bevel"; mouse_events: 0;
1348 clip_to: "clip";
1349 description { state: "default" 0.0;
1350 rel1.offset: -12 -12;
1351 rel1.to: "elm.indicator";
1352 rel2.offset: 11 11;
1353 rel2.to: "elm.indicator";
1354 image.normal: "darken_rounded_square.png";
1355 image.border: 15 15 15 15;
1356 fill.smooth: 0;
1357 visible: 0;
1358 }
1359 description { state: "visible" 0.0;
1360 inherit: "default" 0.0;
1361 visible: 1;
1362 }
1363 }
1364 part { name: "elm.indicator"; type: TEXT; mouse_events: 0;
1365 clip_to: "clip";
1366 effect: SHADOW BOTTOM;
1367 scale: 1;
1368 description { state: "default" 0.0;
1369 fixed: 1 1;
1370 align: 0.0 0.5;
1371 rel1.to: "base";
1372 rel1.relative: 1.1 0.0;
1373 rel1.offset: 11 0;
1374 rel2.to: "base";
1375 rel2.relative: 1.1 1.0;
1376 rel2.offset: 11 -1;
1377 color_class: "slider_indicator";
1378 color: FN_COL_DEFAULT;
1379 text { font: FNBD; size: 10;
1380 min: 1 1;
1381 align: 0.0 0.5;
1382 text_class: "slider_indicator";
1383 ellipsis: -1;
1384 }
1385 visible: 0;
1386 }
1387 description { state: "visible" 0.0;
1388 inherit: "default" 0.0;
1389 visible: 1;
1390 }
1391 }
1392 }
1393 programs {
1394 program {
1395 signal: "elm,popup,show"; source: "elm";
1396 action: STATE_SET "visible" 0.0;
1397 target: "elm.indicator";
1398 target: "bevel";
1399 }
1400 program {
1401 signal: "elm,popup,hide"; source: "elm";
1402 action: STATE_SET "default" 0.0;
1403 target: "elm.indicator";
1404 target: "bevel";
1405 }
1406 program {
1407 signal: "elm,popup,hide"; source: "elm";
1408 action: SIGNAL_EMIT "elm,popup,hide,done" "elm";
1409 }
1410 program {
1411 signal: "elm,state,val,show"; source: "elm";
1412 action: STATE_SET "visible" 0.0;
1413 target: "clip";
1414 }
1415 program {
1416 signal: "elm,state,val,hide"; source: "elm";
1417 action: STATE_SET "default" 0.0;
1418 target: "clip";
1419 }
1420 program {
1421 signal: "elm,state,indicator,show"; source: "elm";
1422 action: STATE_SET "visible" 0.0;
1423 target: "elm.indicator";
1424 target: "bevel";
1425 }
1426 program {
1427 signal: "elm,state,indicator,hide"; source: "elm";
1428 action: STATE_SET "visible" 0.0;
1429 target: "elm.indicator";
1430 target: "bevel";
1431 }
1432 program {
1433 signal: "elm,state,disabled"; source: "elm";
1434 action: STATE_SET "disabled" 0.0;
1435 target: "base";
1436 }
1437 program {
1438 signal: "elm,state,enabled"; source: "elm";
1439 action: STATE_SET "default" 0.0;
1440 target: "base";
1441 }
1442 }
1443}
1444
1445//Range
1446
1447group { name: "elm/slider/range/horizontal/default";
1448 alias: "elm/slider/horizontal/disabled";
1449 alias: "elm/slider/horizontal/media_player/position/default";
1450 alias: "elm/slider/horizontal/media_player/position/flush";
1451 alias: "elm/slider/horizontal/media_player/volume/default";
1452 alias: "elm/slider/horizontal/media_player/volume/flush";
1453 images.image: "slider_run_base_horiz.png" COMP;
1454 images.image: "slider_run_bevel_horiz.png" COMP;
1455 images.image: "slider_run_base_light_horiz.png" COMP;
1456 images.image: "horiz_glow_run.png" COMP;
42 images.image: "horiz_glow_range.png" COMP; 1457 images.image: "horiz_glow_range.png" COMP;
43 images.image: "horiz_glow_run_rev.png" COMP; 1458 images.image: "horiz_glow_run_rev.png" COMP;
44 images.image: "knob_round_small_normal.png" COMP; 1459 images.image: "knob_round_small_normal.png" COMP;
@@ -707,7 +2122,7 @@ group { name: "elm/slider/horizontal/default";
707 } 2122 }
708 program { 2123 program {
709 signal: "elm,state,text,hidden"; source: "elm"; 2124 signal: "elm,state,text,hidden"; source: "elm";
710 script { 2125 script {
711 new m = get_int(slmode); 2126 new m = get_int(slmode);
712 m &= ~LABEL; set_int(slmode, m); 2127 m &= ~LABEL; set_int(slmode, m);
713 eval_mode(m); 2128 eval_mode(m);
@@ -723,7 +2138,7 @@ group { name: "elm/slider/horizontal/default";
723 } 2138 }
724 program { 2139 program {
725 signal: "elm,state,icon,hidden"; source: "elm"; 2140 signal: "elm,state,icon,hidden"; source: "elm";
726 script { 2141 script {
727 new m = get_int(slmode); 2142 new m = get_int(slmode);
728 m &= ~ICON; set_int(slmode, m); 2143 m &= ~ICON; set_int(slmode, m);
729 eval_mode(m); 2144 eval_mode(m);
@@ -739,7 +2154,7 @@ group { name: "elm/slider/horizontal/default";
739 } 2154 }
740 program { name: "end_hide"; 2155 program { name: "end_hide";
741 signal: "elm,state,end,hidden"; source: "elm"; 2156 signal: "elm,state,end,hidden"; source: "elm";
742 script { 2157 script {
743 new m = get_int(slmode); 2158 new m = get_int(slmode);
744 m &= ~END; set_int(slmode, m); 2159 m &= ~END; set_int(slmode, m);
745 eval_mode(m); 2160 eval_mode(m);
@@ -761,7 +2176,7 @@ group { name: "elm/slider/horizontal/default";
761 program { 2176 program {
762 signal: "elm,state,units,hidden"; source: "elm"; 2177 signal: "elm,state,units,hidden"; source: "elm";
763 action: STATE_SET "default" 0.0; 2178 action: STATE_SET "default" 0.0;
764 script { 2179 script {
765 new m = get_int(slmode); 2180 new m = get_int(slmode);
766 m &= ~UNITS; set_int(slmode, m); 2181 m &= ~UNITS; set_int(slmode, m);
767 eval_mode(m); 2182 eval_mode(m);
@@ -782,7 +2197,7 @@ group { name: "elm/slider/horizontal/default";
782 } 2197 }
783 program { 2198 program {
784 signal: "elm,state,inverted,off"; source: "elm"; 2199 signal: "elm,state,inverted,off"; source: "elm";
785 script { 2200 script {
786 new m = get_int(slmode); 2201 new m = get_int(slmode);
787 m &= ~INVERT; set_int(slmode, m); 2202 m &= ~INVERT; set_int(slmode, m);
788 eval_mode(m); 2203 eval_mode(m);
@@ -798,7 +2213,7 @@ group { name: "elm/slider/horizontal/default";
798 } 2213 }
799 program { 2214 program {
800 signal: "elm,state,enabled"; source: "elm"; 2215 signal: "elm,state,enabled"; source: "elm";
801 script { 2216 script {
802 new m = get_int(slmode); 2217 new m = get_int(slmode);
803 m &= ~DISABLE; set_int(slmode, m); 2218 m &= ~DISABLE; set_int(slmode, m);
804 eval_mode(m); 2219 eval_mode(m);
@@ -814,138 +2229,7 @@ group { name: "elm/slider/horizontal/default";
814#undef DISABLE 2229#undef DISABLE
815} 2230}
816 2231
817group { name: "elm/slider/horizontal/indicator/default"; 2232group { name: "elm/slider/range/vertical/default";
818 alias: "elm/slider/horizontal/indicator/disabled";
819 alias: "elm/slider/horizontal/popup/default";
820 alias: "elm/slider/horizontal/indicator/media_player/position/default";
821 alias: "elm/slider/horizontal/indicator/media_player/position/flush";
822 alias: "elm/slider/horizontal/indicator/media_player/volume/default";
823 alias: "elm/slider/horizontal/indicator/media_player/volume/flush";
824 images.image: "darken_rounded_square.png" COMP;
825 parts {
826 part { name: "base"; type: SPACER;
827 scale: 1;
828 description { state: "default" 0.0;
829 fixed: 1 1;
830 min: 16 16;
831 }
832 description { state: "disabled" 0.0;
833 inherit: "default" 0.0;
834 }
835 }
836 part { name: "clip"; type: RECT;
837 description { state: "default" 0.0;
838 fixed: 1 1;
839 rel1.to: "elm.indicator";
840 rel1.offset: -100 -100;
841 rel2.to: "elm.indicator";
842 rel2.offset: 99 99;
843 visible: 0;
844 }
845 description { state: "visible" 0.0;
846 inherit: "default" 0.0;
847 visible: 1;
848 }
849 }
850 part { name: "bevel"; mouse_events: 0;
851 clip_to: "clip";
852 description { state: "default" 0.0;
853 rel1.offset: -12 -12;
854 rel1.to: "elm.indicator";
855 rel2.offset: 11 11;
856 rel2.to: "elm.indicator";
857 image.normal: "darken_rounded_square.png";
858 image.border: 15 15 15 15;
859 fill.smooth: 0;
860 visible: 0;
861 }
862 description { state: "visible" 0.0;
863 inherit: "default" 0.0;
864 visible: 1;
865 }
866 }
867 part { name: "elm.indicator"; type: TEXT; mouse_events: 0;
868 clip_to: "clip";
869 effect: SHADOW BOTTOM;
870 scale: 1;
871 description { state: "default" 0.0;
872 fixed: 1 1;
873 align: 0.5 1.0;
874 rel1.to: "base";
875 rel1.relative: 0.0 -0.1;
876 rel1.offset: 0 -12;
877 rel2.to: "base";
878 rel2.relative: 1.0 -0.1;
879 rel2.offset: -1 -12;
880 color_class: "slider_indicator";
881 color: FN_COL_DEFAULT;
882 text { font: FNBD; size: 10;
883 min: 1 1;
884 align: 0.5 1.0;
885 text_class: "slider_indicator";
886 ellipsis: -1;
887 }
888 visible: 0;
889 }
890 description { state: "visible" 0.0;
891 inherit: "default" 0.0;
892 visible: 1;
893 }
894 }
895 }
896 programs {
897 program {
898 signal: "elm,popup,show"; source: "elm";
899 action: STATE_SET "visible" 0.0;
900 target: "elm.indicator";
901 target: "bevel";
902 }
903 program {
904 signal: "elm,popup,hide"; source: "elm";
905 action: STATE_SET "default" 0.0;
906 target: "elm.indicator";
907 target: "bevel";
908 }
909 program {
910 signal: "elm,popup,hide"; source: "elm";
911 action: SIGNAL_EMIT "elm,popup,hide,done" "elm";
912 }
913 program {
914 signal: "elm,state,val,show"; source: "elm";
915 action: STATE_SET "visible" 0.0;
916 target: "clip";
917 }
918 program {
919 signal: "elm,state,val,hide"; source: "elm";
920 action: STATE_SET "default" 0.0;
921 target: "clip";
922 }
923 program {
924 signal: "elm,state,indicator,show"; source: "elm";
925 action: STATE_SET "visible" 0.0;
926 target: "elm.indicator";
927 target: "bevel";
928 }
929 program {
930 signal: "elm,state,indicator,hide"; source: "elm";
931 action: STATE_SET "visible" 0.0;
932 target: "elm.indicator";
933 target: "bevel";
934 }
935 program {
936 signal: "elm,state,disabled"; source: "elm";
937 action: STATE_SET "disabled" 0.0;
938 target: "base";
939 }
940 program {
941 signal: "elm,state,enabled"; source: "elm";
942 action: STATE_SET "default" 0.0;
943 target: "base";
944 }
945 }
946}
947
948group { name: "elm/slider/vertical/default";
949 alias: "elm/slider/vertical/disabled"; 2233 alias: "elm/slider/vertical/disabled";
950 alias: "elm/slider/vertical/media_player/position/default"; 2234 alias: "elm/slider/vertical/media_player/position/default";
951 alias: "elm/slider/vertical/media_player/position/flush"; 2235 alias: "elm/slider/vertical/media_player/position/flush";
@@ -1619,7 +2903,7 @@ group { name: "elm/slider/vertical/default";
1619 } 2903 }
1620 program { 2904 program {
1621 signal: "elm,state,text,hidden"; source: "elm"; 2905 signal: "elm,state,text,hidden"; source: "elm";
1622 script { 2906 script {
1623 new m = get_int(slmode); 2907 new m = get_int(slmode);
1624 m &= ~LABEL; set_int(slmode, m); 2908 m &= ~LABEL; set_int(slmode, m);
1625 eval_mode(m); 2909 eval_mode(m);
@@ -1635,7 +2919,7 @@ group { name: "elm/slider/vertical/default";
1635 } 2919 }
1636 program { 2920 program {
1637 signal: "elm,state,icon,hidden"; source: "elm"; 2921 signal: "elm,state,icon,hidden"; source: "elm";
1638 script { 2922 script {
1639 new m = get_int(slmode); 2923 new m = get_int(slmode);
1640 m &= ~ICON; set_int(slmode, m); 2924 m &= ~ICON; set_int(slmode, m);
1641 eval_mode(m); 2925 eval_mode(m);
@@ -1651,7 +2935,7 @@ group { name: "elm/slider/vertical/default";
1651 } 2935 }
1652 program { name: "end_hide"; 2936 program { name: "end_hide";
1653 signal: "elm,state,end,hidden"; source: "elm"; 2937 signal: "elm,state,end,hidden"; source: "elm";
1654 script { 2938 script {
1655 new m = get_int(slmode); 2939 new m = get_int(slmode);
1656 m &= ~END; set_int(slmode, m); 2940 m &= ~END; set_int(slmode, m);
1657 eval_mode(m); 2941 eval_mode(m);
@@ -1672,7 +2956,7 @@ group { name: "elm/slider/vertical/default";
1672 program { 2956 program {
1673 signal: "elm,state,units,hidden"; source: "elm"; 2957 signal: "elm,state,units,hidden"; source: "elm";
1674 action: STATE_SET "default" 0.0; 2958 action: STATE_SET "default" 0.0;
1675 script { 2959 script {
1676 new m = get_int(slmode); 2960 new m = get_int(slmode);
1677 m &= ~UNITS; set_int(slmode, m); 2961 m &= ~UNITS; set_int(slmode, m);
1678 eval_mode(m); 2962 eval_mode(m);
@@ -1692,7 +2976,7 @@ group { name: "elm/slider/vertical/default";
1692 } 2976 }
1693 program { 2977 program {
1694 signal: "elm,state,inverted,off"; source: "elm"; 2978 signal: "elm,state,inverted,off"; source: "elm";
1695 script { 2979 script {
1696 new m = get_int(slmode); 2980 new m = get_int(slmode);
1697 m &= ~INVERT; set_int(slmode, m); 2981 m &= ~INVERT; set_int(slmode, m);
1698 eval_mode(m); 2982 eval_mode(m);
@@ -1708,7 +2992,7 @@ group { name: "elm/slider/vertical/default";
1708 } 2992 }
1709 program { 2993 program {
1710 signal: "elm,state,enabled"; source: "elm"; 2994 signal: "elm,state,enabled"; source: "elm";
1711 script { 2995 script {
1712 new m = get_int(slmode); 2996 new m = get_int(slmode);
1713 m &= ~DISABLE; set_int(slmode, m); 2997 m &= ~DISABLE; set_int(slmode, m);
1714 eval_mode(m); 2998 eval_mode(m);
@@ -1723,134 +3007,3 @@ group { name: "elm/slider/vertical/default";
1723#undef INVERT 3007#undef INVERT
1724#undef DISABLE 3008#undef DISABLE
1725} 3009}
1726
1727group { name: "elm/slider/vertical/indicator/default";
1728 alias: "elm/slider/vertical/indicator/disabled";
1729 alias: "elm/slider/vertical/popup/default";
1730 alias: "elm/slider/vertical/indicator/media_player/position/default";
1731 alias: "elm/slider/vertical/indicator/media_player/position/flush";
1732 alias: "elm/slider/vertical/indicator/media_player/volume/default";
1733 alias: "elm/slider/vertical/indicator/media_player/volume/flush";
1734 images.image: "darken_rounded_square.png" COMP;
1735 parts {
1736 part { name: "base"; type: SPACER;
1737 scale: 1;
1738 description { state: "default" 0.0;
1739 fixed: 1 1;
1740 min: 16 16;
1741 }
1742 description { state: "disabled" 0.0;
1743 inherit: "default" 0.0;
1744 }
1745 }
1746 part { name: "clip"; type: RECT;
1747 description { state: "default" 0.0;
1748 fixed: 1 1;
1749 rel1.to: "elm.indicator";
1750 rel1.offset: -100 -100;
1751 rel2.to: "elm.indicator";
1752 rel2.offset: 99 99;
1753 visible: 0;
1754 }
1755 description { state: "visible" 0.0;
1756 inherit: "default" 0.0;
1757 visible: 1;
1758 }
1759 }
1760 part { name: "bevel"; mouse_events: 0;
1761 clip_to: "clip";
1762 description { state: "default" 0.0;
1763 rel1.offset: -12 -12;
1764 rel1.to: "elm.indicator";
1765 rel2.offset: 11 11;
1766 rel2.to: "elm.indicator";
1767 image.normal: "darken_rounded_square.png";
1768 image.border: 15 15 15 15;
1769 fill.smooth: 0;
1770 visible: 0;
1771 }
1772 description { state: "visible" 0.0;
1773 inherit: "default" 0.0;
1774 visible: 1;
1775 }
1776 }
1777 part { name: "elm.indicator"; type: TEXT; mouse_events: 0;
1778 clip_to: "clip";
1779 effect: SHADOW BOTTOM;
1780 scale: 1;
1781 description { state: "default" 0.0;
1782 fixed: 1 1;
1783 align: 0.0 0.5;
1784 rel1.to: "base";
1785 rel1.relative: 1.1 0.0;
1786 rel1.offset: 11 0;
1787 rel2.to: "base";
1788 rel2.relative: 1.1 1.0;
1789 rel2.offset: 11 -1;
1790 color_class: "slider_indicator";
1791 color: FN_COL_DEFAULT;
1792 text { font: FNBD; size: 10;
1793 min: 1 1;
1794 align: 0.0 0.5;
1795 text_class: "slider_indicator";
1796 ellipsis: -1;
1797 }
1798 visible: 0;
1799 }
1800 description { state: "visible" 0.0;
1801 inherit: "default" 0.0;
1802 visible: 1;
1803 }
1804 }
1805 }
1806 programs {
1807 program {
1808 signal: "elm,popup,show"; source: "elm";
1809 action: STATE_SET "visible" 0.0;
1810 target: "elm.indicator";
1811 target: "bevel";
1812 }
1813 program {
1814 signal: "elm,popup,hide"; source: "elm";
1815 action: STATE_SET "default" 0.0;
1816 target: "elm.indicator";
1817 target: "bevel";
1818 }
1819 program {
1820 signal: "elm,popup,hide"; source: "elm";
1821 action: SIGNAL_EMIT "elm,popup,hide,done" "elm";
1822 }
1823 program {
1824 signal: "elm,state,val,show"; source: "elm";
1825 action: STATE_SET "visible" 0.0;
1826 target: "clip";
1827 }
1828 program {
1829 signal: "elm,state,val,hide"; source: "elm";
1830 action: STATE_SET "default" 0.0;
1831 target: "clip";
1832 }
1833 program {
1834 signal: "elm,state,indicator,show"; source: "elm";
1835 action: STATE_SET "visible" 0.0;
1836 target: "elm.indicator";
1837 target: "bevel";
1838 }
1839 program {
1840 signal: "elm,state,indicator,hide"; source: "elm";
1841 action: STATE_SET "visible" 0.0;
1842 target: "elm.indicator";
1843 target: "bevel";
1844 }
1845 program {
1846 signal: "elm,state,disabled"; source: "elm";
1847 action: STATE_SET "disabled" 0.0;
1848 target: "base";
1849 }
1850 program {
1851 signal: "elm,state,enabled"; source: "elm";
1852 action: STATE_SET "default" 0.0;
1853 target: "base";
1854 }
1855 }
1856}