[Nocontent] Layout base will resize w.r.t to naviframe content.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / layout.edc
index 729cda4..a1327c4 100644 (file)
@@ -1419,12 +1419,19 @@ group {
    alias: "elm/nocontents/base/default";
    styles{
       style { name: "nocontent_style";
-         base: "font=Tizen:style=Regular font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
+         base: "font=Tizen:style=Bold font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color="NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC" wrap=mixed ellipsis=1.0 text_class=tizen";
          tag:  "br" "\n";
          tag:  "hilight" "+ font=Tizen:style=Bold";
          tag:  "b" "+ font=Tizen:style=Bold";
          tag:  "tab" "\t";
       }
+      style { name: "nocontent_help_text";
+         base: "font=Tizen:style=Regular font_size="NOCONTENT_HELP_TEXT_BLOCK_TEXT_SIZE_INC" align=left color="NOCONTENT_HELP_TEXT_BLOCK_STYLE_COLOR_INC" wrap=mixed ellipsis=1.0 text_class=tizen";
+         tag:  "br" "\n";
+         tag:  "hilight" "+ font=Tizen:style=Regular";
+         tag:  "b" "+ font=Tizen:style=Regular";
+         tag:  "tab" "\t";
+      }
    }
    images {
       image: "00_nocontents_picture.png" COMP;
@@ -1434,24 +1441,28 @@ group {
          type: RECT;
          scale: 1;
          description { state: "default" 0.0;
-            color: NOCONTENT_BG_COLOR_INC;
+            visible: 0;
+            fixed: 1 1;
+            min: NOCONTENT_BASE_MIN_WIDTH_HEIGHT_INC;
+            rel1 {
+               relative: 0.5 0.5;
+            }
             rel2 {
-               relative: 1.0 1.0;
-               to_y: "pad_b";
+               relative: 0.5 0.5;
             }
          }
       }
       part { name: "nocontents.image";
-         scale: 1;
          description { state: "default" 0.0;
             fixed: 1 1;
             min: NOCONTENT_IMAGE_WIDTH_HEIGHT_INC;
+            align: 0.5 0.0;
             rel1 {
-               relative: 0.5 0.5;
+               relative: 0.5 0.0;
                to: "bg";
             }
             rel2 {
-               relative: 0.5 0.5;
+               relative: 0.5 0.0;
                to: "bg";
             }
             image {
@@ -1462,62 +1473,156 @@ group {
             aspect_preference: BOTH;
          }
       }
-      part { name: "middle.padding";
+      part { name: "elm.text";
+         type: TEXTBLOCK;
+         description { state: "default" 0.0;
+            min: NOCONTENT_TEXT_STYLE_BG_MIN_INC;
+            align: 0.5 1.0;
+            fixed: 0 1;
+            rel1 {
+               relative: 0.0 1.0;
+               to: "bg";
+            }
+            rel2 {
+               relative: 1.0 1.0;
+               to: "bg";
+            }
+            text {
+               style: "nocontent_style";
+               min: 0 1;
+               max: 0 1;
+            }
+         }
+      }
+      part { name: "padding_after_text";
+         mouse_events: 0;
          type: RECT;
-         scale: 1;
          description { state: "default" 0.0;
-            visible: 0;
-            min: 0 NOCONTENT_MIDDLE_PADDING_INC;
             align: 0.5 0.0;
+            min: NOCONTENT_PORTRAIT_AFTER_TEXT_PADDING_INC;
+            visible: 0;
             fixed: 0 1;
             rel1 {
                relative: 0.0 1.0;
-               to: "nocontents.image";
+               to: "elm.text";
             }
             rel2 {
                relative: 1.0 1.0;
-               to: "nocontents.image";
+               to: "elm.text";
             }
          }
+         description { state: "landscape" 0.0;
+            inherit: "default" 0.0;
+            min: NOCONTENT_LANDSCAPE_AFTER_TEXT_PADDING_INC;
+         }
       }
-      part { name: "elm.text";
+      part { name: "elm.help.text";
          type: TEXTBLOCK;
-         scale: 1;
          description { state: "default" 0.0;
-            min: NOCONTENT_TEXT_STYLE_BG_MIN_INC;
-            max: 9999 NO_CONTENT_TEXT_STYLE_BG_HEIGHT_INC;
+            align: 0.5 0.0;
+            min: NOCONTENT_PORTRAIT_HELP_TEXT_STYLE_BG_MIN_INC;
             fixed: 1 1;
             rel1 {
-               relative: 0.14 1.0;
-               to_x: "bg";
-               to_y: "middle.padding";
+               relative: 0.5 1.0;
+               to: "padding_after_text";
             }
             rel2 {
-               relative: 0.86 1.0;
-               to_x: "bg";
-               to_y: "middle.padding";
+               relative: 0.5 1.0;
+               to: "padding_after_text";
             }
-            color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
             text {
-               style: "nocontent_style";
+               style: "nocontent_help_text";
+               align: 0.0 0.5;
                min: 0 1;
                max: 0 1;
             }
          }
+         description { state: "landscape" 0.0;
+            inherit: "default" 0.0;
+            min: NOCONTENT_LANDSCAPE_HELP_TEXT_STYLE_BG_MIN_INC;
+         }
       }
-      part { name: "pad_b";
-         scale : 1;
+      part { name: "pad_after_help_text";
          mouse_events: 0;
          type: RECT;
          description { state: "default" 0.0;
-            align: 0.0 1.0;
-            min: 0 0;
             visible: 0;
+            align: 0.5 0.0;
+            min: NOCONTENT_PORTRAIT_AFTER_HELP_TEXT_PADDING_INC;
             fixed: 0 1;
-            rel1.relative: 0.0 1.0;
+            rel1 {
+               relative: 0.0 1.0;
+               to: "elm.help.text";
+            }
+            rel2 {
+               relative: 1.0 1.0;
+               to: "elm.help.text";
+            }
+         }
+         description { state: "landscape" 0.0;
+            inherit: "default" 0.0;
+            min: NOCONTENT_LANDSCAPE_AFTER_HELP_TEXT_PADDING_INC;
+         }
+      }
+      part { name: "swallow_area";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            min: NOCONTENT_PORTRAIT_SWALLOW_AREA_MIN_INC;
+            fixed: 1 1;
+            align: 0.5 0.0;
+            rel1 {
+               relative: 0.5 1.0;
+               to: "pad_after_help_text";
+            }
+            rel2 {
+               relative: 0.5 1.0;
+               to: "pad_after_help_text";
+            }
+         }
+         description { state: "landscape" 0.0;
+            inherit: "default" 0.0;
+            min: NOCONTENT_LANDSCAPE_SWALLOW_AREA_MIN_INC;
          }
       }
    }
+   programs {
+      program { name: "landscape_mode";
+         source: "elm";
+         signal: "elm,state,orient,90";
+         action: STATE_SET "landscape" 0.0;
+         target: "swallow_area";
+         target: "elm.help.text";
+         target: "padding_after_text";
+         target: "pad_after_help_text";
+      }
+      program { name: "landscape_mode2";
+         source: "elm";
+         signal: "elm,state,orient,270";
+         action: STATE_SET "landscape" 0.0;
+         target: "swallow_area";
+         target: "elm.help.text";
+         target: "padding_after_text";
+         target: "pad_after_help_text";
+      }
+      program { name: "portrait_mode";
+         source: "elm";
+         signal: "elm,state,orient,0";
+         action: STATE_SET "default" 0.0;
+         target: "swallow_area";
+         target: "elm.help.text";
+         target: "padding_after_text";
+         target: "pad_after_help_text";
+      }
+      program { name: "portrait_mode2";
+         source: "elm";
+         signal: "elm,state,orient,180";
+         action: STATE_SET "default" 0.0;
+         target: "swallow_area";
+         target: "elm.help.text";
+         target: "padding_after_text";
+         target: "pad_after_help_text";
+      }
+   }
 }
 
 group {
@@ -1593,65 +1698,54 @@ group {
 }
 
 group {
-   name: "elm/layout/nocontents/search";
-   alias: "elm/nocontents/base/search";
+   name: "elm/layout/nocontents/album";
+   alias: "elm/nocontents/base/album";
+   inherit: "elm/layout/nocontents/full";
+   images {
+      image: "00_nocontents_album.png" COMP;
+   }
    parts {
-      part { name: "bg";
-         mouse_events: 0;
-         type: RECT;
+      part { name: "nocontents.image";
          description { state: "default" 0.0;
-            visible: 1;
-            rel1 {
-               relative: 0.0 0.0;
-            }
-            rel2 {
-               relative: 1.0 1.0;
+            image {
+               normal: "00_nocontents_album.png";
             }
-            color: 0 0 0 0;
          }
       }
-      part { name: "top_padding";
-         mouse_events: 0;
+   }
+}
+
+group {
+   name: "elm/layout/nocontents/search";
+   alias: "elm/nocontents/base/search";
+   parts {
+      part { name: "bg";
          type: RECT;
          scale: 1;
          description { state: "default" 0.0;
-            min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC;
-            fixed: 0 1;
-            align: 0 0;
-            visible: 1;
-            rel1 {
-               relative: 0.0 0.0;
-            }
-            rel2 {
-               relative: 1.0 0.0;
-            }
-            color: 0 0 0 0;
+            visible: 0;
          }
       }
       part { name: "elm.text";
          mouse_events: 0;
-         type: TEXT;
+         type: TEXTBLOCK;
          scale: 1;
          description { state: "default" 0.0;
-            //min: 0 30;
             fixed: 0 1;
-            align: 0 0;
-            visible: 1;
+            align: 0.5 0.5;
+            min: NOCONTENT_TEXT_STYLE_BG_MIN_INC;
             rel1 {
-               relative: 0.0 1.0;
-               to:"top_padding";
+               relative: 0.0 0.5;
+               to:"bg";
             }
             rel2 {
-               relative: 1.0 1.0;
-               to:"top_padding";
+               relative: 1.0 0.5;
+               to:"bg";
             }
-            color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
             text {
-               font: "Tizen:style=Roman";
-               size: 30;
-               text: "";
-               align: 0.5 0.5;
-               text_class: "tizen";
+               style: "nocontent_style";
+               min: 0 1;
+               max: 0 1;
             }
          }
       }
@@ -1662,7 +1756,7 @@ group {
          description { state: "default" 0.0;
             min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC;
             fixed: 0 1;
-            align: 0 0;
+            align: 0.5 0.0;
             visible: 0;
             rel1 {
                relative: 0.0 1.0;
@@ -1679,9 +1773,8 @@ group {
          type: SWALLOW;
          scale: 1;
          description { state: "default" 0.0;
-            min: 0 0;
             fixed: 0 1;
-            align: 0 0;
+            align: 0.5 0.0;
             visible: 1;
             rel1 {
                relative: 0.0 1.0;