2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "browser-macro.edc"
21 ////////////////////////////////////////////////////////////////////////////////////////
23 ///////////////////////////////////////////////////////////////////////////////////////
26 #define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC 28
27 #define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC "#f9f9f9"
28 #define BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC 56 56
29 #define BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC 249 249 249 255
30 #define BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC 249 249 249 255
32 #define ITEM_STATE_ENABLED 0
33 #define ITEM_STATE_DISABLED 1
35 group { name: "elm/toolbar/base/browser/browser-view";
37 image: "browser-view-images/controlbar/I01_toolbar_bg_grey.png" COMP;
42 description { state: "default" 0.0;
43 image.normal: "browser-view-images/controlbar/I01_toolbar_bg_grey.png";
46 part { name: "clipper";
61 part { name: "elm.swallow.content";
74 description { state: "default" 0.0;
81 group { name: "elm/toolbar/base/browser/default";
83 image: "browser-view-images/controlbar/I01_toolbar_bg.png" COMP;
88 description { state: "default" 0.0;
89 image.normal: "browser-view-images/controlbar/I01_toolbar_bg.png";
92 part { name: "clipper";
107 part { name: "elm.swallow.content";
111 state: "default" 0.0;
116 part { name: "event";
120 description { state: "default" 0.0;
127 group { name: "elm/toolbar/item/browser/default";
128 alias: "elm/toolbar/item/browser/browser-view";
130 image: "browser-view-images/controlbar/I01_toolbar_press.png" COMP;
133 style { name: "toolbar_style";
134 base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1";
137 tag: "hilight" "+ font=SLP:style=Bold";
138 tag: "b" "+ font=SLP:style=Bold";
143 data.item: "transition_animation_on" "1";
145 public item_state = ITEM_STATE_ENABLED;
150 description { state: "default" 0.0;
152 color: 255 255 255 0;
155 to: "padding_left_top";
159 to: "padding_right_bottom";
162 normal: "browser-view-images/controlbar/I01_toolbar_press.png";
168 description { state: "selected" 0.0;
169 inherit: "default" 0.0;
171 color: 255 255 255 255;
173 description { state: "disabled" 0.0;
174 inherit: "default" 0.0;
176 color: 255 255 255 0;
179 part { name: "padding_left_top";
183 description { state: "default" 0.0;
185 rel2.relative: 0.0 0.0;
192 part { name: "padding_right_bottom";
196 description { state: "default" 0.0;
198 rel1.relative: 1.0 1.0;
210 description { state: "default" 0.0;
215 to: "padding_left_top";
219 to_x: "padding_right_bottom";
220 to_y: "padding_left_top";
225 description { state: "visible" 0.0;
226 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
230 to: "padding_left_top";
234 to_x: "padding_right_bottom";
235 to_y: "padding_left_top";
240 description { state: "icononly" 0.0;
241 inherit: "default" 0.0;
244 part { name: "padding_after_icon";
248 description { state: "default" 0.0; //when only icon or no icon is there
254 rel2.to: "icon_rect";
259 description { state: "visible" 0.0;
260 inherit: "default" 0.0;
262 description { state: "icononly" 0.0;
263 inherit: "default" 0.0;
266 part { name: "padding_before_text";
270 description { state: "default" 0.0; //when only icon or no icon is there
274 to_x: "padding_left_top";
279 to_x: "padding_right_bottom";
287 part { name: "elm.swallow.icon";
290 clip_to: "elm.icon.clipper";
291 description { state: "default" 0.0;
296 to: "padding_left_top";
300 to_x: "padding_right_bottom";
301 to_y: "padding_left_top";
305 description { state: "visible" 0.0;
307 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
308 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
311 to: "padding_left_top";
315 to_x: "padding_right_bottom";
316 to_y: "padding_before_text";
319 aspect_preference: HORIZONTAL;
321 description { state: "icononly" 0.0;
322 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
323 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
326 to: "padding_left_top";
330 to: "padding_right_bottom";
333 aspect_preference: HORIZONTAL;
336 part { name: "elm.swallow.icon_new";
339 clip_to: "elm.icon_new.clipper";
340 description { state: "default" 0.0;
345 to: "padding_left_top";
349 to_x: "padding_right_bottom";
350 to_y: "padding_left_top";
354 description { state: "visible" 0.0;
356 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
357 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
360 to: "padding_left_top";
364 to_x: "padding_right_bottom";
365 to_y: "padding_before_text";
368 aspect_preference: HORIZONTAL;
370 description { state: "icononly" 0.0;
371 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
372 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
375 to: "padding_left_top";
379 to: "padding_right_bottom";
382 aspect_preference: HORIZONTAL;
385 part { name: "elm.text";
389 clip_to: "elm.text.clipper";
390 description { state: "default" 0.0;
394 to_x: "padding_left_top";
395 to_y: "padding_after_icon";
399 to: "padding_right_bottom";
401 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
404 style: "toolbar_style";
409 description { state: "selected" 0.0;
410 inherit: "default" 0.0;
413 description { state: "visible" 0.0;
414 inherit: "default" 0.0;
417 description { state: "clicked" 0.0;
418 inherit: "default" 0.0;
420 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
422 description { state: "focused" 0.0;
423 inherit: "default" 0.0;
425 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
428 part { name: "elm.text_new";
432 clip_to: "elm.text_new.clipper";
433 description { state: "default" 0.0;
437 to_x: "padding_left_top";
438 to_y: "padding_after_icon";
442 to: "padding_right_bottom";
444 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
447 style: "toolbar_style";
452 description { state: "visible" 0.0;
453 inherit: "default" 0.0;
456 description { state: "clicked" 0.0;
457 inherit: "default" 0.0;
459 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
461 description { state: "focused" 0.0;
462 inherit: "default" 0.0;
464 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
467 part { name: "elm.text.clipper";
469 description { state: "default" 0.0;
470 color: 255 255 255 255;
472 description { state: "animation" 0.0;
473 color: 255 255 255 0;
475 description { state: "disabled" 0.0;
476 color: 255 255 255 153;
479 part { name: "elm.text_new.clipper";
481 description { state: "default" 0.0;
482 color: 255 255 255 0;
484 description { state: "animation" 0.0;
485 color: 255 255 255 255;
488 part { name: "elm.icon.clipper";
490 description { state: "default" 0.0;
491 color: 255 255 255 255;
493 description { state: "animation" 0.0;
494 color: 255 255 255 0;
496 description { state: "disabled" 0.0;
497 color: 255 255 255 153;
500 part { name: "elm.icon_new.clipper";
502 description { state: "default" 0.0;
503 color: 255 255 255 0;
505 description { state: "animation" 0.0;
506 color: 255 255 255 255;
509 part { name: "event";
512 ignore_flags: ON_HOLD;
513 description { state: "default" 0.0;
517 part { name: "event2";
521 description { state: "default" 0.0;
527 program { name: "pressed";
528 signal: "mouse,down,1";
531 if (get_int(item_state) != ITEM_STATE_DISABLED)
532 set_state(PART:"bg", "selected", 0.0);
534 transition: LINEAR 0.2;
536 program { name: "unpressed";
537 signal: "mouse,up,1";
539 action: STATE_SET "default" 0.0;
541 transition: LINEAR 0.1;
543 program { name: "go";
544 signal: "mouse,up,1";
546 action: SIGNAL_EMIT "elm,action,click" "elm";
548 program { name: "mouse,in";
551 action: SIGNAL_EMIT "elm,mouse,in" "elm";
553 program { name: "mouse,out";
556 action: SIGNAL_EMIT "elm,mouse,out" "elm";
558 program { name: "disable";
559 signal: "elm,state,disabled";
561 action: STATE_SET "disabled" 0.0;
563 after: "disable_text";
565 program { name: "disable_text";
569 get_state(PART:"elm.text", st, 30, vl);
570 if (!strcmp(st, "visible"))
572 set_state(PART:"elm.text", "disabled_visible", 0.0);
573 set_state(PART:"elm.text_new", "disabled_visible", 0.0);
577 set_state(PART:"elm.text", "disabled", 0.0);
578 set_state(PART:"elm.text_new", "disabled", 0.0);
580 set_state(PART:"elm.text.clipper", "disabled", 0.0);
581 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
582 set_int(item_state, ITEM_STATE_DISABLED);
585 program { name: "enable";
586 signal: "elm,state,enabled";
588 action: STATE_SET "default" 0.0;
590 after: "enable_text";
592 program { name: "enable_text";
596 get_state(PART:"elm.text", st, 30, vl);
597 if (!strcmp(st, "disabled_visible"))
599 set_state(PART:"elm.text", "visible", 0.0);
600 set_state(PART:"elm.text_new", "visible", 0.0);
604 set_state(PART:"elm.text", "default", 0.0);
605 set_state(PART:"elm.text_new", "default", 0.0);
607 set_state(PART:"elm.text.clipper", "default", 0.0);
608 set_state(PART:"elm.icon.clipper", "default", 0.0);
609 set_int(item_state, ITEM_STATE_ENABLED);
612 program { name: "label_set,animation,forward";
613 signal: "elm,state,label_set,forward";
615 after: "label_set,animation";
617 program { name: "label_set,animation,backward";
618 signal: "elm,state,label_set,backward";
620 after: "label_set,animation";
622 program { name: "label_set,animation";
623 signal: "elm,state,label_set";
625 action: STATE_SET "animation" 0.0;
626 target: "elm.text.clipper";
627 target: "elm.text_new.clipper";
628 transition: LINEAR 0.2;
629 after: "label_set,animation,done";
631 program { name: "label_set,animation,done";
632 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
634 program { name: "label,reset";
635 signal: "elm,state,label,reset";
637 action: STATE_SET "default" 0.0;
638 target: "elm.text.clipper";
639 target: "elm.text_new.clipper";
641 program { name: "icon_set,animation,forward";
642 signal: "elm,state,icon_set,forward";
644 after: "icon_set,animation";
646 program { name: "icon_set,animation,backward";
647 signal: "elm,state,icon_set,backward";
649 after: "icon_set,animation";
651 program { name: "icon_set,animation";
652 signal: "elm,state,icon_set";
654 action: STATE_SET "animation" 0.0;
655 target: "elm.icon.clipper";
656 target: "elm.icon_new.clipper";
657 transition: LINEAR 0.2;
658 after: "icon_set,animation,done";
660 program { name: "icon_set,animation,done";
661 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
663 program { name: "icon,reset";
664 signal: "elm,state,icon,reset";
666 action: STATE_SET "default" 0.0;
667 target: "elm.icon.clipper";
668 target: "elm.icon_new.clipper";
670 program { name: "text_show";
671 signal: "elm,state,text,visible";
676 get_state(PART:"elm.swallow.icon", st, 30, vl);
677 if (!strcmp(st, "icononly"))
679 set_state(PART:"elm.swallow.icon", "visible", 0.0);
680 set_state(PART:"icon_rect", "visible", 0.0);
681 set_state(PART:"padding_after_icon", "visible", 0.0);
683 set_state(PART:"elm.text", "visible", 0.0);
686 program { name: "text_hide";
687 signal: "elm,state,text,hidden";
692 get_state(PART:"elm.swallow.icon", st, 30, vl);
693 if (!strcmp(st, "visible"))
695 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
696 set_state(PART:"icon_rect", "icononly", 0.0);
697 set_state(PART:"padding_after_icon", "icononly", 0.0);
699 set_state(PART:"elm.text", "default", 0.0);
702 program { name: "icon_show";
703 signal: "elm,state,icon,visible";
708 get_state(PART:"elm.text", st, 30, vl);
709 if (!strcmp(st, "visible"))
711 set_state(PART:"elm.swallow.icon", "visible", 0.0);
712 set_state(PART:"icon_rect", "visible", 0.0);
713 set_state(PART:"padding_after_icon", "visible", 0.0);
717 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
718 set_state(PART:"icon_rect", "icononly", 0.0);
719 set_state(PART:"padding_after_icon", "icononly", 0.0);
726 group { name: "elm/toolbar/item/browser/item_horizontal";
727 inherit: "elm/toolbar/item/browser/default";
729 public item_state = ITEM_STATE_ENABLED;
732 part { name: "icon_rect";
733 description { state: "default" 0.0;
737 description { state: "visible" 0.0;
741 to_x: "padding_left_top";
742 to_y: "padding_right_bottom";
747 part { name: "padding_after_icon";
748 description { state: "default" 0.0; //when only icon or no icon is there
749 rel1.relative: 1.0 0.0;
752 description { state: "visible" 0.0;
753 inherit: "default" 0.0;
757 part { name: "padding_before_text";
758 description { state: "default" 0.0; //when only icon or no icon is there
763 to_y: "padding_left_top";
767 to_y: "padding_right_bottom";
773 part { name: "elm.swallow.icon";
774 description { state: "default" 0.0;
778 to_x: "padding_left_top";
779 to_y: "padding_right_bottom";
783 description { state: "visible" 0.0;
788 to_x: "padding_before_text";
789 to_y: "padding_left_top";
793 to_x: "padding_before_text";
794 to_y: "padding_right_bottom";
796 aspect_preference: VERTICAL;
798 description { state: "icononly" 0.0;
799 aspect_preference: VERTICAL;
802 part { name: "elm.swallow.icon_new";
803 description { state: "default" 0.0;
807 to_x: "padding_left_top";
808 to_y: "padding_right_bottom";
812 description { state: "visible" 0.0;
817 to_x: "padding_before_text";
818 to_y: "padding_left_top";
822 to_x: "padding_before_text";
823 to_y: "padding_right_bottom";
825 aspect_preference: VERTICAL;
827 description { state: "icononly" 0.0;
828 aspect_preference: VERTICAL;
831 part { name: "elm.text";
833 description { state: "default" 0.0;
836 to_x: "padding_after_icon";
837 to_y: "padding_left_top";
840 style: "toolbar_style";
845 description { state: "selected" 0.0;
846 inherit: "default" 0.0;
849 description { state: "visible" 0.0;
850 inherit: "default" 0.0;
853 description { state: "clicked" 0.0;
854 inherit: "default" 0.0;
856 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
858 description { state: "focused" 0.0;
859 inherit: "default" 0.0;
861 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
864 part { name: "elm.text_new";
866 description { state: "default" 0.0;
869 to_x: "padding_after_icon";
870 to_y: "padding_left_top";
873 style: "toolbar_style";
878 description { state: "selected" 0.0;
879 inherit: "default" 0.0;
882 description { state: "visible" 0.0;
883 inherit: "default" 0.0;
886 description { state: "clicked" 0.0;
887 inherit: "default" 0.0;
889 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
891 description { state: "focused" 0.0;
892 inherit: "default" 0.0;
894 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
900 group { name: "elm/toolbar/separator/browser/default";
902 // image: "separator_v.png" COMP;
905 part { name: "separator"; // separator group
906 description { state: "default" 0.0;
909 min: 0 2; // browser customize
910 max: 0 9999; // browser customize
914 // normal: "separator_v.png";
924 group { name: "elm/toolbar/object/browser/default";
926 part { name: "elm.swallow.object"; // object group
929 state: "default" 0.0;
935 group { name: "elm/toolbar/base/browser/tabbar";
937 image: "browser-view-images/controlbar/I01_tabbar_bg.png" COMP;
943 description { state: "default" 0.0;
944 image.normal: "browser-view-images/controlbar/I01_tabbar_bg.png";
947 part { name: "clipper";
951 state: "default" 0.0;
962 part { name: "elm.swallow.content";
966 state: "default" 0.0;
971 part { name: "event";
975 description { state: "default" 0.0;
982 group { name: "elm/toolbar/item/browser/tabbar";
983 alias: "elm/toolbar/item/tabbar/browser/item_horizontal";
985 image: "browser-view-images/controlbar/I01_tabbar_focus.png" COMP;
988 data.item: "transition_animation_on" "1";
992 description { state: "default" 0.0;
994 color: 255 255 255 0;
996 normal: "browser-view-images/controlbar/I01_tabbar_focus.png";
1001 description { state: "selected" 0.0;
1002 inherit: "default" 0.0;
1004 color: 255 255 255 255;
1006 description { state: "disabled" 0.0;
1007 inherit: "default" 0.0;
1009 color: 255 255 255 0;
1012 part { name: "padding_left_top";
1016 description { state: "default" 0.0;
1018 rel2.relative: 0.0 0.0;
1025 part { name: "padding_right_bottom";
1029 description { state: "default" 0.0;
1031 rel1.relative: 1.0 1.0;
1043 description { state: "default" 0.0;
1048 to: "padding_left_top";
1052 to_x: "padding_right_bottom";
1053 to_y: "padding_left_top";
1058 description { state: "visible" 0.0;
1059 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1063 to: "padding_left_top";
1067 to_x: "padding_right_bottom";
1068 to_y: "padding_left_top";
1073 description { state: "icononly" 0.0;
1074 inherit: "default" 0.0;
1077 part { name: "padding_after_icon";
1081 description { state: "default" 0.0; //when only icon or no icon is there
1087 rel2.to: "icon_rect";
1092 description { state: "visible" 0.0;
1098 rel2.to: "icon_rect";
1103 description { state: "icononly" 0.0;
1104 inherit: "default" 0.0;
1107 part { name: "padding_before_text";
1111 description { state: "default" 0.0; //when only icon or no icon is there
1115 to_x: "padding_left_top";
1120 to_x: "padding_right_bottom";
1128 part { name: "elm.swallow.icon";
1131 clip_to: "elm.icon.clipper";
1132 description { state: "default" 0.0;
1137 to: "padding_left_top";
1141 to_x: "padding_right_bottom";
1142 to_y: "padding_left_top";
1146 description { state: "visible" 0.0;
1148 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1149 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1152 to: "padding_left_top";
1156 to_x: "padding_right_bottom";
1157 to_y: "padding_before_text";
1160 aspect_preference: HORIZONTAL;
1162 description { state: "icononly" 0.0;
1163 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1164 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1167 to: "padding_left_top";
1171 to: "padding_right_bottom";
1174 aspect_preference: HORIZONTAL;
1177 part { name: "elm.swallow.icon_new";
1180 clip_to: "elm.icon_new.clipper";
1181 description { state: "default" 0.0;
1186 to: "padding_left_top";
1190 to_x: "padding_right_bottom";
1191 to_y: "padding_left_top";
1195 description { state: "visible" 0.0;
1197 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1198 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1201 to: "padding_left_top";
1205 to_x: "padding_right_bottom";
1206 to_y: "padding_before_text";
1209 aspect_preference: HORIZONTAL;
1211 description { state: "icononly" 0.0;
1212 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1213 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1216 to: "padding_left_top";
1220 to: "padding_right_bottom";
1223 aspect_preference: HORIZONTAL;
1226 part { name: "elm.text";
1230 clip_to: "elm.text.clipper";
1231 description { state: "default" 0.0;
1235 to_x: "padding_left_top";
1236 to_y: "padding_after_icon";
1240 to: "padding_right_bottom";
1242 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1245 style: "toolbar_style";
1250 description { state: "selected" 0.0;
1251 inherit: "default" 0.0;
1254 description { state: "visible" 0.0;
1255 inherit: "default" 0.0;
1258 description { state: "clicked" 0.0;
1259 inherit: "default" 0.0;
1261 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1263 description { state: "focused" 0.0;
1264 inherit: "default" 0.0;
1266 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1269 part { name: "elm.text_new";
1273 clip_to: "elm.text_new.clipper";
1274 description { state: "default" 0.0;
1278 to_x: "padding_left_top";
1279 to_y: "padding_after_icon";
1283 to: "padding_right_bottom";
1285 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1288 style: "toolbar_style";
1293 description { state: "visible" 0.0;
1294 inherit: "default" 0.0;
1297 description { state: "clicked" 0.0;
1298 inherit: "default" 0.0;
1300 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1302 description { state: "focused" 0.0;
1303 inherit: "default" 0.0;
1305 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1308 part { name: "elm.text.clipper";
1310 description { state: "default" 0.0;
1311 color: 255 255 255 255;
1313 description { state: "animation" 0.0;
1314 color: 255 255 255 0;
1316 description { state: "disabled" 0.0;
1317 color: 255 255 255 153;
1320 part { name: "elm.text_new.clipper";
1322 description { state: "default" 0.0;
1323 color: 255 255 255 0;
1325 description { state: "animation" 0.0;
1326 color: 255 255 255 255;
1329 part { name: "elm.icon.clipper";
1331 description { state: "default" 0.0;
1332 color: 255 255 255 255;
1334 description { state: "animation" 0.0;
1335 color: 255 255 255 0;
1337 description { state: "disabled" 0.0;
1338 color: 255 255 255 153;
1341 part { name: "elm.icon_new.clipper";
1343 description { state: "default" 0.0;
1344 color: 255 255 255 0;
1346 description { state: "animation" 0.0;
1347 color: 255 255 255 255;
1350 part { name: "event";
1353 ignore_flags: ON_HOLD;
1354 description { state: "default" 0.0;
1360 program { name: "go_active";
1361 signal: "elm,state,selected";
1363 action: STATE_SET "selected" 0.0;
1365 transition: LINEAR 0.2;
1367 program { name: "go_passive";
1368 signal: "elm,state,unselected";
1370 action: STATE_SET "default" 0.0;
1372 transition: LINEAR 0.1;
1374 program { name: "pressed";
1375 signal: "mouse,down,1";
1377 action: STATE_SET "selected" 0.0;
1380 target: "elm.text_new";
1381 transition: LINEAR 0.2;
1383 program { name: "unpressed";
1384 signal: "mouse,up,1";
1386 action: STATE_SET "default" 0.0;
1389 target: "elm.text_new";
1390 transition: LINEAR 0.1;
1392 program { name: "go";
1393 signal: "mouse,up,1";
1395 action: SIGNAL_EMIT "elm,action,click" "elm";
1397 program { name: "mouse,in";
1400 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1402 program { name: "mouse,out";
1403 signal: "mouse,out";
1405 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1407 program { name: "disable";
1408 signal: "elm,state,disabled";
1410 action: STATE_SET "disabled" 0.0;
1412 after: "disable_text";
1414 program { name: "disable_text";
1418 get_state(PART:"elm.text", st, 30, vl);
1419 if (!strcmp(st, "visible"))
1421 set_state(PART:"elm.text", "disabled_visible", 0.0);
1422 set_state(PART:"elm.text_new", "disabled_visible", 0.0);
1426 set_state(PART:"elm.text", "disabled", 0.0);
1427 set_state(PART:"elm.text_new", "disabled", 0.0);
1429 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1430 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1433 program { name: "enable";
1434 signal: "elm,state,enabled";
1436 action: STATE_SET "default" 0.0;
1438 after: "enable_text";
1440 program { name: "enable_text";
1444 get_state(PART:"elm.text", st, 30, vl);
1445 if (!strcmp(st, "disabled_visible"))
1447 set_state(PART:"elm.text", "visible", 0.0);
1448 set_state(PART:"elm.text_new", "visible", 0.0);
1452 set_state(PART:"elm.text", "default", 0.0);
1453 set_state(PART:"elm.text_new", "default", 0.0);
1455 set_state(PART:"elm.text.clipper", "default", 0.0);
1456 set_state(PART:"elm.icon.clipper", "default", 0.0);
1459 program { name: "label_set,animation,forward";
1460 signal: "elm,state,label_set,forward";
1462 after: "label_set,animation";
1464 program { name: "label_set,animation,backward";
1465 signal: "elm,state,label_set,backward";
1467 after: "label_set,animation";
1469 program { name: "label_set,animation";
1470 signal: "elm,state,label_set";
1472 action: STATE_SET "animation" 0.0;
1473 target: "elm.text.clipper";
1474 target: "elm.text_new.clipper";
1475 transition: LINEAR 0.2;
1476 after: "label_set,animation,done";
1478 program { name: "label_set,animation,done";
1479 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1481 program { name: "label,reset";
1482 signal: "elm,state,label,reset";
1484 action: STATE_SET "default" 0.0;
1485 target: "elm.text.clipper";
1486 target: "elm.text_new.clipper";
1488 program { name: "icon_set,animation,forward";
1489 signal: "elm,state,icon_set,forward";
1491 after: "icon_set,animation";
1493 program { name: "icon_set,animation,backward";
1494 signal: "elm,state,icon_set,backward";
1496 after: "icon_set,animation";
1498 program { name: "icon_set,animation";
1499 signal: "elm,state,icon_set";
1501 action: STATE_SET "animation" 0.0;
1502 target: "elm.icon.clipper";
1503 target: "elm.icon_new.clipper";
1504 transition: LINEAR 0.2;
1505 after: "icon_set,animation,done";
1507 program { name: "icon_set,animation,done";
1508 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1510 program { name: "icon,reset";
1511 signal: "elm,state,icon,reset";
1513 action: STATE_SET "default" 0.0;
1514 target: "elm.icon.clipper";
1515 target: "elm.icon_new.clipper";
1517 program { name: "text_show";
1518 signal: "elm,state,text,visible";
1523 get_state(PART:"elm.swallow.icon", st, 30, vl);
1524 if (!strcmp(st, "icononly"))
1526 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1527 set_state(PART:"icon_rect", "visible", 0.0);
1528 set_state(PART:"padding_after_icon", "visible", 0.0);
1530 set_state(PART:"elm.text", "visible", 0.0);
1533 program { name: "text_hide";
1534 signal: "elm,state,text,hidden";
1539 get_state(PART:"elm.swallow.icon", st, 30, vl);
1540 if (!strcmp(st, "visible"))
1542 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1543 set_state(PART:"icon_rect", "icononly", 0.0);
1544 set_state(PART:"padding_after_icon", "icononly", 0.0);
1546 set_state(PART:"elm.text", "default", 0.0);
1549 program { name: "icon_show";
1550 signal: "elm,state,icon,visible";
1555 get_state(PART:"elm.text", st, 30, vl);
1556 if (!strcmp(st, "visible"))
1558 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1559 set_state(PART:"icon_rect", "visible", 0.0);
1560 set_state(PART:"padding_after_icon", "visible", 0.0);
1564 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1565 set_state(PART:"icon_rect", "icononly", 0.0);
1566 set_state(PART:"padding_after_icon", "icononly", 0.0);
1573 group { name: "elm/toolbar/item/tabbar/browser/item_horizontal";
1574 inherit: "elm/toolbar/item/browser/tabbar";
1576 public item_state = ITEM_STATE_ENABLED;
1579 part { name: "icon_rect";
1580 description { state: "default" 0.0;
1584 description { state: "visible" 0.0;
1588 to_x: "padding_left_top";
1589 to_y: "padding_right_bottom";
1594 part { name: "padding_after_icon";
1595 description { state: "default" 0.0; //when only icon or no icon is there
1596 rel1.relative: 1.0 0.0;
1599 description { state: "visible" 0.0;
1600 inherit: "default" 0.0;
1604 part { name: "padding_before_text";
1605 description { state: "default" 0.0; //when only icon or no icon is there
1610 to_y: "padding_left_top";
1614 to_y: "padding_right_bottom";
1620 part { name: "elm.swallow.icon";
1621 description { state: "default" 0.0;
1625 to_x: "padding_left_top";
1626 to_y: "padding_right_bottom";
1630 description { state: "visible" 0.0;
1635 to_x: "padding_before_text";
1636 to_y: "padding_left_top";
1640 to_x: "padding_before_text";
1641 to_y: "padding_right_bottom";
1643 aspect_preference: VERTICAL;
1645 description { state: "icononly" 0.0;
1646 aspect_preference: VERTICAL;
1649 part { name: "elm.swallow.icon_new";
1650 description { state: "default" 0.0;
1654 to_x: "padding_left_top";
1655 to_y: "padding_right_bottom";
1659 description { state: "visible" 0.0;
1664 to_x: "padding_before_text";
1665 to_y: "padding_left_top";
1669 to_x: "padding_before_text";
1670 to_y: "padding_right_bottom";
1672 aspect_preference: VERTICAL;
1674 description { state: "icononly" 0.0;
1675 aspect_preference: VERTICAL;
1678 part { name: "elm.text";
1680 description { state: "default" 0.0;
1683 to_x: "padding_after_icon";
1684 to_y: "padding_left_top";
1687 style: "toolbar_style";
1692 description { state: "selected" 0.0;
1693 inherit: "default" 0.0;
1696 description { state: "visible" 0.0;
1697 inherit: "default" 0.0;
1700 description { state: "clicked" 0.0;
1701 inherit: "default" 0.0;
1703 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1705 description { state: "focused" 0.0;
1706 inherit: "default" 0.0;
1708 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1711 part { name: "elm.text_new";
1713 description { state: "default" 0.0;
1716 to_x: "padding_after_icon";
1717 to_y: "padding_left_top";
1720 style: "toolbar_style";
1725 description { state: "selected" 0.0;
1726 inherit: "default" 0.0;
1729 description { state: "visible" 0.0;
1730 inherit: "default" 0.0;
1733 description { state: "clicked" 0.0;
1734 inherit: "default" 0.0;
1736 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1738 description { state: "focused" 0.0;
1739 inherit: "default" 0.0;
1741 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1747 group { name: "elm/toolbar/base/browser/naviframe";
1749 part { name: "base";
1751 description { state: "default" 0.0;
1755 part { name: "clipper";
1759 state: "default" 0.0;
1770 part { name: "elm.swallow.content";
1774 state: "default" 0.0;
1779 part { name: "event";
1783 description { state: "default" 0.0;
1790 group { name: "elm/toolbar/object/browser/naviframe";
1792 part { name: "elm.swallow.object"; // object group
1795 state: "default" 0.0;
1803 group { name: "browser-view-controlbar";
1805 image: "browser-view-images/controlbar/I01_toolbar_bg_grey.png" COMP;
1808 part { name: "base";
1809 description { state: "default" 0.0;
1810 image.normal: "browser-view-images/controlbar/I01_toolbar_bg_grey.png";
1813 part { name: "elm.swallow.controlbar";
1816 state: "default" 0.0;
1817 rel1 { relative: 0.0 0.0; to: "base"; }
1818 rel2 { relative: 0.0 1.0; to: "elm.swallow.back_button"; }
1821 part { name: "elm.rect.back_button";
1824 state: "default" 0.0;
1829 rel1 { relative: 1.0 0.0; to: "base"; }
1830 rel2 { relative: 1.0 1.0; to: "base"; }
1833 part { name: "elm.swallow.back_button";
1836 state: "default" 0.0;
1838 rel1 { relative: 0.0 0.0; to: "elm.rect.back_button"; }
1839 rel2 { relative: 1.0 1.0; to: "elm.rect.back_button"; }
1842 part { name: "elm.swallow.content";
1845 state: "default" 0.0;
1847 rel1 { relative: 0.25 0.2; to: "base"; }
1848 rel2 { relative: 0.75 0.8; to: "base"; }