1 group { name: "elm/scroller/base/ctxpopup";
3 item: "focus_highlight" "on";
6 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
11 v = get_int(sbalways_v);
13 emit("do-hide-vbar", "");
19 v = get_int(sbalways_h);
21 emit("do-hide-hbar", "");
25 set_int(sbvis_timer, 0);
30 image: "bt_sm_base2.png" COMP;
31 image: "bt_sm_shine.png" COMP;
32 image: "bt_sm_hilight.png" COMP;
33 image: "sl_bt2_2.png" COMP;
36 part { name: "clipper";
40 description { state: "default" 0.0;
43 part { name: "elm.swallow.content";
47 description { state: "default" 0.0;
51 part { name: "focus_highlight";
53 description { state: "default" 0.0;
56 image { normal: "sl_bt2_2.png";
63 description { state: "enabled" 0.0;
64 inherit: "default" 0.0;
68 part { name: "sb_vbar_clip_master";
71 description { state: "default" 0.0;
73 description { state: "hidden" 0.0;
78 part { name: "sb_vbar_clip";
79 clip_to:"sb_vbar_clip_master";
83 description { state: "default" 0.0;
85 rel2{ to:"clipper"; relative: 1.0 1.0; }
87 description { state: "hidden" 0.0;
92 part { name: "sb_vbar";
96 description { state: "default" 0.0;
100 rel1{ to:"clipper"; relative: 1.0 0.0; }
101 rel2{ to:"clipper"; relative: 1.0 1.0; }
104 part { name: "elm.dragable.vbar";
105 clip_to: "sb_vbar_clip";
113 description { state: "default" 0.0;
117 rel1 { relative: 0.5 0.5; to: "sb_vbar"; }
118 rel2 { relative: 0.5 0.5; to: "sb_vbar"; }
119 image { normal: "bt_sm_base2.png";
125 part { name: "sb_vbar_over1";
126 clip_to: "sb_vbar_clip";
128 description { state: "default" 0.0;
129 rel1.to: "elm.dragable.vbar";
130 rel2.relative: 1.0 0.5;
131 rel2.to: "elm.dragable.vbar";
132 image { normal: "bt_sm_hilight.png";
137 part { name: "sb_vbar_over2";
138 clip_to: "sb_vbar_clip";
140 description { state: "default" 0.0;
141 rel1.to: "elm.dragable.vbar";
142 rel2.to: "elm.dragable.vbar";
143 image { normal: "bt_sm_shine.png";
148 part { name: "sb_hbar_clip_master";
151 description { state: "default" 0.0;
153 description { state: "hidden" 0.0;
155 color: 255 255 255 0;
158 part { name: "sb_hbar_clip";
159 clip_to: "sb_hbar_clip_master";
163 description { state: "default" 0.0;
165 rel2{ to:"clipper"; relative: 1.0 1.0; }
167 description { state: "hidden" 0.0;
169 color: 255 255 255 0;
172 part { name: "sb_hbar";
176 description { state: "default" 0.0;
180 rel1 { to:"clipper"; relative: 0.0 1.0; }
181 rel2 { to:"clipper"; relative: 1.0 1.0; }
184 part { name: "elm.dragable.hbar";
185 clip_to: "sb_hbar_clip";
193 description { state: "default" 0.0;
197 rel1 { relative: 0.5 0.5; to: "sb_hbar"; }
198 rel2 { relative: 0.5 0.5; to: "sb_hbar"; }
199 image { normal: "bt_sm_base2.png";
205 part { name: "sb_hbar_over1";
206 clip_to: "sb_hbar_clip";
208 description { state: "default" 0.0;
209 rel1.to: "elm.dragable.hbar";
210 rel2.relative: 1.0 0.5;
211 rel2.to: "elm.dragable.hbar";
212 image { normal: "bt_sm_hilight.png";
217 part { name: "sb_hbar_over2";
218 clip_to: "sb_hbar_clip";
220 description { state: "default" 0.0;
221 rel1.to: "elm.dragable.hbar";
222 rel2.to: "elm.dragable.hbar";
223 image { normal: "bt_sm_shine.png";
230 program { name: "load";
234 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
235 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
238 set_int(sbalways_v, 0);
239 set_int(sbalways_h, 0);
240 set_int(sbvis_timer, 0);
243 program { name: "vbar_show";
244 signal: "elm,action,show,vbar";
246 action: STATE_SET "default" 0.0;
247 target: "sb_vbar_clip_master";
249 program { name: "vbar_hide";
250 signal: "elm,action,hide,vbar";
252 action: STATE_SET "hidden" 0.0;
253 target: "sb_vbar_clip_master";
255 program { name: "vbar_show_always";
256 signal: "elm,action,show_always,vbar";
260 v = get_int(sbvis_v);
261 v |= get_int(sbalways_v);
263 set_int(sbalways_v, 1);
264 emit("do-show-vbar", "");
269 program { name: "vbar_show_notalways";
270 signal: "elm,action,show_notalways,vbar";
274 v = get_int(sbalways_v);
276 set_int(sbalways_v, 0);
277 v = get_int(sbvis_v);
279 emit("do-hide-vbar", "");
285 program { name: "sb_vbar_show";
286 signal: "do-show-vbar";
288 action: STATE_SET "default" 0.0;
289 transition: LINEAR 1.0;
290 target: "sb_vbar_clip";
292 program { name: "sb_vbar_hide";
293 signal: "do-hide-vbar";
295 action: STATE_SET "hidden" 0.0;
296 transition: LINEAR 1.0;
297 target: "sb_vbar_clip";
299 program { name: "hbar_show";
300 signal: "elm,action,show,hbar";
302 action: STATE_SET "default" 0.0;
303 target: "sb_hbar_clip_master";
305 program { name: "hbar_hide";
306 signal: "elm,action,hide,hbar";
308 action: STATE_SET "hidden" 0.0;
309 target: "sb_hbar_clip_master";
311 program { name: "hbar_show_always";
312 signal: "elm,action,show_always,hbar";
316 v = get_int(sbvis_h);
317 v |= get_int(sbalways_h);
319 set_int(sbalways_h, 1);
320 emit("do-show-hbar", "");
325 program { name: "hbar_show_notalways";
326 signal: "elm,action,show_notalways,hbar";
330 v = get_int(sbalways_h);
332 set_int(sbalways_h, 0);
333 v = get_int(sbvis_h);
335 emit("do-hide-hbar", "");
341 program { name: "sb_hbar_show";
342 signal: "do-show-hbar";
344 action: STATE_SET "default" 0.0;
345 transition: LINEAR 1.0;
346 target: "sb_hbar_clip";
348 program { name: "sb_hbar_hide";
349 signal: "do-hide-hbar";
351 action: STATE_SET "hidden" 0.0;
352 transition: LINEAR 1.0;
353 target: "sb_hbar_clip";
355 program { name: "scroll";
356 signal: "elm,action,scroll";
360 v = get_int(sbvis_v);
361 v |= get_int(sbalways_v);
363 emit("do-show-vbar", "")
366 v = get_int(sbvis_h);
367 v |= get_int(sbalways_h);
369 emit("do-show-hbar", "");
372 v = get_int(sbvis_timer);
373 if (v > 0) cancel_timer(v);
374 v = timer(1.0, "timer0", 0);
375 set_int(sbvis_timer, v);
378 program { name: "highlight_show";
379 signal: "elm,action,focus_highlight,show";
381 action: STATE_SET "enabled" 0.0;
382 transition: ACCELERATE 0.3;
383 target: "focus_highlight";
385 program { name: "highlight_hide";
386 signal: "elm,action,focus_highlight,hide";
388 action: STATE_SET "default" 0.0;
389 transition: DECELERATE 0.3;
390 target: "focus_highlight";
394 ///////////////////////////////////////////////////////////////////////////////
395 group { name: "elm/ctxpopup/bg/default";
397 part { name: "ctxpopup_bg";
400 description { state: "default" 0.0;
403 description { state: "visible" 0.0;
404 inherit: "default" 0.0;
410 program { name: "clicked_event";
411 signal: "mouse,clicked,1";
412 source: "ctxpopup_bg";
413 action: SIGNAL_EMIT "elm,action,click" "";
415 program { name: "show";
416 signal: "elm,state,show";
418 action: STATE_SET "visible" 0.0;
419 target: "ctxpopup_bg";
420 transition: LINEAR 0.25;
422 program { name: "hide";
423 signal: "elm,state,hide";
425 action: STATE_SET "default" 0.0;
426 target: "ctxpopup_bg";
427 transition: LINEAR 0.25;
431 ///////////////////////////////////////////////////////////////////////////////
432 group { name: "elm/ctxpopup/base/default";
434 image: "bt_base2.png" COMP;
435 image: "bt_hilight.png" COMP;
436 image: "bt_shine.png" COMP;
439 part { name: "arrow_area_left";
442 clip_to: "ctxpopup_clip";
443 description { state: "default" 0.0;
457 part { name: "arrow_area_right";
460 clip_to: "ctxpopup_clip";
461 description { state: "default" 0.0;
475 part { name: "arrow_area_up";
478 clip_to: "ctxpopup_clip";
479 description { state: "default" 0.0;
493 part { name: "arrow_area_down";
496 clip_to: "ctxpopup_clip";
497 description { state: "default" 0.0;
511 part { name: "elm.swallow.arrow_up";
515 clip_to: "ctxpopup_clip";
519 confine: "arrow_area_up";
521 description { state: "default" 0.0;
527 part { name: "elm.swallow.arrow_down";
531 clip_to: "ctxpopup_clip";
535 confine: "arrow_area_down";
537 description { state: "default" 0.0;
543 part { name: "elm.swallow.arrow_left";
547 clip_to: "ctxpopup_clip";
551 confine: "arrow_area_left";
553 description { state: "default" 0.0;
559 part { name: "elm.swallow.arrow_right";
563 clip_to: "ctxpopup_clip";
567 confine: "arrow_area_right";
569 description { state: "default" 0.0;
577 clip_to: "ctxpopup_clip";
578 description { state: "default" 0.0;
581 image { normal: "bt_base2.png";
586 part { name: "over1";
588 clip_to: "ctxpopup_clip";
589 description { state: "default" 0.0;
592 rel2.relative: 1.0 0.5;
593 image { normal: "bt_hilight.png";
598 part { name: "over2";
600 clip_to: "ctxpopup_clip";
601 description { state: "default" 0.0;
604 image { normal: "bt_shine.png";
609 part { name: "elm.swallow.content";
611 clip_to: "ctxpopup_clip";
612 description { state: "default" 0.0;
613 rel1 { to:"base"; offset: 4 4; }
614 rel2 { to:"base"; offset: -5 -5; }
617 part { name: "ctxpopup_clip";
619 description { state: "default" 0.0;
620 color: 255 255 255 0;
621 rel1 { to:"base"; relative: 0 0; }
622 rel2 { to:"base"; relative: 0 1; }
624 description { state: "show_up" 0.0;
625 color: 255 255 255 0;
626 rel1 { to:"arrow_area_down"; relative: 0 1; }
627 rel2 { to:"arrow_area_down"; relative: 1 1; }
629 description { state: "show_left" 0.0;
630 color: 255 255 255 0;
631 rel1 { to:"arrow_area_right"; relative: 1 0; }
632 rel2 { to:"arrow_area_right"; relative: 1 1; }
634 description { state: "show_right" 0.0;
635 color: 255 255 255 0;
636 rel1 { to:"arrow_area_left"; relative: 0 0; }
637 rel2 { to:"arrow_area_left"; relative: 0 1; }
639 description { state: "show_down" 0.0;
640 color: 255 255 255 0;
641 rel1 { to:"arrow_area_up"; relative: 0 0; }
642 rel2 { to:"arrow_area_up"; relative: 1 0; }
644 description { state: "hide_up" 0.0;
645 color: 255 255 255 255;
646 rel1 { to:"arrow_area_down"; relative: 0 1; }
647 rel2 { to:"arrow_area_down"; relative: 1 1; }
649 description { state: "hide_left" 0.0;
650 color: 255 255 255 255;
651 rel1 { to:"arrow_area_right"; relative: 1 0; }
652 rel2 { to:"arrow_area_right"; relative: 1 1; }
654 description { state: "hide_right" 0.0;
655 color: 255 255 255 255;
656 rel1 { to:"arrow_area_left"; relative: 0 0; }
657 rel2 { to:"arrow_area_left"; relative: 0 1; }
659 description { state: "hide_down" 0.0;
660 color: 255 255 255 255;
661 rel1 { to:"arrow_area_up"; relative: 0 0; }
662 rel2 { to:"arrow_area_up"; relative: 1 0; }
664 description { state: "visible" 0.0;
665 color: 255 255 255 255;
666 rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; }
667 rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; }
672 program { name: "show";
673 signal: "elm,state,show";
675 action: STATE_SET "visible" 0.0;
676 transition: LINEAR 0.25;
677 target: "ctxpopup_clip";
679 program { name: "show_up";
680 signal: "elm,state,show,up";
682 action: STATE_SET "show_up" 0.0;
683 transition: LINEAR 0.25;
684 target: "ctxpopup_clip";
686 program { name: "show_left";
687 signal: "elm,state,show,left";
689 action: STATE_SET "show_left" 0.0;
690 transition: LINEAR 0.25;
691 target: "ctxpopup_clip";
693 program { name: "show_right";
694 signal: "elm,state,show,right";
696 action: STATE_SET "show_right" 0.0;
697 transition: LINEAR 0.25;
698 target: "ctxpopup_clip";
700 program { name: "show_down";
701 signal: "elm,state,show,down";
703 action: STATE_SET "show_down" 0.0;
704 transition: LINEAR 0.25;
705 target: "ctxpopup_clip";
707 program { name: "hide_up";
708 signal: "elm,state,hide,up";
710 action: STATE_SET "hide_up" 0.0;
711 transition: LINEAR 0.25;
712 target: "ctxpopup_clip";
713 after: "hide_finished";
715 program { name: "hide_left";
716 signal: "elm,state,hide,left";
718 action: STATE_SET "hide_left" 0.0;
719 transition: LINEAR 0.25;
720 target: "ctxpopup_clip";
721 after: "hide_finished";
723 program { name: "hide_right";
724 signal: "elm,state,hide,right";
726 action: STATE_SET "hide_right" 0.0;
727 transition: LINEAR 0.25;
728 target: "ctxpopup_clip";
729 after: "hide_finished";
731 program { name: "hide_down";
732 signal: "elm,state,hide,down";
734 action: STATE_SET "hide_down" 0.0;
735 transition: LINEAR 0.25;
736 target: "ctxpopup_clip";
737 after: "hide_finished";
739 program { name: "hide_finished";
740 action: SIGNAL_EMIT "elm,action,hide,finished" "";
745 ///////////////////////////////////////////////////////////////////////////////
746 group { name: "elm/ctxpopup/arrow/default";
748 image: "ctxpopup_arrow_left.png" COMP;
749 image: "ctxpopup_arrow_right.png" COMP;
750 image: "ctxpopup_arrow_up.png" COMP;
751 image: "ctxpopup_arrow_down.png" COMP;
754 part { name: "ctxpopup_arrow";
758 state: "default" 0.0;
769 rel1 { offset: 3 0; }
770 rel2 { offset: 2 -1; }
771 image { normal: "ctxpopup_arrow_left.png"; }
773 description { state: "right" 0.0;
777 rel1 { offset: -5 0; }
778 rel2 { offset: -6 -1; }
779 image { normal: "ctxpopup_arrow_right.png"; }
781 description { state: "top" 0.0;
785 rel1 { offset: 0 5; }
786 rel2 { offset: -1 4; }
787 image { normal: "ctxpopup_arrow_up.png"; }
789 description { state: "bottom" 0.0;
793 rel1 { offset: 0 -5; }
794 rel2 { offset: -1 -6; }
795 image { normal: "ctxpopup_arrow_down.png"; }
800 program { name: "enable_left_arrow";
801 signal: "elm,state,left";
803 action: STATE_SET "left" 0.0;
804 target: "ctxpopup_arrow";
806 program { name: "enable_right_arrow";
807 signal: "elm,state,right";
809 action: STATE_SET "right" 0.0;
810 target: "ctxpopup_arrow";
812 program { name: "enable_top_arrow";
813 signal: "elm,state,top";
815 action: STATE_SET "top" 0.0;
816 target: "ctxpopup_arrow";
818 program { name: "enable_bottom_arrow";
819 signal: "elm,state,bottom";
821 action: STATE_SET "bottom" 0.0;
822 target: "ctxpopup_arrow";
826 ///////////////////////////////////////////////////////////////////////////////
828 name: "elm/ctxpopup/icon_text_style_item/default";
829 alias: "elm/ctxpopup/text_style_item/default";
830 alias: "elm/ctxpopup/icon_style_item/default";
832 image: "hoversel_entry_bg.png" COMP;
835 part { name: "event";
837 description { state: "default" 0.0;
842 description { state: "default" 0.0;
845 image { normal:"hoversel_entry_bg.png";
849 color: 255 255 255 0;
851 description { state: "clicked" 0.0;
852 inherit: "default" 0.0;
853 color: 255 255 255 255;
856 part { name: "elm.swallow.icon";
860 description { state: "default" 0.0;
865 rel1 { offset: 10 10; }
866 rel2 { offset: 0 -10; }
869 part { name: "elm.text";
874 description { state: "default" 0.0;
878 rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
879 rel2 { relative: 1.0 1.0; offset: -11 -1; }
880 color: 255 255 255 255;
888 description { state: "clicked" 0.0;
889 inherit: "default" 0.0;
893 part { name: "over1";
896 ignore_flags: ON_HOLD;
897 description { state: "default" 0.0;
898 color: 255 255 255 0;
900 description { state: "clicked" 0.0;
901 inherit: "default" 0.0;
902 color: 255 255 255 255;
905 part { name: "over2";
908 description { state: "default" 0.0;
909 color: 255 255 255 0;
911 description { state: "clicked" 0.0;
912 inherit: "default" 0.0;
913 color: 255 255 255 255;
916 part { name: "disclip";
918 description { state: "default" 0.0;
919 color: 255 255 255 255;
921 description { state: "enabled" 0.0;
922 color: 127 127 127 127;
925 part { name: "blocker";
926 description { state: "default" 0.0;
929 description { state: "enabled" 0.0;
937 name: "item_unclick";
938 signal: "mouse,up,1";
940 action: SIGNAL_EMIT "elm,action,click" "";
942 program { name: "disable";
943 signal: "elm,state,disabled";
945 action: STATE_SET "enabled" 0.0;
949 program { name: "enable";
950 signal: "elm,state,enabled";
952 action: STATE_SET "default" 0.0;
956 program { name: "item_click2";
957 signal: "mouse,down,1";
960 set_state(PART:"elm.text", "clicked", 0.0);
961 set_state(PART:"bg", "clicked", 0.0);
964 program { name: "item_unclick2";
965 signal: "mouse,up,1";
968 set_state(PART:"elm.text", "default", 0.0);
969 set_state(PART:"bg", "default", 0.0);
974 ///////////////////////////////////////////////////////////////////////////////
976 name: "elm/ctxpopup/item_compress/default";
978 image: "hoversel_entry_bg.png" COMP;
981 part { name: "event";
983 description { state: "default" 0.0;
988 description { state: "default" 0.0;
991 image { normal:"hoversel_entry_bg.png";
995 color: 255 255 255 0;
997 description { state: "clicked" 0.0;
998 inherit: "default" 0.0;
999 color: 255 255 255 255;
1002 part { name: "elm.swallow.icon";
1006 description { state: "default" 0.0;
1011 rel1 { offset: 10 10; }
1012 rel2 { offset: 0 -10; }
1015 part { name: "elm.text";
1020 description { state: "default" 0.0;
1024 rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
1025 rel2 { relative: 1.0 1.0; }
1026 color: 255 255 255 255;
1034 description { state: "clicked" 0.0;
1035 inherit: "default" 0.0;
1039 part { name: "over1";
1042 ignore_flags: ON_HOLD;
1043 description { state: "default" 0.0;
1044 color: 255 255 255 0;
1046 description { state: "clicked" 0.0;
1047 inherit: "default" 0.0;
1048 color: 255 255 255 255;
1051 part { name: "over2";
1054 description { state: "default" 0.0;
1055 color: 255 255 255 0;
1057 description { state: "clicked" 0.0;
1058 inherit: "default" 0.0;
1059 color: 255 255 255 255;
1062 part { name: "disclip";
1064 description { state: "default" 0.0;
1065 color: 255 255 255 255;
1067 description { state: "enabled" 0.0;
1068 color: 127 127 127 127;
1071 part { name: "blocker";
1072 description { state: "default" 0.0;
1075 description { state: "enabled" 0.0;
1083 name: "item_unclick";
1084 signal: "mouse,up,1";
1086 action: SIGNAL_EMIT "elm,action,click" "";
1088 program { name: "disable";
1089 signal: "elm,state,disabled";
1091 action: STATE_SET "enabled" 0.0;
1095 program { name: "enable";
1096 signal: "elm,state,enabled";
1098 action: STATE_SET "default" 0.0;
1102 program { name: "item_click2";
1103 signal: "mouse,down,1";
1106 set_state(PART:"elm.text", "clicked", 0.0);
1107 set_state(PART:"bg", "clicked", 0.0);
1110 program { name: "item_unclick2";
1111 signal: "mouse,up,1";
1114 set_state(PART:"elm.text", "default", 0.0);
1115 set_state(PART:"bg", "default", 0.0);