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;
261 rel1.to: "elm.bg.action_area";
262 rel2.to: "elm.bg.action_area";
264 description { state: "visible" 0.0;
265 inherit: "default" 0.0;
271 program { name: show_title_icon;
272 signal: "elm,state,title,icon,visible";
274 action: STATE_SET "visible" 0.0;
275 target: "elm.swallow.title.icon";
277 program { name: hide_title_icon;
278 signal: "elm,state,title,icon,hidden";
280 action: STATE_SET "default" 0.0;
281 target: "elm.swallow.title.icon";
283 program { name: show_title_text;
284 signal: "elm,state,title,text,visible";
286 action: STATE_SET "visible" 0.0;
287 target: "elm.text.title";
289 program { name: hide_title_text;
290 signal: "elm,state,title,text,hidden";
292 action: STATE_SET "default" 0.0;
293 target: "elm.text.title";
295 program { name: show_title_area;
296 signal: "elm,state,title_area,visible";
301 get_state(PART:"elm.swallow.action_area", st, 30, vl);
302 if (!strcmp(st, "visible"))
303 set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
305 set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
306 set_state(PART:"elm.bg.title", "visible", 0.0);
309 program { name: hide_title_area;
310 signal: "elm,state,title_area,hidden";
312 action: STATE_SET "default" 0.0;
316 get_state(PART:"elm.swallow.action_area", st, 30, vl);
317 if (!strcmp(st, "visible"))
318 set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
320 set_state(PART:"elm.swallow.content", "default", 0.0);
321 set_state(PART:"elm.bg.title", "default", 0.0);
324 program { name: show_action_area;
325 signal: "elm,state,action_area,visible";
330 get_state(PART:"elm.bg.title", st, 30, vl);
331 if (!strcmp(st, "visible"))
332 set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
334 set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
335 set_state(PART:"elm.bg.action_area", "visible", 0.0);
336 set_state(PART:"elm.swallow.action_area", "visible", 0.0);
339 program { name: hide_action_area;
340 signal: "elm,state,action_area,hidden";
342 action: STATE_SET "default" 0.0;
346 get_state(PART:"elm.bg.title", st, 30, vl);
347 if (!strcmp(st, "visible"))
348 set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
350 set_state(PART:"elm.swallow.content", "default", 0.0);
351 set_state(PART:"elm.bg.action_area", "default", 0.0);
352 set_state(PART:"elm.swallow.action_area", "default", 0.0);
355 } /* end of programs */
358 group { name: "elm/popup/content/default";
360 part { name: "pad_t";
364 description { state: "default" 0.0;
379 part { name: "pad_l";
382 description { state: "default" 0.0;
385 rel2.relative: 0.0 1.0;
390 part { name: "pad_r";
393 description { state: "default" 0.0;
396 rel1.relative: 1.0 0.0;
401 part{ name:"elm.swallow.content";
404 description { state: "default" 0.0;
417 part { name: "pad_b";
421 description { state: "default" 0.0;
436 group { name: "elm/popup/item/default";
438 public item_state = POPUP_ITEM_STATE_ENABLED;
441 part { name: "event_blocker";
442 description { state: "default" 0.0;
448 description { state: "default" 0.0;
449 color: 240 240 240 255;
453 description { state: "clicked" 0.0;
454 color: 190 170 150 255;
457 part { name: "padding_left_top";
461 description { state: "default" 0.0;
463 rel2.relative: 0.0 0.0;
469 part { name: "padding_right_bottom";
473 description { state: "default" 0.0;
475 rel1.relative: 1.0 1.0;
481 part { name: "separator";
485 description { state: "dafault" 0.0;
486 color: 180 180 180 255;
492 part { name: "padding_icon_text";
496 description { state: "default" 0.0; //when only icon or no icon is there
500 to: "elm.swallow.content";
502 rel2.to: "elm.swallow.content";
507 description { state: "visible" 0.0; //when icon is visible
508 inherit: "default" 0.0;
511 description { state: "icononly" 0.0;
512 inherit: "default" 0.0;
515 part { name: "elm.swallow.content";
518 description { state: "default" 0.0;
523 to: "padding_left_top";
527 to_x: "padding_left_top";
528 to_y: "padding_right_bottom";
532 description { state: "visible" 0.0;
539 to: "padding_left_top";
543 to_x: "padding_left_top";
544 to_y: "padding_right_bottom";
547 aspect_preference: VERTICAL;
549 description { state: "icononly" 0.0;
554 to: "padding_left_top";
558 to: "padding_right_bottom";
561 aspect_preference: VERTICAL;
564 part { name: "elm.text";
568 description { state: "default" 0.0;
572 to_x: "padding_icon_text";
573 to_y: "padding_left_top";
577 to:"padding_right_bottom";
582 font: "Sans:style=Bold";
588 description { state: "visible" 0.0;
589 inherit: "default" 0.0;
593 description { state: "clicked" 0.0;
594 inherit: "default" 0.0;
597 color: 255 255 255 255;
599 description { state: "disabled" 0.0;
600 inherit: "default" 0.0;
601 color: 128 128 128 255;
603 description { state: "disabled_visible" 0.0;
604 inherit: "default" 0.0;
605 color: 128 128 128 255;
610 part { name: "over1";
612 ignore_flags: ON_HOLD;
613 description { state: "default" 0.0;
616 part { name: "over2";
618 description { state: "default" 0.0;
621 part { name: "disclip";
623 description { state: "default" 0.0;
626 description { state: "disabled" 0.0;
632 program { name: "item_unclick";
633 signal: "mouse,up,1";
635 action: SIGNAL_EMIT "elm,action,click" "";
637 program { name: "disable";
638 signal: "elm,state,item,disabled";
640 action: STATE_SET "disabled" 0.0;
642 after: "disable_text";
644 program { name: "enable";
645 signal: "elm,state,item,enabled";
647 action: STATE_SET "default" 0.0;
649 after: "enable_text";
651 program { name: "item_click2";
652 signal: "mouse,down,1";
657 get_state(PART:"elm.text", st, 30, vl);
658 if (!strcmp(st, "visible"))
659 set_state(PART:"elm.text", "clicked", 0.0);
660 set_state(PART:"bg", "clicked", 0.0);
663 program { name: "item_unclick2";
664 signal: "mouse,up,1";
669 get_state(PART:"elm.text", st, 30, vl);
670 if (!strcmp(st, "clicked"))
671 set_state(PART:"elm.text", "visible", 0.0);
672 set_state(PART:"bg", "default", 0.0);
675 program { name: "disable_text";
679 get_state(PART:"elm.text", st, 30, vl);
680 if (!strcmp(st, "visible"))
681 set_state(PART:"elm.text", "disabled_visible", 0.0);
683 set_state(PART:"elm.text", "disabled", 0.0);
684 set_int(item_state, POPUP_ITEM_STATE_DISABLED);
687 program { name: "enable_text";
691 get_state(PART:"elm.text", st, 30, vl);
692 if (!strcmp(st, "disabled_visible"))
693 set_state(PART:"elm.text", "visible", 0.0);
695 set_state(PART:"elm.text", "default", 0.0);
696 set_int(item_state, POPUP_ITEM_STATE_ENABLED);
699 program { name: "text_show";
700 signal: "elm,state,item,text,visible";
705 get_state(PART:"elm.swallow.content", st, 30, vl);
706 if (!strcmp(st, "icononly")) {
707 set_state(PART:"elm.swallow.content", "visible", 0.0);
708 set_state(PART:"padding_icon_text", "visible", 0.0);
710 if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED)
711 set_state(PART:"elm.text", "visible", 0.0);
713 set_state(PART:"elm.text", "disabled_visible", 0.0);
716 program { name: "text_hide";
717 signal: "elm,state,item,text,hidden";
722 get_state(PART:"elm.swallow.content", st, 30, vl);
723 if (!strcmp(st, "visible")) {
724 set_state(PART:"elm.swallow.content", "icononly", 0.0);
725 set_state(PART:"padding_icon_text", "icononly", 0.0);
727 set_state(PART:"elm.text", "default", 0.0);
730 program { name: "icon_show";
731 signal: "elm,state,item,icon,visible";
736 get_state(PART:"elm.text", st, 30, vl);
737 if (!strcmp(st, "visible")) {
738 set_state(PART:"elm.swallow.content", "visible", 0.0);
739 set_state(PART:"padding_icon_text", "visible", 0.0);
742 set_state(PART:"elm.swallow.content", "icononly", 0.0);
743 set_state(PART:"padding_icon_text", "icononly", 0.0);
747 program { name: "icon_hide";
748 signal: "elm,state,item,icon,hidden";
750 action: STATE_SET "default" 0.0;
751 target: "elm.swallow.content";
756 group { name: "elm/popup/buttons1/default";
757 data.item: "action_area_height" "140";
759 part{ name:"actionbtn1";
762 description { state: "default" 0.0;
766 rel1.relative: 0.5 0.0;
767 rel2.relative: 0.5 1.0;
773 group { name: "elm/popup/buttons2/default";
774 data.item: "action_area_height" "140";
776 part{ name:"actionbtn1";
779 description { state: "default" 0.0;
784 rel1.to: "elm.rect.pad_btn";
787 to: "elm.rect.pad_btn";
791 part { name: "elm.rect.pad_btn";
794 description { state: "default" 0.0;
799 rel1.relative: 0.5 0.0;
800 rel2.relative: 0.5 1.0;
803 part{ name:"actionbtn2";
806 description { state: "default" 0.0;
813 to: "elm.rect.pad_btn";
815 rel2.to: "elm.rect.pad_btn";
821 group { name: "elm/popup/buttons3/default";
822 data.item: "action_area_height" "140";
824 part{ name:"actionbtn1";
827 description { state: "default" 0.0;
832 rel1.to: "elm.rect.pad_btn";
835 to: "elm.rect.pad_btn";
839 part { name: "elm.rect.pad_btn";
842 description { state: "default" 0.0;
847 rel1.to: "actionbtn2";
854 part{ name:"actionbtn2";
857 description { state: "default" 0.0;
861 rel1.relative: 0.5 0.0;
862 rel2.relative: 0.5 1.0;
865 part { name: "elm.rect.pad_btn2";
868 description { state: "default" 0.0;
877 rel2.to: "actionbtn2";
880 part{ name:"actionbtn3";
883 description { state: "default" 0.0;
890 to: "elm.rect.pad_btn2";
892 rel2.to: "elm.rect.pad_btn2";
898 #undef POPUP_ITEM_STATE_ENABLED
899 #undef POPUP_ITEM_STATE_DISABLED