1 #define POPUP_ITEM_STATE_ENABLED 0
2 #define POPUP_ITEM_STATE_DISABLED 1
4 /*popup widget specific notify style style*/
5 group { name: "elm/notify/block_events/popup";
7 part { name: "block_events";
9 description { state: "default" 0.0;
15 program { name: "block_clicked";
16 signal: "mouse,clicked,1";
17 source: "block_events";
18 action: SIGNAL_EMIT "elm,action,click" "elm";
23 group { name: "elm/notify/block_events/transparent";
25 part { name: "block_events";
27 description { state: "default" 0.0;
30 description { state: "clicked" 0.0;
36 program { name: "block_clicked";
37 signal: "mouse,clicked,1";
38 source: "block_events";
39 action: SIGNAL_EMIT "elm,action,click" "elm";
40 after: "deeper_block_color";
43 name: "deeper_block_color";
44 action: STATE_SET "clicked" 0.0;
45 target: "block_events";
46 transition: LINEAR 0.2;
47 after: "default_block_color";
50 name: "default_block_color";
51 action: STATE_SET "default" 0.0;
52 target: "block_events";
53 transition: LINEAR 0.2;
58 group { name: "elm/label/base/popup/default";
61 style { name: "popup_desc_style";
62 base: "font=Sans font_size=10 align=center color=#000000 text_class=label";
65 tag: "whitecolor" "+ color=#ffffff";
70 part { name: "left_top_padding";
73 description { state: "default" 0.0;
81 part { name: "right_bottom_padding";
84 description { state: "default" 0.0;
92 part { name: "elm.text";
96 description { state: "default" 0.0;
99 style: "popup_desc_style";
105 to: left_top_padding;
109 to: right_bottom_padding;
116 group { name: "elm/popup/base/default";
118 style { name: "popup_title_style";
119 base: "font=Sans font_size=15 align=center color=#ffffff wrap=mixed ellipsis=1.0";
128 description { state: "default" 0.0;
130 color: 237 237 237 255;
134 part { name: "elm.bg.title";
137 description { state: "default" 0.0;
142 color: 172 172 172 255;
152 description { state: "visible" 0.0;
153 inherit: "default" 0.0;
157 part { name: "left_pad";
160 description { state: "default" 0.0;
166 rel1.to: "elm.bg.title";
169 part { name: "right_pad";
172 description { state: "default" 0.0;
178 rel2.to: "elm.bg.title";
181 part { name: "elm.swallow.title.icon";
184 description { state: "default" 0.0;
199 description { state: "visible" 0.0;
200 inherit: "default" 0.0;
204 part { name: "elm.text.title";
207 description { state: "default" 0.0;
210 style: "popup_title_style";
214 color: 255 255 255 255;
225 description { state: "visible" 0.0;
226 inherit: "default" 0.0;
230 part { name: "elm.swallow.content";
233 description { state: "default" 0.0;
245 description { state: "show_title_area" 0.0;
246 inherit: "default" 0.0;
252 description { state: "show_action_area" 0.0;
253 inherit: "default" 0.0;
256 to: "elm.bg.action_area";
259 description { state: "show_action_title_area" 0.0;
260 inherit: "default" 0.0;
267 to: "elm.bg.action_area";
271 part { name: "elm.bg.action_area";
274 description { state: "default" 0.0;
279 color: 183 183 183 255;
286 description { state: "visible" 0.0;
287 inherit: "default" 0.0;
291 part { name: "elm.swallow.action_area";
294 description { state: "default" 0.0;
296 rel1.to: "elm.bg.action_area";
297 rel2.to: "elm.bg.action_area";
302 program { name: show_title_icon;
303 signal: "elm,state,title,icon,visible";
305 action: STATE_SET "visible" 0.0;
306 target: "elm.swallow.title.icon";
308 program { name: hide_title_icon;
309 signal: "elm,state,title,icon,hidden";
311 action: STATE_SET "default" 0.0;
312 target: "elm.swallow.title.icon";
314 program { name: show_title_text;
315 signal: "elm,state,title,text,visible";
317 action: STATE_SET "visible" 0.0;
318 target: "elm.text.title";
320 program { name: hide_title_text;
321 signal: "elm,state,title,text,hidden";
323 action: STATE_SET "default" 0.0;
324 target: "elm.text.title";
326 program { name: show_title_area;
327 signal: "elm,state,title_area,visible";
332 get_state(PART:"elm.swallow.action_area", st, 30, vl);
333 if (!strcmp(st, "visible"))
334 set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
336 set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
337 set_state(PART:"elm.bg.title", "visible", 0.0);
340 program { name: hide_title_area;
341 signal: "elm,state,title_area,hidden";
343 action: STATE_SET "default" 0.0;
347 get_state(PART:"elm.swallow.action_area", st, 30, vl);
348 if (!strcmp(st, "visible"))
349 set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
351 set_state(PART:"elm.swallow.content", "default", 0.0);
352 set_state(PART:"elm.bg.title", "default", 0.0);
355 program { name: show_action_area;
356 signal: "elm,state,action_area,visible";
361 get_state(PART:"elm.bg.title", st, 30, vl);
362 if (!strcmp(st, "visible"))
363 set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
365 set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
366 set_state(PART:"elm.bg.action_area", "visible", 0.0);
369 program { name: hide_action_area;
370 signal: "elm,state,action_area,hidden";
372 action: STATE_SET "default" 0.0;
376 get_state(PART:"elm.bg.title", st, 30, vl);
377 if (!strcmp(st, "visible"))
378 set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
380 set_state(PART:"elm.swallow.content", "default", 0.0);
381 set_state(PART:"elm.bg.action_area", "default", 0.0);
384 } /* end of programs */
387 group { name: "elm/popup/content/default";
389 part { name: "pad_t";
393 description { state: "default" 0.0;
408 part { name: "pad_l";
411 description { state: "default" 0.0;
414 rel2.relative: 0.0 1.0;
419 part { name: "pad_r";
422 description { state: "default" 0.0;
425 rel1.relative: 1.0 0.0;
430 part{ name:"elm.swallow.content";
433 description { state: "default" 0.0;
446 part { name: "pad_b";
450 description { state: "default" 0.0;
465 group { name: "elm/popup/item/default";
467 public item_state = POPUP_ITEM_STATE_ENABLED;
470 part { name: "event_blocker";
472 description { state: "default" 0.0;
479 description { state: "default" 0.0;
480 color: 240 240 240 255;
484 description { state: "clicked" 0.0;
485 color: 190 170 150 255;
488 part { name: "padding_left_top";
492 description { state: "default" 0.0;
494 rel2.relative: 0.0 0.0;
500 part { name: "padding_right_bottom";
504 description { state: "default" 0.0;
506 rel1.relative: 1.0 1.0;
512 part { name: "separator";
516 description { state: "dafault" 0.0;
517 color: 180 180 180 255;
523 part { name: "padding_icon_text";
527 description { state: "default" 0.0; //when only icon or no icon is there
531 to: "elm.swallow.content";
533 rel2.to: "elm.swallow.content";
538 description { state: "visible" 0.0; //when icon is visible
539 inherit: "default" 0.0;
542 description { state: "icononly" 0.0;
543 inherit: "default" 0.0;
546 part { name: "elm.swallow.content";
549 description { state: "default" 0.0;
554 to: "padding_left_top";
558 to_x: "padding_left_top";
559 to_y: "padding_right_bottom";
563 description { state: "visible" 0.0;
570 to: "padding_left_top";
574 to_x: "padding_left_top";
575 to_y: "padding_right_bottom";
578 aspect_preference: VERTICAL;
580 description { state: "icononly" 0.0;
585 to: "padding_left_top";
589 to: "padding_right_bottom";
592 aspect_preference: VERTICAL;
595 part { name: "elm.text";
599 description { state: "default" 0.0;
603 to_x: "padding_icon_text";
604 to_y: "padding_left_top";
608 to:"padding_right_bottom";
613 font: "Sans:style=Bold";
619 description { state: "visible" 0.0;
620 inherit: "default" 0.0;
624 description { state: "clicked" 0.0;
625 inherit: "default" 0.0;
628 color: 255 255 255 255;
630 description { state: "disabled" 0.0;
631 inherit: "default" 0.0;
632 color: 128 128 128 255;
634 description { state: "disabled_visible" 0.0;
635 inherit: "default" 0.0;
636 color: 128 128 128 255;
641 part { name: "over1";
644 ignore_flags: ON_HOLD;
645 description { state: "default" 0.0;
649 part { name: "over2";
652 description { state: "default" 0.0;
656 part { name: "disclip";
658 description { state: "default" 0.0;
661 description { state: "disabled" 0.0;
667 program { name: "item_unclick";
668 signal: "mouse,up,1";
670 action: SIGNAL_EMIT "elm,action,click" "";
672 program { name: "disable";
673 signal: "elm,state,item,disabled";
675 action: STATE_SET "disabled" 0.0;
677 after: "disable_text";
679 program { name: "enable";
680 signal: "elm,state,item,enabled";
682 action: STATE_SET "default" 0.0;
684 after: "enable_text";
686 program { name: "item_click2";
687 signal: "mouse,down,1";
692 get_state(PART:"elm.text", st, 30, vl);
693 if (!strcmp(st, "visible"))
694 set_state(PART:"elm.text", "clicked", 0.0);
695 set_state(PART:"bg", "clicked", 0.0);
698 program { name: "item_unclick2";
699 signal: "mouse,up,1";
704 get_state(PART:"elm.text", st, 30, vl);
705 if (!strcmp(st, "clicked"))
706 set_state(PART:"elm.text", "visible", 0.0);
707 set_state(PART:"bg", "default", 0.0);
710 program { name: "disable_text";
714 get_state(PART:"elm.text", st, 30, vl);
715 if (!strcmp(st, "visible"))
716 set_state(PART:"elm.text", "disabled_visible", 0.0);
718 set_state(PART:"elm.text", "disabled", 0.0);
719 set_int(item_state, POPUP_ITEM_STATE_DISABLED);
722 program { name: "enable_text";
726 get_state(PART:"elm.text", st, 30, vl);
727 if (!strcmp(st, "disabled_visible"))
728 set_state(PART:"elm.text", "visible", 0.0);
730 set_state(PART:"elm.text", "default", 0.0);
731 set_int(item_state, POPUP_ITEM_STATE_ENABLED);
734 program { name: "text_show";
735 signal: "elm,state,item,text,visible";
740 get_state(PART:"elm.swallow.content", st, 30, vl);
741 if (!strcmp(st, "icononly")) {
742 set_state(PART:"elm.swallow.content", "visible", 0.0);
743 set_state(PART:"padding_icon_text", "visible", 0.0);
745 if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED)
746 set_state(PART:"elm.text", "visible", 0.0);
748 set_state(PART:"elm.text", "disabled_visible", 0.0);
751 program { name: "text_hide";
752 signal: "elm,state,item,text,hidden";
757 get_state(PART:"elm.swallow.content", st, 30, vl);
758 if (!strcmp(st, "visible")) {
759 set_state(PART:"elm.swallow.content", "icononly", 0.0);
760 set_state(PART:"padding_icon_text", "icononly", 0.0);
762 set_state(PART:"elm.text", "default", 0.0);
765 program { name: "icon_show";
766 signal: "elm,state,item,icon,visible";
771 get_state(PART:"elm.text", st, 30, vl);
772 if (!strcmp(st, "visible")) {
773 set_state(PART:"elm.swallow.content", "visible", 0.0);
774 set_state(PART:"padding_icon_text", "visible", 0.0);
777 set_state(PART:"elm.swallow.content", "icononly", 0.0);
778 set_state(PART:"padding_icon_text", "icononly", 0.0);
782 program { name: "icon_hide";
783 signal: "elm,state,item,icon,hidden";
785 action: STATE_SET "default" 0.0;
786 target: "elm.swallow.content";
791 group { name: "elm/popup/buttons1/default";
792 data.item: "action_area_height" "140";
794 part{ name:"actionbtn1";
797 description { state: "default" 0.0;
801 rel1.relative: 0.5 0.0;
802 rel2.relative: 0.5 1.0;
808 group { name: "elm/popup/buttons2/default";
809 data.item: "action_area_height" "140";
811 part{ name:"actionbtn1";
814 description { state: "default" 0.0;
819 rel1.to: "elm.rect.pad_btn";
822 to: "elm.rect.pad_btn";
826 part { name: "elm.rect.pad_btn";
829 description { state: "default" 0.0;
834 rel1.relative: 0.5 0.0;
835 rel2.relative: 0.5 1.0;
838 part{ name:"actionbtn2";
841 description { state: "default" 0.0;
848 to: "elm.rect.pad_btn";
850 rel2.to: "elm.rect.pad_btn";
856 group { name: "elm/popup/buttons3/default";
857 data.item: "action_area_height" "140";
859 part{ name:"actionbtn1";
862 description { state: "default" 0.0;
867 rel1.to: "elm.rect.pad_btn";
870 to: "elm.rect.pad_btn";
874 part { name: "elm.rect.pad_btn";
877 description { state: "default" 0.0;
882 rel1.to: "actionbtn2";
889 part{ name:"actionbtn2";
892 description { state: "default" 0.0;
896 rel1.relative: 0.5 0.0;
897 rel2.relative: 0.5 1.0;
900 part { name: "elm.rect.pad_btn2";
903 description { state: "default" 0.0;
912 rel2.to: "actionbtn2";
915 part{ name:"actionbtn3";
918 description { state: "default" 0.0;
925 to: "elm.rect.pad_btn2";
927 rel2.to: "elm.rect.pad_btn2";
933 #undef POPUP_ITEM_STATE_ENABLED
934 #undef POPUP_ITEM_STATE_DISABLED