summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2017-08-23 15:50:18 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-28 17:15:42 +0900
commitd3a14d08b09a2200b9a85c7ad4d93914a14f6de2 (patch)
tree4c6930d77f269495fb1104188c38239a577fe555 /data
parentb38ad0971cb3bf8d84fcfcce51fdc1cca73c460f (diff)
efl_ui_popup_alert: add Efl.Ui.Popup.Alert class
Summary: Add initial code for Efl.Ui.Popup.Alert class. It supports setting title and buttons. Test Plan: 1. run elementary_test -to efluipopupalert Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun Differential Revision: https://phab.enlightenment.org/D5108
Diffstat (limited to 'data')
-rw-r--r--data/elementary/objects/test.edc32
-rw-r--r--data/elementary/themes/edc/elm/popup.edc163
2 files changed, 195 insertions, 0 deletions
diff --git a/data/elementary/objects/test.edc b/data/elementary/objects/test.edc
index 9e95ffd8be..834bea4e27 100644
--- a/data/elementary/objects/test.edc
+++ b/data/elementary/objects/test.edc
@@ -901,4 +901,36 @@ collections {
901 901
902 } 902 }
903 } 903 }
904 group { "efl_ui_popup_scroll_content";
905 parts {
906 rect { "base";
907 desc { "default";
908 min: 200 200;
909 color: 255 0 0 255;
910 }
911 }
912 rect { "top";
913 desc { "default";
914 fixed: 0 1;
915 min: 100 20;
916 color: 255 255 0 255;
917 rel1.to: "base";
918 rel2.to: "base";
919 rel2.relative: 1.0 0.0;
920 align: 0.5 0;
921 }
922 }
923 rect { "bottom";
924 desc { "default";
925 fixed: 0 1;
926 min: 100 20;
927 color: 255 255 0 255;
928 rel1.to: "base";
929 rel2.to: "base";
930 rel1.relative: 0.0 1.0;
931 align: 0.5 1.0;
932 }
933 }
934 }
935 }
904} 936}
diff --git a/data/elementary/themes/edc/elm/popup.edc b/data/elementary/themes/edc/elm/popup.edc
index 7fb127b812..cb534a837a 100644
--- a/data/elementary/themes/edc/elm/popup.edc
+++ b/data/elementary/themes/edc/elm/popup.edc
@@ -141,6 +141,14 @@ group { name: "elm/label/base/popup/default";
141 tag: "whitecolor" "+ color=#fff"; 141 tag: "whitecolor" "+ color=#fff";
142 tag: "tab" "\t"; 142 tag: "tab" "\t";
143 } 143 }
144 style { name: "popup_title_style_ellipsis";
145 base: "font="FNBD" font_size=10 text_class=label align=center color=#fff color_class=popup_title_text style=shadow,bottom shadow_color=#00000080 ellipsis=1.0 wrap=mixed";
146 tag: "br" "\n";
147 tag: "hilight" "+ font="FNBD" text_class=label_light";
148 tag: "b" "+ font="FNBD" text_class=label_light";
149 tag: "whitecolor" "+ color=#fff";
150 tag: "tab" "\t";
151 }
144 } 152 }
145 parts { 153 parts {
146 part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; 154 part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0;
@@ -533,6 +541,91 @@ group { "elm/popup/base/view";
533 } 541 }
534} 542}
535 543
544group { "elm/popup/base/alert";
545 images.image: "rounded_square.png" COMP;
546 parts {
547 image { "bg";
548 desc { "default";
549 min: 100 100;
550 image.border: 15 15 15 15;
551 image.normal: "rounded_square.png";
552 }
553 }
554 spacer { "base";
555 desc { "default";
556 rel.to: "bg";
557 rel1.offset: 10 10;
558 rel2.offset: -11 -11;
559 }
560 }
561 rect { "title_bg";
562 desc { "default";
563 fixed: 0 1;
564 min: 0 0;
565 rel.to: "base";
566 rel2.relative: 1.0 0.0;
567 align: 0.5 0.0;
568 color: 0 0 0 0;
569 }
570 desc { "title_visible";
571 inherit: "default";
572 min: 0 20;
573 }
574 }
575 textblock { "elm.text.title";
576 scale;
577 desc { "default";
578 fixed: 1 1;
579 text {
580 style: "popup_title_style_ellipsis";
581 }
582 rel.to: "title_bg";
583 hid;
584 }
585 desc { "title_visible";
586 inherit: "default";
587 vis;
588 }
589 }
590 swallow { "buttons";
591 desc { "default";
592 fixed: 0 1;
593 rel.to: "base";
594 rel1.relative: 0.0 1.0;
595 align: 0.5 1.0;
596 min: 0 0;
597 }
598 desc { "button_visible";
599 inherit: "default";
600 min: 0 30;
601 }
602 }
603 swallow { "elm.swallow.content";
604 desc { "default";
605 rel1.to_x: "base";
606 rel1.to_y: "title_bg";
607 rel2.to_x: "base";
608 rel2.to_y: "buttons";
609 rel1.relative: 0.0 1.0;
610 rel2.relative: 1.0 0.0;
611 }
612 }
613 }
614 programs {
615 program {
616 signal: "elm,title,show"; source: "elm";
617 action: STATE_SET "title_visible" 0.0;
618 target: "title_bg";
619 target: "elm.text.title";
620 }
621 program {
622 signal: "elm,buttons,show"; source: "elm";
623 action: STATE_SET "button_visible" 0.0;
624 target: "buttons";
625 }
626 }
627}
628
536group { "elm/popup/base/event_bg"; 629group { "elm/popup/base/event_bg";
537 parts { 630 parts {
538 rect { "base"; 631 rect { "base";
@@ -581,3 +674,73 @@ group { "elm/popup/base/event_bg";
581 } 674 }
582 } 675 }
583} 676}
677
678group { "elm/popup/base/button1";
679 parts {
680 swallow { "elm.swallow.button1";
681 }
682 }
683}
684
685group { "elm/popup/base/button2";
686 parts {
687 spacer { "div1";
688 desc { "default";
689 rel1.relative: 0.5 0.5;
690 rel2.relative: 0.5 0.5;
691 min: 5 5;
692 }
693 }
694 swallow { "elm.swallow.button1";
695 desc { "default";
696 rel2.to_x: "div1";
697 rel2.relative: 0.0 1.0;
698 }
699 }
700 swallow { "elm.swallow.button2";
701 desc { "default";
702 rel1.to_x: "div1";
703 rel1.relative: 1.0 0.0;
704 }
705 }
706 }
707}
708
709group { "elm/popup/base/button3";
710 parts {
711 spacer { "div1";
712 desc { "default";
713 rel1.relative: 0.333 0.5;
714 rel2.relative: 0.333 0.5;
715 min: 5 5;
716 }
717 }
718 spacer { "div2";
719 desc { "default";
720 rel1.relative: 0.666 0.5;
721 rel2.relative: 0.666 0.5;
722 min: 5 5;
723 }
724 }
725 swallow { "elm.swallow.button1";
726 desc { "default";
727 rel2.to_x: "div1";
728 rel2.relative: 0.0 1.0;
729 }
730 }
731 swallow { "elm.swallow.button2";
732 desc { "default";
733 rel1.to_x: "div1";
734 rel2.to_x: "div2";
735 rel1.relative: 1.0 0.0;
736 rel2.relative: 0.0 1.0;
737 }
738 }
739 swallow { "elm.swallow.button3";
740 desc { "default";
741 rel1.to_x: "div2";
742 rel1.relative: 1.0 0.0;
743 }
744 }
745 }
746}