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;
109 color: 255 255 255 255;
112 state: "highlight" 0.0;
113 inherit: "default" 0.0;
114 color: 126 128 255 255;
118 name: "padding_icon";
122 state: "default" 0.0;
142 state: "default" 0.0;
151 image.normal: FBR_IMAGE_TICK;
157 state: "selected" 0.0;
158 inherit: "default" 0.0;
162 state: "highlight" 0.0;
163 inherit: "default" 0.0;
164 color: 126 128 255 255;
175 set_int(cur_state, STATE_NORMAL);
176 set_int(hide_line, 0);
181 signal: "mouse,down,1";
183 action: SIGNAL_EMIT "elm,action,press" "";
186 name: "button_mouseup";
187 signal: "mouse,up,1";
189 action: SIGNAL_EMIT "elm,action,unpress" "";
192 name: "button_clicked";
193 signal: "mouse,clicked,1";
195 action: SIGNAL_EMIT "elm,action,click" "";
199 signal: "elm,action,focus";
203 state = get_int(cur_state);
205 if (state == STATE_HIGHLIGHT)
206 set_state(PART:"image_part", "selected", 0.0);
208 set_state(PART:"bg", "selected", 0.0);
209 set_state(PART:"division_line", "selected", 0.0);
210 set_state(PART:"elm.text", "selected", 0.0);
215 signal: "elm,action,unfocus";
221 state = get_int(cur_state);
223 if (state == STATE_HIGHLIGHT)
224 snprintf(buf, sizeof(buf), "highlight");
226 snprintf(buf, sizeof(buf), "default");
228 var = get_int(hide_line);
229 set_state(PART:"bg", buf, 0.0);
231 set_state(PART:"division_line", buf, 0.0);
232 set_state(PART:"elm.text", buf, 0.0);
233 set_state(PART:"image_part", buf, 0.0);
238 signal: "elm,action,highlight";
241 set_int(cur_state, STATE_HIGHLIGHT);
247 action: STATE_SET "highlight" 0.0;
250 target: "image_part";
251 target: "division_line";
255 signal: "elm,action,hideline";
258 set_int(hide_line, 1);
259 set_state(PART:"division_line", "selected", 0.0);
266 name: "elm/button/base/fbr_sourcebtn";
267 data.item: "focus_highlight" "on";
269 image: FBR_IMAGE_PULLDOWN_ARROW COMP;
270 image: FBR_IMAGE_ROUND_ICON COMP;
280 state: "default" 0.0;
282 rel2.relative: 0.0 0.0;
284 normal: FBR_IMAGE_ROUND_ICON;
288 color: 255 255 255 12;
293 state: "selected" 0.0;
294 inherit: "default" 0.0;
295 color: 126 128 255 255;
298 state: "selected_0" 0.0;
299 inherit: "selected" 0.0;
300 color: 126 128 255 0;
303 state: "highlight" 0.0;
304 inherit: "default" 0.0;
305 color: 255 255 255 255;
313 state: "default" 0.0;
315 rel2.relative: 0.0 0.0;
327 state: "default" 0.0;
338 font: FONT_STYLE_REGULAR;
345 color: 175 175 175 255;
349 state: "selected" 0.0;
350 inherit: "default" 0.0;
351 color: 255 255 255 255;
354 state: "highlight" 0.0;
355 inherit: "default" 0.0;
356 color: 126 128 255 255;
359 state: "disabled" 0.0;
360 inherit: "default" 0.0;
361 color: 175 175 175 25;
365 name: "padding_updown";
369 state: "default" 0.0;
384 name: FBR_PART_ELM_SWALLOWICON;
388 state: "default" 0.0;
393 to: "padding_updown";
396 to: "padding_updown";
400 color: 193 193 193 255;
403 state: "focused" 0.0;
404 inherit: "default" 0.0;
405 color: 255 255 255 255;
408 state: "highlight" 0.0;
409 inherit: "focused" 0.0;
412 state: "mouse_over" 0.0;
413 inherit: "focused" 0.0;
417 name: "padding_arrow";
421 state: "default" 0.0;
440 state: "default" 0.0;
451 image.normal: FBR_IMAGE_PULLDOWN_ARROW;
456 state: "disabled" 0.0;
457 inherit: "default" 0.0;
458 color: 175 175 175 25;
468 set_int(cur_state, STATE_NORMAL);
473 signal: "mouse,down,1";
475 action: SIGNAL_EMIT "elm,action,press" "";
478 name: "button_mouseup";
479 signal: "mouse,up,1";
481 action: SIGNAL_EMIT "elm,action,unpress" "";
484 name: "button_clicked";
485 signal: "mouse,clicked,1";
487 action: SIGNAL_EMIT "elm,action,click" "";
491 signal: "elm,action,focus";
494 set_int(cur_state, STATE_NORMAL);
495 set_state(PART:"bg", "selected", 0.0);
496 set_state(PART:"elm.text", "selected", 0.0);
501 action: STATE_SET "selected" 0.0;
504 target: FBR_PART_ELM_SWALLOWICON;
505 transition: LINEAR 0.17;
509 signal: "elm,action,unfocus";
513 state = get_int(cur_state);
514 if (state == STATE_HIGHLIGHT) {
515 set_state(PART:"bg", "highlight_0", 0.0);
516 set_state(PART:"elm.text", "highlight", 0.0);
517 set_state(PART:FBR_PART_ELM_SWALLOWICON, "highlight", 0.0);
518 run_program(PROGRAM:"unfocus,high,anim");
520 set_state(PART:"bg","default", 0.0);
521 set_state(PART:"elm.text","default", 0.0);
526 name: "unfocus,high,anim";
527 action: STATE_SET "highlight" 0.0;
529 transition: LINEAR 0.17;
532 name: "unfocus,default,anim";
533 action: STATE_SET "default" 0.0;
536 target: FBR_PART_ELM_SWALLOWICON;
537 transition: LINEAR 0.17;
543 action: STATE_SET "default" 0.0;
546 target: FBR_PART_ELM_SWALLOWICON;
553 set_int(cur_state, STATE_HIGHLIGHT);
554 set_state(PART:"bg", "highlight", 0.0);
555 set_state(PART:"elm.text", "highlight", 0.0);
556 set_state(PART:FBR_PART_ELM_SWALLOWICON, "highlight", 0.0);
561 signal: "unhighlight";
564 set_int(cur_state, STATE_NORMAL);
565 set_state(PART:"bg", "default", 0.0);
566 set_state(PART:"elm.text", "default", 0.0);
567 set_state(PART:FBR_PART_ELM_SWALLOWICON, "default", 0.0);
572 signal: "elm,state,enabled";
575 set_state(PART:"bg", "default", 0.0);
576 set_state(PART:"elm.text", "default", 0.0);
577 set_state(PART:"arrow_img", "default", 0.0);
582 signal: "elm,state,disabled";
585 set_state(PART:"bg", "disabled", 0.0);
586 set_state(PART:"elm.text", "disabled", 0.0);
587 set_state(PART:"arrow_img", "disabled", 0.0);
594 name: "elm/button/base/fbr_sortbtn";
595 inherit: "elm/button/base/fbr_sourcebtn";
601 state: "default" 0.0;
610 name: "elm/button/base/fbr_menubtn";
611 data.item: "focus_highlight" "on";
613 image: FBR_GROUPBTN_BG COMP;
620 state: "default" 0.0;
622 image.normal: FBR_GROUPBTN_BG;
626 state: "focused" 0.0;
627 inherit: "default" 0.0;
628 color: 126 128 255 255;
631 state: "highlight" 0.0;
632 inherit: "default" 0.0;
633 color: 126 128 255 51;
637 name: "padding_icon";
641 state: "default" 0.0;
656 name: FBR_PART_ELM_SWALLOWICON;
661 state: "default" 0.0;
675 name: "padding_text";
679 state: "default" 0.0;
682 to: FBR_PART_ELM_SWALLOWICON;
686 to: FBR_PART_ELM_SWALLOWICON;
700 state: "default" 0.0;
703 to_x: "padding_text";
707 to_x: "padding_text";
711 font: FONT_STYLE_REGULAR;
715 color: 255 255 255 153;
720 state: "focused" 0.0;
721 inherit: "default" 0.0;
723 font: FONT_STYLE_BOLD;
725 color: 255 255 255 255;
728 state: "highlight" 0.0;
729 inherit: "default" 0.0;
731 font: FONT_STYLE_MEDIUM;
733 color: 255 255 255 255;
738 public select_status = 0;
743 signal: "mouse,down,1";
745 action: SIGNAL_EMIT "elm,action,press" "";
748 name: "button_mouseup";
749 signal: "mouse,up,1";
751 action: SIGNAL_EMIT "elm,action,unpress" "";
755 signal: "elm,action,focus";
757 action: STATE_SET "focused" 0.0;
759 if (get_int(select_status) != 1) {
760 emit("elm,action,click", "");
762 set_state(PART:"bg", "focused", 0.0);
763 set_state(PART:"elm.text", "focused", 0.0);
768 signal: "elm,action,unfocus";
771 if (get_int(select_status) == 1) {
772 set_state(PART:"bg", "highlight", 0.0);
773 set_state(PART:"elm.text", "highlight", 0.0);
775 set_state(PART:"bg", "default", 0.0);
776 set_state(PART:"elm.text", "default", 0.0);
782 signal: FBR_SIGNAL_GROUP_SELECTED;
785 set_int(select_status, 1);
790 signal: FBR_SIGNAL_GROUP_UNSELECTED;
793 set_int(select_status, 0);
794 set_state(PART:"bg", "default", 0.0);
795 set_state(PART:"elm.text", "default", 0.0);