Fix theme breakage exposed with updated EFL
[profile/ivi/efl-theme-tizen.git] / themes / widgets / popup.edc
index 2d88144..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 {
@@ -2429,7 +2548,8 @@ group { name: "elm/popup/base/content_expand";
          type: SWALLOW;
          scale : 1;
          description { state: "default" 0.0;
-            fixed: 1 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;
          }
@@ -2649,9 +2769,6 @@ group { name: "elm/popup/buttons3/content_expand";
 
 group { name: "elm/popup/item/content_expand";
    inherit: "elm/popup/item/default";
-   script {
-      public item_state = POPUP_ITEM_STATE_ENABLED;
-   }
    parts {
       part { name: "bg";
          mouse_events: 0;
@@ -2668,5 +2785,16 @@ group { name: "elm/popup/item/content_expand";
    }
 }
 
+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