2 #define STATE_HIGHLIGHT 1
5 name: "elm/button/base/fbr_hover_entry";
6 data.item: "focus_highlight" "on";
8 image: FBR_IMAGE_TICK COMP;
22 color: 255 255 255 255;
25 state: "selected" 0.0;
26 inherit: "default" 0.0;
27 color: 126 128 255 255;
30 state: "highlight" 0.0;
31 inherit: "default" 0.0;
32 color: 255 255 255 255;
36 name: "division_line";
54 state: "selected" 0.0;
55 inherit: "default" 0.0;
59 state: "highlight" 0.0;
60 inherit: "default" 0.0;
98 font: FONT_STYLE_REGULAR;
107 state: "selected" 0.0;
108 inherit: "default" 0.0;
110 font: FONT_STYLE_MEDIUM;
112 color: 255 255 255 255;
115 state: "highlight" 0.0;
116 inherit: "default" 0.0;
118 font: FONT_STYLE_MEDIUM;
120 color: 126 128 255 255;
124 name: "padding_icon";
128 state: "default" 0.0;
148 state: "default" 0.0;
157 image.normal: FBR_IMAGE_TICK;
163 state: "selected" 0.0;
164 inherit: "default" 0.0;
168 state: "highlight" 0.0;
169 inherit: "default" 0.0;
170 color: 126 128 255 255;
181 set_int(cur_state, STATE_NORMAL);
182 set_int(hide_line, 0);
187 signal: "mouse,down,1";
189 action: SIGNAL_EMIT "elm,action,press" "";
192 name: "button_mouseup";
193 signal: "mouse,up,1";
195 action: SIGNAL_EMIT "elm,action,unpress" "";
198 name: "button_clicked";
199 signal: "mouse,clicked,1";
201 action: SIGNAL_EMIT "elm,action,click" "";
205 signal: "elm,action,focus";
209 state = get_int(cur_state);
211 if (state == STATE_HIGHLIGHT)
212 set_state(PART:"image_part", "selected", 0.0);
214 set_state(PART:"bg", "selected", 0.0);
215 set_state(PART:"division_line", "selected", 0.0);
216 set_state(PART:"elm.text", "selected", 0.0);
221 signal: "elm,action,unfocus";
227 state = get_int(cur_state);
229 if (state == STATE_HIGHLIGHT)
230 snprintf(buf, sizeof(buf), "highlight");
232 snprintf(buf, sizeof(buf), "default");
234 var = get_int(hide_line);
235 set_state(PART:"bg", buf, 0.0);
237 set_state(PART:"division_line", buf, 0.0);
238 set_state(PART:"elm.text", buf, 0.0);
239 set_state(PART:"image_part", buf, 0.0);
244 signal: "elm,action,highlight";
247 set_int(cur_state, STATE_HIGHLIGHT);
253 action: STATE_SET "highlight" 0.0;
256 target: "image_part";
257 target: "division_line";
261 signal: "elm,action,hideline";
264 set_int(hide_line, 1);
265 set_state(PART:"division_line", "selected", 0.0);
272 name: "elm/button/base/fbr_sourcebtn";
273 data.item: "focus_highlight" "on";
275 image: FBR_IMAGE_PULLDOWN_ARROW COMP;
276 image: FBR_IMAGE_ROUND_ICON COMP;
286 state: "default" 0.0;
288 rel2.relative: 0.0 0.0;
290 normal: FBR_IMAGE_ROUND_ICON;
294 color: 255 255 255 12;
299 state: "selected" 0.0;
300 inherit: "default" 0.0;
301 color: 126 128 255 255;
304 state: "selected_0" 0.0;
305 inherit: "selected" 0.0;
306 color: 126 128 255 0;
309 state: "highlight" 0.0;
310 inherit: "default" 0.0;
311 color: 255 255 255 255;
319 state: "default" 0.0;
321 rel2.relative: 0.0 0.0;
333 state: "default" 0.0;
344 font: FONT_STYLE_REGULAR;
350 color: 175 175 175 255;
354 state: "selected" 0.0;
355 inherit: "default" 0.0;
356 color: 255 255 255 255;
359 state: "highlight" 0.0;
360 inherit: "default" 0.0;
361 color: 126 128 255 255;
364 state: "disabled" 0.0;
365 inherit: "default" 0.0;
366 color: 175 175 175 25;
370 name: "padding_updown";
374 state: "default" 0.0;
389 name: FBR_PART_ELM_SWALLOWICON;
393 state: "default" 0.0;
398 to: "padding_updown";
401 to: "padding_updown";
405 color: 193 193 193 255;
408 state: "focused" 0.0;
409 inherit: "default" 0.0;
410 color: 255 255 255 255;
413 state: "highlight" 0.0;
414 inherit: "focused" 0.0;
417 state: "mouse_over" 0.0;
418 inherit: "focused" 0.0;
422 name: "padding_arrow";
426 state: "default" 0.0;
445 state: "default" 0.0;
456 image.normal: FBR_IMAGE_PULLDOWN_ARROW;
461 state: "disabled" 0.0;
462 inherit: "default" 0.0;
463 color: 175 175 175 25;
473 set_int(cur_state, STATE_NORMAL);
478 signal: "mouse,down,1";
480 action: SIGNAL_EMIT "elm,action,press" "";
483 name: "button_mouseup";
484 signal: "mouse,up,1";
486 action: SIGNAL_EMIT "elm,action,unpress" "";
489 name: "button_clicked";
490 signal: "mouse,clicked,1";
492 action: SIGNAL_EMIT "elm,action,click" "";
496 signal: "elm,action,focus";
499 set_int(cur_state, STATE_NORMAL);
500 set_state(PART:"bg", "selected", 0.0);
501 set_state(PART:"elm.text", "selected", 0.0);
502 //run_program(PROGRAM:"focus,anim");
507 action: STATE_SET "selected" 0.0;
510 target: FBR_PART_ELM_SWALLOWICON;
511 transition: LINEAR 0.17;
515 signal: "elm,action,unfocus";
519 state = get_int(cur_state);
520 if (state == STATE_HIGHLIGHT) {
521 set_state(PART:"bg", "highlight_0", 0.0);
522 set_state(PART:"elm.text", "highlight", 0.0);
523 set_state(PART:FBR_PART_ELM_SWALLOWICON, "highlight", 0.0);
524 run_program(PROGRAM:"unfocus,high,anim");
526 //run_program(PROGRAM:"unfocus,default,anim");
527 set_state(PART:"bg","default", 0.0);
528 set_state(PART:"elm.text","default", 0.0);
533 name: "unfocus,high,anim";
534 action: STATE_SET "highlight" 0.0;
536 transition: LINEAR 0.17;
539 name: "unfocus,default,anim";
540 action: STATE_SET "default" 0.0;
543 target: FBR_PART_ELM_SWALLOWICON;
544 transition: LINEAR 0.17;
550 action: STATE_SET "default" 0.0;
553 target: FBR_PART_ELM_SWALLOWICON;
560 set_int(cur_state, STATE_HIGHLIGHT);
561 set_state(PART:"bg", "highlight", 0.0);
562 set_state(PART:"elm.text", "highlight", 0.0);
563 set_state(PART:FBR_PART_ELM_SWALLOWICON, "highlight", 0.0);
568 signal: "unhighlight";
571 set_int(cur_state, STATE_NORMAL);
572 set_state(PART:"bg", "default", 0.0);
573 set_state(PART:"elm.text", "default", 0.0);
574 set_state(PART:FBR_PART_ELM_SWALLOWICON, "default", 0.0);
579 signal: "elm,state,enabled";
582 set_state(PART:"bg", "default", 0.0);
583 set_state(PART:"elm.text", "default", 0.0);
584 set_state(PART:"arrow_img", "default", 0.0);
589 signal: "elm,state,disabled";
592 set_state(PART:"bg", "disabled", 0.0);
593 set_state(PART:"elm.text", "disabled", 0.0);
594 set_state(PART:"arrow_img", "disabled", 0.0);
601 name: "elm/button/base/fbr_sortbtn";
602 inherit: "elm/button/base/fbr_sourcebtn";
608 state: "default" 0.0;
617 name: "elm/button/base/fbr_menubtn";
618 data.item: "focus_highlight" "on";
620 image: FBR_GROUPBTN_BG COMP;
627 state: "default" 0.0;
629 image.normal: FBR_GROUPBTN_BG;
633 state: "focused" 0.0;
634 inherit: "default" 0.0;
635 color: 126 128 255 255;
638 state: "highlight" 0.0;
639 inherit: "default" 0.0;
640 color: 126 128 255 51;
644 name: "padding_icon";
648 state: "default" 0.0;
663 name: FBR_PART_ELM_SWALLOWICON;
668 state: "default" 0.0;
682 name: "padding_text";
686 state: "default" 0.0;
689 to: FBR_PART_ELM_SWALLOWICON;
693 to: FBR_PART_ELM_SWALLOWICON;
707 state: "default" 0.0;
710 to_x: "padding_text";
714 to_x: "padding_text";
718 font: FONT_STYLE_REGULAR;
722 color: 255 255 255 153;
727 state: "focused" 0.0;
728 inherit: "default" 0.0;
730 font: FONT_STYLE_BOLD;
732 color: 255 255 255 255;
735 state: "highlight" 0.0;
736 inherit: "default" 0.0;
738 font: FONT_STYLE_MEDIUM;
740 color: 255 255 255 255;
745 public select_status = 0;
750 signal: "mouse,down,1";
752 action: SIGNAL_EMIT "elm,action,press" "";
755 name: "button_mouseup";
756 signal: "mouse,up,1";
758 action: SIGNAL_EMIT "elm,action,unpress" "";
762 signal: "elm,action,focus";
764 action: STATE_SET "focused" 0.0;
766 if (get_int(select_status) != 1) {
767 emit("elm,action,click", "");
769 set_state(PART:"bg", "focused", 0.0);
770 set_state(PART:"elm.text", "focused", 0.0);
775 signal: "elm,action,unfocus";
778 if (get_int(select_status) == 1) {
779 set_state(PART:"bg", "highlight", 0.0);
780 set_state(PART:"elm.text", "highlight", 0.0);
782 set_state(PART:"bg", "default", 0.0);
783 set_state(PART:"elm.text", "default", 0.0);
789 signal: FBR_SIGNAL_GROUP_SELECTED;
792 set_int(select_status, 1);
797 signal: FBR_SIGNAL_GROUP_UNSELECTED;
800 set_int(select_status, 0);
801 set_state(PART:"bg", "default", 0.0);
802 set_state(PART:"elm.text", "default", 0.0);