[NoContents] Multiline ellipsis support added.
authorPrince Kr Dubey <prince.dubey@samsung.com>
Tue, 20 Dec 2011 15:23:07 +0000 (20:53 +0530)
committerPrince Kr Dubey <prince.dubey@samsung.com>
Fri, 23 Dec 2011 08:56:33 +0000 (14:26 +0530)
themes/widgets/nocontents.edc

index cbf0c1e..7e36019 100644 (file)
@@ -20,9 +20,7 @@
       alias: "elm/nocontents/base/full";
       styles{
          style { name: "nocontent_style";
-            base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" \
-            align=center \
-            color=#ffffff wrap=char";
+            base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0";
             tag:  "br" "\n";
             tag:  "hilight" "+ font=SLP:style=Bold";
             tag:  "b" "+ font=SLP:style=Bold";
       parts {
          part { name: "bg";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 1;
-               rel1 { relative: 0.0 0.0;}
-               rel2 { relative: 1.0 1.0;}
+               min: 200 200;
+               rel1 {
+                  relative: 0.0 0.0;
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+               }
                color: NOCONTENT_BG_COLOR_INC;
             }
          }
             description { state: "default" 0.0;
                visible: 1;
                align: 0.5 0.0;
-               rel1 { relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; to: "bg";}
-               rel2 { relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; to: "bg";}
+               rel1 {
+                  relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC;
+                  to: "bg";
+               }
+               rel2 {
+                  relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC;
+                  to: "bg";
+               }
                image {
                   normal: "00_winset_NoContents_image.png";
                   border: 1 1 1 1;
          }
          part { name: "middle.padding";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 0;
                min: 1 NOCONTENT_MIDDLE_PADDING_INC;
                max: 1 NOCONTENT_MIDDLE_PADDING_INC;
                align: 0.5 0.0;
-               rel1 { relative: 0.0 1.0; to_y: "nocontents.image";}
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_y: "nocontents.image";
+               }
             }
          }
          part { name: "elm.text";
             type: TEXTBLOCK;
-            scale: 1;
             description { state: "default" 0.0;
-               //min: 0 29;
+               min: 0 80;
                fixed: 0 1;
-               align: 0.5 0.0;
+               align: 0.5 0.5;
                visible: 1;
-               rel1 { relative: 0.0 1.0; to_y: "middle.padding";}
-               rel2 { relative: 1.0 0.605; to:"bg";}
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "bg";
+                  to_y: "middle.padding";
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  to_x: "bg";
+                  to_y: "middle.padding";
+               }
                color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
                text {
                   style: "nocontent_style";
-                  min: 1 0;
+                  align: 0.5 0.5;
+                  min: 0 0;
+                  max: 0 1;
                }
             }
          }
       parts {
          part { name: "bg";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 1;
+               min: 200 200;
                rel1 {
                   relative: 0.0 0.0;
                }
          }
          part { name: "middle.padding";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 0;
                min: 1 NOCONTENT_MIDDLE_PADDING_INC;
          }
          part { name: "elm.text";
             type: TEXTBLOCK;
-            scale: 1;
             description { state: "default" 0.0;
+               min: 0 80;
                fixed: 0 1;
-               align: 0.5 0.0;
+               align: 0.5 0.5;
                visible: 1;
                rel1 {
                   relative: 0.0 1.0;
+                  to_x: "bg";
                   to_y: "middle.padding";
                }
                rel2 {
-                  relative: 1.0 0.605;
-                  to:"bg";
+                  relative: 1.0 1.0;
+                  to_x: "bg";
+                  to_y: "middle.padding";
                }
                color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
                text {
                   style: "nocontent_style";
-                  min: 1 0;
+                  align: 0.5 0.5;
+                  min: 0 0;
+                  max: 0 1;
                }
             }
          }
       parts {
          part { name: "bg";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 1;
+               min: 200 200;
                rel1 {
                   relative: 0.0 0.0;
                }
          }
          part { name: "middle.padding";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 0;
                min: 1 NOCONTENT_MIDDLE_PADDING_INC;
          }
          part { name: "elm.text";
             type: TEXTBLOCK;
-            scale: 1;
             description { state: "default" 0.0;
+               min: 0 80;
                fixed: 0 1;
-               align: 0.5 0.0;
+               align: 0.5 0.5;
                visible: 1;
                rel1 {
                   relative: 0.0 1.0;
+                  to_x: "bg";
                   to_y: "middle.padding";
                }
                rel2 {
-                  relative: 1.0 0.605;
-                  to:"bg";
+                  relative: 1.0 1.0;
+                  to_x: "bg";
+                  to_y: "middle.padding";
                }
                color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
                text {
                   style: "nocontent_style";
-                  min: 1 0;
+                  align: 0.5 0.5;
+                  min: 0 0;
+                  max: 0 1;
                }
             }
          }
       parts {
          part { name: "bg";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 1;
+               min: 200 200;
                rel1 {
                   relative: 0.0 0.0;
                }
          }
          part { name: "middle.padding";
             type: RECT;
+            scale: 1;
             description { state: "default" 0.0;
                visible: 0;
                min: 1 NOCONTENT_MIDDLE_PADDING_INC;
          }
          part { name: "elm.text";
             type: TEXTBLOCK;
-            scale: 1;
             description { state: "default" 0.0;
+               min: 0 80;
                fixed: 0 1;
-               align: 0.5 0.0;
+               align: 0.5 0.5;
                visible: 1;
                rel1 {
                   relative: 0.0 1.0;
+                  to_x: "bg";
                   to_y: "middle.padding";
                }
                rel2 {
-                  relative: 1.0 0.605;
-                  to:"bg";
+                  relative: 1.0 1.0;
+                  to_x: "bg";
+                  to_y: "middle.padding";
                }
                color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
                text {
                   style: "nocontent_style";
-                  min: 1 0;
+                  align: 0.5 0.5;
+                  min: 0 0;
+                  max: 0 1;
                }
             }
          }