Fix theme breakage exposed with updated EFL
[profile/ivi/efl-theme-tizen.git] / themes / widgets / popup.edc
index 2230ca1..f1f2946 100644 (file)
 #define POPUP_ITEM_STATE_DISABLED 1
 
 /*popup widget specific notify style style*/
+group { name: "elm/notify/center/popup";
+   parts {
+       part { name: "base";
+           type: RECT;
+           scale : 1;
+           mouse_events: 0;
+           repeat_events: 1;
+           description { state: "default" 0.0;
+               color: 0 0 0 0;
+               rel1.relative: 0.0 0.0;
+               rel2.relative: 1.0 1.0;
+           }
+       }
+      part { name: "persp";
+        type: RECT;
+        description { state: "default" 0.0;
+           min: 32 32;
+           max: 32 32;
+           align: 0.5 0.5;
+           color: 0 0 0 0;
+           visible: 1;
+           perspective {
+              zplane: -200;
+              focal: 1000;
+           }
+        }
+     }
+     part { name: "persp1";
+        type: RECT;
+        description { state: "default" 0.0;
+           min: 32 32;
+           max: 32 32;
+           align: 0.5 0.5;
+           visible: 1;
+           color: 0 0 0 0;
+           perspective {
+              zplane: 0;
+              focal: 1000;
+           }
+        }
+     }
+       part { name: "pop";
+           scale : 1;
+           mouse_events: 1;
+           description { state: "default" 0.0;
+               rel1.to: "elm.swallow.content";
+               rel2.to: "elm.swallow.content";
+               image {
+                     middle: DEFAULT;
+                     border_scale: 0;
+               }
+           }
+       }
+       part { name: "elm.swallow.content";
+           type: SWALLOW;
+           scale : 1;
+           description { state: "default" 0.0;
+               rel1.to: "base";
+               rel2.to: "base";
+               map {
+                  on: 1;
+                  backface_cull: 1;
+                  perspective: "persp";
+               }
+           }
+           description { state: "visible" 0.0;
+               rel1.to: "base";
+               rel2.to: "base";
+               map {
+                  on: 1;
+                  backface_cull: 1;
+                  perspective: "persp1";
+               }
+           }
+           description { state: "end" 0.0;
+               rel1.to: "base";
+               rel2.to: "base";
+               map {
+                  on: 0;
+               }
+           }
+       }
+   }
+   programs {
+       program { name: "show";
+           signal: "elm,action,show";
+           source: "elm";
+           action: STATE_SET "default" 0.0;
+           target: "elm.swallow.content";
+       }
+       program { name: "show_2";
+            signal: "show";
+            action: STATE_SET "visible" 0.0;
+            target: "elm.swallow.content";
+            transition: LINEAR 0.2;
+            after: "end";
+       }
+       program { name: "end";
+           action: STATE_SET "end" 0.0;
+           target: "elm.swallow.content";
+       }
+       program { name: "hide";
+           signal: "elm,action,hide";
+           source: "elm";
+           action: STATE_SET "default" 0.0;
+           target: "elm.swallow.content";
+       }
+   }
+}
+
 group { name: "elm/notify/block_events/popup";
    parts {
       part { name: "block_events";
@@ -92,10 +202,11 @@ group { name: "elm/notify/block_events/transparent";
 
 group { name: "elm/label/base/popup/default";
    alias: "elm/label/base/popup/verticalbuttonstyle";
+   alias: "elm/label/base/popup/content_expand";
    styles
      {
         style { name: "popup_desc_style";
-           base: "font=SLP:style=Roman font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=label";
+           base: "font=SLP:style=Roman font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=slp_roman wrap=mixed ellipsis=1";
            tag:  "br" "\n";
            tag:  "ps" "ps";
            tag:  "whitecolor" "+ color=#ffffff";
@@ -109,10 +220,10 @@ group { name: "elm/label/base/popup/default";
          scale: 1;
          description { state: "default" 0.0;
             min: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
+            max: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
             text {
                style: "popup_desc_style";
-               min: 0 1;
-               max: 0 1;
+               min: 0 0;
             }
          }
       }
@@ -127,7 +238,7 @@ group { name: "elm/popup/base/default";
    }
    styles {
       style { name: "popup_title_style";
-         base: "font=SLP:style=Medium font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0";
+         base: "font=SLP:style=Medium font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_medium";
          tag:  "br" "\n";
          tag:  "tab" "\t";
       }
@@ -223,6 +334,7 @@ group { name: "elm/popup/base/default";
          type: TEXTBLOCK;
          scale:1;
          description { state: "default" 0.0;
+            fixed: 1 1;
             text {
               style: "popup_title_style";
               min: 0 0;
@@ -250,6 +362,7 @@ group { name: "elm/popup/base/default";
          scale : 1;
          description { state: "default" 0.0;
             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
+            max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
             fixed: 1 0;
             rel1 {
                relative: 0.5 0.0;
@@ -630,10 +743,11 @@ group {
             align: 0.0 0.5;
             color: 0 0 0 255;
             text {
-               font: "Sans:style=Bold";
+               font: "SLP:style=Bold";
                size: 20;
                min:  0 0;
                align: 0.0 0.5;
+               text: "slp";
             }
          }
          description { state: "visible" 0.0;
@@ -892,6 +1006,7 @@ group { name: "elm/popup/base/verticalbuttonstyle";
          scale : 1;
          description { state: "default" 0.0;
             min: POPUP_BASE_VERTICAL_BUTTON_CONTENT_DEFAULT_MIN_INC;
+            max: POPUP_BASE_VERTICAL_BUTTON_CONTENT_DEFAULT_MIN_INC;
             fixed: 1 0;
             rel1 {
                relative: 0.5 0.0;
@@ -1160,6 +1275,7 @@ group { name: "elm/popup/content/menustyle";
          scale : 1;
          description { state: "default" 0.0;
             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
+            max: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
             align: 0.5 0.5;
             fixed: 1 0;
             rel1 {
@@ -1263,6 +1379,7 @@ group { name: "elm/popup/content/liststyle";
          scale : 1;
          description { state: "default" 0.0;
             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
+            max: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
             align: 0.5 0.5;
             fixed: 1 0;
             rel1 {
@@ -1350,7 +1467,7 @@ group { name: "elm/popup/base/customstyle";
    }
    styles {
       style { name: "popup_title_custom_style";
-         base: "font=SLP:style=Medium font_size="POPUP_BASE_CUSTOMSTYLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0";
+         base: "font=SLP:style=Medium font_size="POPUP_BASE_CUSTOMSTYLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_medium";
          tag:  "br" "\n";
          tag:  "tab" "\t";
       }
@@ -1456,6 +1573,7 @@ group { name: "elm/popup/base/customstyle";
          scale : 1;
          description { state: "default" 0.0;
             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_DEFAULT_MIN_INC;
+            max: POPUP_BASE_CUSTOMSTYLE_CONTENT_DEFAULT_MIN_INC;
             fixed: 1 0;
             rel1 {
                relative: 0.5 0.0;
@@ -1770,7 +1888,7 @@ group { name: "elm/popup/buttons3/default";
 
 group { name: "elm/popup/base/volumebarstyle";
    images {
-      image: "00_volumepopup_title_bg.png" COMP;
+      image: "00_popup_title_bg.png" COMP;
       image: "00_popup_bottom_bg.png" COMP;
       image: "00_popup_bg.png" COMP;
    }
@@ -1793,11 +1911,11 @@ group { name: "elm/popup/base/volumebarstyle";
          type: IMAGE;
          scale : 1;
          description { state: "default" 0.0;
-            min: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC;
+            min: POPUP_BASE_DEFAULT_TITLE_VOLUMEBAR_MIN_INC;
             fixed : 1 1;
             align: 0.5 0.0;
             visible: 0;
-            image.normal: "00_volumepopup_title_bg.png";
+            image.normal: "00_popup_title_bg.png";
             image.border: POPUP_BASE_VOLUMEBAR_STYLE_TITLE_DEFAULT_IMAGE_BORDER_INC;
             image.border_scale: 1;
             rel1 {
@@ -2103,6 +2221,7 @@ group { name: "elm/popup/content/volumebarstyle";
          scale : 1;
          description { state: "default" 0.0;
             min: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
+            max: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
             align: 0.5 0.5;
             fixed: 1 0;
             rel1 {
@@ -2308,5 +2427,374 @@ group { name: "elm/layout/popup/entrypasswordview";
       }
    }
 }
+
+group { name: "elm/popup/base/content_expand";
+   images {
+      image: "00_popup_title_bg.png" COMP;
+      image: "00_popup_bottom_bg.png" COMP;
+      image: "00_popup_bg.png" COMP;
+   }
+   parts {
+      part { name: "base";
+         type: IMAGE;
+         scale : 1;
+         description { state: "default" 0.0;
+            rel1.to_x: "elm.swallow.content";
+            rel2.to_x: "elm.swallow.content";
+            image {
+               normal: "00_popup_bg.png";
+               border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
+               border_scale: 1;
+            }
+            align: 0.0 0.0;
+         }
+      }
+      part { name: "elm.bg.title";
+         type: IMAGE;
+         scale : 1;
+         description { state: "default" 0.0;
+            min: 0 64;
+            fixed : 0 1;
+            align: 0.5 0.0;
+            visible: 0;
+            image.normal: "00_popup_title_bg.png";
+            image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC;
+            image.border_scale: 1;
+            rel1.to_x: "base";
+            rel2 {
+               relative: 1.0 0.0;
+               to_x: "base";
+            }
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+         }
+      }
+      part { name: "left_pad";
+         type: RECT;
+         scale: 1;
+         description { state: "default" 0.0;
+            min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
+            max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
+            fixed: 1 1;
+            align: 0.0 0.0;
+            visible: 0;
+            rel1.to: "elm.bg.title";
+         }
+      }
+      part { name: "right_pad";
+         type: RECT;
+         scale: 1;
+         description { state: "default" 0.0;
+            min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
+            max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
+            fixed: 1 1;
+            align: 1.0 1.0;
+            visible: 0;
+            rel2.to: "elm.bg.title";
+         }
+      }
+      part { name: "elm.swallow.title.icon";
+         type: SWALLOW;
+         scale: 1;
+         description { state: "default" 0.0;
+            min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
+            max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
+            fixed: 1 1;
+            align: 0.0 0.5;
+            rel1 {
+               to: "left_pad";
+               relative: 1.0 0.0;
+            }
+            rel2 {
+               to: "right_pad";
+               relative: 0.0 1.0;
+            }
+            visible: 0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+         }
+      }
+      part { name: "elm.text.title";
+         type: TEXTBLOCK;
+         scale:1;
+         description { state: "default" 0.0;
+            text {
+              style: "popup_title_style";
+              min: 0 0;
+              max: 0 1;
+              align: 0.5 0.0;
+            }
+            color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
+            visible:0;
+            rel1 {
+               relative: 1.0 0.0;
+               to: "left_pad";
+            }
+            rel2 {
+               relative: 0.0 1.0;
+               to: "right_pad";
+            }
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
+            max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
+            rel1.relative: 0.5 0.0;
+            rel2.relative: 0.5 1.0;
+         }
+         description { state: "show_title_area" 0.0;
+            inherit: "default" 0.0;
+            rel1 {
+               relative: 0.5 1.0;
+               to_y: "elm.bg.title";
+            }
+         }
+         description { state: "show_action_area" 0.0;
+            inherit: "default" 0.0;
+            rel2 {
+               relative: 0.5 0.0;
+               to_y: "elm.bg.action_area";
+            }
+         }
+         description { state: "show_action_title_area" 0.0;
+            inherit: "default" 0.0;
+            rel1 {
+               relative: 0.5 1.0;
+               to_y: "elm.bg.title";
+            }
+            rel2 {
+               relative: 0.5 0.0;
+               to_y: "elm.bg.action_area";
+            }
+         }
+      }
+      part { name: "elm.bg.action_area";
+         type: IMAGE;
+         scale : 1;
+         description { state: "default" 0.0;
+            min: 0 96;
+            fixed : 0 1;
+            align: 0.5 1.0;
+            visible: 0;
+            image.normal: "00_popup_bottom_bg.png";
+            image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
+            image.border_scale: 1;
+            rel1 {
+               relative: 0.0 1.0;
+               to_x: "base";
+            }
+            rel2.to_x: "base";
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+         }
+      }
+      part { name: "elm.swallow.action_area";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            rel1.to: "elm.bg.action_area";
+            rel2.to: "elm.bg.action_area";
+         }
+      }
+   }
+   programs {
+      program { name: show_title_icon;
+         signal: "elm,state,title,icon,visible";
+         source: "elm";
+         action: STATE_SET "visible" 0.0;
+         target: "elm.swallow.title.icon";
+      }
+      program { name: hide_title_icon;
+         signal: "elm,state,title,icon,hidden";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         target: "elm.swallow.title.icon";
+      }
+      program { name: show_title_text;
+         signal: "elm,state,title,text,visible";
+         source: "elm";
+         action: STATE_SET "visible" 0.0;
+         target: "elm.text.title";
+      }
+      program { name: hide_title_text;
+         signal: "elm,state,title,text,hidden";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         target: "elm.text.title";
+      }
+      program { name: show_title_area;
+         signal: "elm,state,title_area,visible";
+         source: "elm";
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.swallow.action_area", st, 30, vl);
+            if (!strcmp(st, "visible"))
+              set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
+            else
+              set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
+            set_state(PART:"elm.bg.title", "visible", 0.0);
+         }
+      }
+      program { name: hide_title_area;
+         signal: "elm,state,title_area,hidden";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.swallow.action_area", st, 30, vl);
+            if (!strcmp(st, "visible"))
+              set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
+            else
+              set_state(PART:"elm.swallow.content", "default", 0.0);
+            set_state(PART:"elm.bg.title", "default", 0.0);
+         }
+      }
+      program { name: show_action_area;
+         signal: "elm,state,action_area,visible";
+         source: "elm";
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.bg.title", st, 30, vl);
+            if (!strcmp(st, "visible"))
+              set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
+            else
+              set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
+            set_state(PART:"elm.bg.action_area", "visible", 0.0);
+         }
+      }
+      program { name: hide_action_area;
+         signal: "elm,state,action_area,hidden";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.bg.title", st, 30, vl);
+            if (!strcmp(st, "visible"))
+              set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
+            else
+              set_state(PART:"elm.swallow.content", "default", 0.0);
+            set_state(PART:"elm.bg.action_area", "default", 0.0);
+         }
+      }
+   }
+}
+
+group { name: "elm/popup/buttons1/content_expand";
+   data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
+   parts{
+      part{ name:"actionbtn1";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            rel1.relative: 0.2 0.1;
+            rel2.relative: 0.8 0.9;
+         }
+      }
+   }
+}
+
+group { name: "elm/popup/buttons2/content_expand";
+   data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
+   parts{
+      part{ name:"actionbtn1";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            rel1.relative: 0.1 0.1;
+            rel2.relative: 0.45 0.9;
+         }
+      }
+      part{ name:"actionbtn2";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            rel1.relative: 0.55 0.1;
+            rel2.relative: 0.9 0.9;
+         }
+      }
+   }
+}
+
+group { name: "elm/popup/buttons3/content_expand";
+   data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
+   parts{
+      part{ name:"actionbtn1";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            rel1.relative: 0.05 0.1;
+            rel2.relative: 0.3 0.9;
+         }
+      }
+      part{ name:"actionbtn2";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            rel1.relative: 0.375 0.1;
+            rel2.relative: 0.625 0.9;
+         }
+      }
+      part{ name:"actionbtn3";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            rel1.relative: 0.7 0.1;
+            rel2.relative: 0.95 0.9;
+         }
+      }
+   }
+}
+
+group { name: "elm/popup/item/content_expand";
+   inherit: "elm/popup/item/default";
+   parts {
+      part { name: "bg";
+         mouse_events: 0;
+         type: RECT;
+         description { state: "default" 0.0;
+            color: 240 240 240 255;
+            min: 620 71;
+            align: 0.5 0.0;
+         }
+         description { state: "clicked" 0.0;
+            color: 190 170 150 255;
+         }
+      }
+   }
+}
+
+group { name: "elm/popup/content/content_expand";
+   parts{
+      part{ name:"elm.swallow.content";
+         type: SWALLOW;
+         scale : 1;
+         description { state: "default" 0.0;
+         }
+      }
+   }
+}
+
 #undef POPUP_ITEM_STATE_ENABLED
 #undef POPUP_ITEM_STATE_DISABLED