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/label/base/popup/default";
26 style { name: "popup_desc_style";
27 base: "font=Sans font_size=10 align=center color=#000000 text_class=label";
30 tag: "whitecolor" "+ color=#ffffff";
35 part { name: "left_top_padding";
38 description { state: "default" 0.0;
46 part { name: "right_bottom_padding";
49 description { state: "default" 0.0;
57 part { name: "elm.text";
61 description { state: "default" 0.0;
64 style: "popup_desc_style";
74 to: right_bottom_padding;
81 group { name: "elm/popup/base/default";
83 style { name: "popup_title_style";
84 base: "font=Sans font_size=15 align=center color=#ffffff wrap=mixed ellipsis=1.0";
93 description { state: "default" 0.0;
95 color: 237 237 237 255;
99 part { name: "elm.bg.title";
102 description { state: "default" 0.0;
107 color: 172 172 172 255;
117 description { state: "visible" 0.0;
118 inherit: "default" 0.0;
122 part { name: "left_pad";
125 description { state: "default" 0.0;
131 rel1.to: "elm.bg.title";
134 part { name: "right_pad";
137 description { state: "default" 0.0;
143 rel2.to: "elm.bg.title";
146 part { name: "elm.swallow.title.icon";
149 description { state: "default" 0.0;
164 description { state: "visible" 0.0;
165 inherit: "default" 0.0;
169 part { name: "elm.text.title";
172 description { state: "default" 0.0;
174 style: "popup_title_style";
178 color: 255 255 255 255;
189 description { state: "visible" 0.0;
190 inherit: "default" 0.0;
194 part { name: "elm.swallow.content";
197 description { state: "default" 0.0;
209 description { state: "show_title_area" 0.0;
210 inherit: "default" 0.0;
216 description { state: "show_action_area" 0.0;
217 inherit: "default" 0.0;
220 to: "elm.bg.action_area";
223 description { state: "show_action_title_area" 0.0;
224 inherit: "default" 0.0;
231 to: "elm.bg.action_area";
235 part { name: "elm.bg.action_area";
238 description { state: "default" 0.0;
243 color: 183 183 183 255;
250 description { state: "visible" 0.0;
251 inherit: "default" 0.0;
255 part { name: "elm.swallow.action_area";
258 description { state: "default" 0.0;
260 rel1.to: "elm.bg.action_area";
261 rel2.to: "elm.bg.action_area";
266 program { name: show_title_icon;
267 signal: "elm,state,title,icon,visible";
269 action: STATE_SET "visible" 0.0;
270 target: "elm.swallow.title.icon";
272 program { name: hide_title_icon;
273 signal: "elm,state,title,icon,hidden";
275 action: STATE_SET "default" 0.0;
276 target: "elm.swallow.title.icon";
278 program { name: show_title_text;
279 signal: "elm,state,title,text,visible";
281 action: STATE_SET "visible" 0.0;
282 target: "elm.text.title";
284 program { name: hide_title_text;
285 signal: "elm,state,title,text,hidden";
287 action: STATE_SET "default" 0.0;
288 target: "elm.text.title";
290 program { name: show_title_area;
291 signal: "elm,state,title_area,visible";
296 get_state(PART:"elm.swallow.action_area", st, 30, vl);
297 if (!strcmp(st, "visible"))
298 set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
300 set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
301 set_state(PART:"elm.bg.title", "visible", 0.0);
304 program { name: hide_title_area;
305 signal: "elm,state,title_area,hidden";
307 action: STATE_SET "default" 0.0;
311 get_state(PART:"elm.swallow.action_area", st, 30, vl);
312 if (!strcmp(st, "visible"))
313 set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
315 set_state(PART:"elm.swallow.content", "default", 0.0);
316 set_state(PART:"elm.bg.title", "default", 0.0);
319 program { name: show_action_area;
320 signal: "elm,state,action_area,visible";
325 get_state(PART:"elm.bg.title", st, 30, vl);
326 if (!strcmp(st, "visible"))
327 set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
329 set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
330 set_state(PART:"elm.bg.action_area", "visible", 0.0);
333 program { name: hide_action_area;
334 signal: "elm,state,action_area,hidden";
336 action: STATE_SET "default" 0.0;
340 get_state(PART:"elm.bg.title", st, 30, vl);
341 if (!strcmp(st, "visible"))
342 set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
344 set_state(PART:"elm.swallow.content", "default", 0.0);
345 set_state(PART:"elm.bg.action_area", "default", 0.0);
348 } /* end of programs */
351 group { name: "elm/popup/content/default";
353 part { name: "pad_t";
357 description { state: "default" 0.0;
372 part { name: "pad_l";
375 description { state: "default" 0.0;
378 rel2.relative: 0.0 1.0;
383 part { name: "pad_r";
386 description { state: "default" 0.0;
389 rel1.relative: 1.0 0.0;
394 part{ name:"elm.swallow.content";
397 description { state: "default" 0.0;
410 part { name: "pad_b";
414 description { state: "default" 0.0;
429 group { name: "elm/popup/item/default";
431 public item_state = POPUP_ITEM_STATE_ENABLED;
434 part { name: "event_blocker";
435 description { state: "default" 0.0;
441 description { state: "default" 0.0;
442 color: 240 240 240 255;
446 description { state: "clicked" 0.0;
447 color: 190 170 150 255;
450 part { name: "padding_left_top";
454 description { state: "default" 0.0;
456 rel2.relative: 0.0 0.0;
462 part { name: "padding_right_bottom";
466 description { state: "default" 0.0;
468 rel1.relative: 1.0 1.0;
474 part { name: "separator";
478 description { state: "dafault" 0.0;
479 color: 180 180 180 255;
485 part { name: "padding_icon_text";
489 description { state: "default" 0.0; //when only icon or no icon is there
493 to: "elm.swallow.content";
495 rel2.to: "elm.swallow.content";
500 description { state: "visible" 0.0; //when icon is visible
501 inherit: "default" 0.0;
504 description { state: "icononly" 0.0;
505 inherit: "default" 0.0;
508 part { name: "elm.swallow.content";
511 description { state: "default" 0.0;
516 to: "padding_left_top";
520 to_x: "padding_left_top";
521 to_y: "padding_right_bottom";
525 description { state: "visible" 0.0;
532 to: "padding_left_top";
536 to_x: "padding_left_top";
537 to_y: "padding_right_bottom";
540 aspect_preference: VERTICAL;
542 description { state: "icononly" 0.0;
547 to: "padding_left_top";
551 to: "padding_right_bottom";
554 aspect_preference: VERTICAL;
557 part { name: "elm.text";
561 description { state: "default" 0.0;
565 to_x: "padding_icon_text";
566 to_y: "padding_left_top";
570 to:"padding_right_bottom";
575 font: "Sans:style=Bold";
581 description { state: "visible" 0.0;
582 inherit: "default" 0.0;
586 description { state: "clicked" 0.0;
587 inherit: "default" 0.0;
590 color: 255 255 255 255;
592 description { state: "disabled" 0.0;
593 inherit: "default" 0.0;
594 color: 128 128 128 255;
596 description { state: "disabled_visible" 0.0;
597 inherit: "default" 0.0;
598 color: 128 128 128 255;
603 part { name: "over1";
605 ignore_flags: ON_HOLD;
606 description { state: "default" 0.0;
609 part { name: "over2";
611 description { state: "default" 0.0;
614 part { name: "disclip";
616 description { state: "default" 0.0;
619 description { state: "disabled" 0.0;
625 program { name: "item_unclick";
626 signal: "mouse,up,1";
628 action: SIGNAL_EMIT "elm,action,click" "";
630 program { name: "disable";
631 signal: "elm,state,item,disabled";
633 action: STATE_SET "disabled" 0.0;
635 after: "disable_text";
637 program { name: "enable";
638 signal: "elm,state,item,enabled";
640 action: STATE_SET "default" 0.0;
642 after: "enable_text";
644 program { name: "item_click2";
645 signal: "mouse,down,1";
650 get_state(PART:"elm.text", st, 30, vl);
651 if (!strcmp(st, "visible"))
652 set_state(PART:"elm.text", "clicked", 0.0);
653 set_state(PART:"bg", "clicked", 0.0);
656 program { name: "item_unclick2";
657 signal: "mouse,up,1";
662 get_state(PART:"elm.text", st, 30, vl);
663 if (!strcmp(st, "clicked"))
664 set_state(PART:"elm.text", "visible", 0.0);
665 set_state(PART:"bg", "default", 0.0);
668 program { name: "disable_text";
672 get_state(PART:"elm.text", st, 30, vl);
673 if (!strcmp(st, "visible"))
674 set_state(PART:"elm.text", "disabled_visible", 0.0);
676 set_state(PART:"elm.text", "disabled", 0.0);
677 set_int(item_state, POPUP_ITEM_STATE_DISABLED);
680 program { name: "enable_text";
684 get_state(PART:"elm.text", st, 30, vl);
685 if (!strcmp(st, "disabled_visible"))
686 set_state(PART:"elm.text", "visible", 0.0);
688 set_state(PART:"elm.text", "default", 0.0);
689 set_int(item_state, POPUP_ITEM_STATE_ENABLED);
692 program { name: "text_show";
693 signal: "elm,state,item,text,visible";
698 get_state(PART:"elm.swallow.content", st, 30, vl);
699 if (!strcmp(st, "icononly")) {
700 set_state(PART:"elm.swallow.content", "visible", 0.0);
701 set_state(PART:"padding_icon_text", "visible", 0.0);
703 if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED)
704 set_state(PART:"elm.text", "visible", 0.0);
706 set_state(PART:"elm.text", "disabled_visible", 0.0);
709 program { name: "text_hide";
710 signal: "elm,state,item,text,hidden";
715 get_state(PART:"elm.swallow.content", st, 30, vl);
716 if (!strcmp(st, "visible")) {
717 set_state(PART:"elm.swallow.content", "icononly", 0.0);
718 set_state(PART:"padding_icon_text", "icononly", 0.0);
720 set_state(PART:"elm.text", "default", 0.0);
723 program { name: "icon_show";
724 signal: "elm,state,item,icon,visible";
729 get_state(PART:"elm.text", st, 30, vl);
730 if (!strcmp(st, "visible")) {
731 set_state(PART:"elm.swallow.content", "visible", 0.0);
732 set_state(PART:"padding_icon_text", "visible", 0.0);
735 set_state(PART:"elm.swallow.content", "icononly", 0.0);
736 set_state(PART:"padding_icon_text", "icononly", 0.0);
740 program { name: "icon_hide";
741 signal: "elm,state,item,icon,hidden";
743 action: STATE_SET "default" 0.0;
744 target: "elm.swallow.content";
749 group { name: "elm/popup/buttons1/default";
750 data.item: "action_area_height" "140";
752 part{ name:"actionbtn1";
755 description { state: "default" 0.0;
759 rel1.relative: 0.5 0.0;
760 rel2.relative: 0.5 1.0;
766 group { name: "elm/popup/buttons2/default";
767 data.item: "action_area_height" "140";
769 part{ name:"actionbtn1";
772 description { state: "default" 0.0;
777 rel1.to: "elm.rect.pad_btn";
780 to: "elm.rect.pad_btn";
784 part { name: "elm.rect.pad_btn";
787 description { state: "default" 0.0;
792 rel1.relative: 0.5 0.0;
793 rel2.relative: 0.5 1.0;
796 part{ name:"actionbtn2";
799 description { state: "default" 0.0;
806 to: "elm.rect.pad_btn";
808 rel2.to: "elm.rect.pad_btn";
814 group { name: "elm/popup/buttons3/default";
815 data.item: "action_area_height" "140";
817 part{ name:"actionbtn1";
820 description { state: "default" 0.0;
825 rel1.to: "elm.rect.pad_btn";
828 to: "elm.rect.pad_btn";
832 part { name: "elm.rect.pad_btn";
835 description { state: "default" 0.0;
840 rel1.to: "actionbtn2";
847 part{ name:"actionbtn2";
850 description { state: "default" 0.0;
854 rel1.relative: 0.5 0.0;
855 rel2.relative: 0.5 1.0;
858 part { name: "elm.rect.pad_btn2";
861 description { state: "default" 0.0;
870 rel2.to: "actionbtn2";
873 part{ name:"actionbtn3";
876 description { state: "default" 0.0;
883 to: "elm.rect.pad_btn2";
885 rel2.to: "elm.rect.pad_btn2";
891 #undef POPUP_ITEM_STATE_ENABLED
892 #undef POPUP_ITEM_STATE_DISABLED