add padding before the photo grid or layout of no content 47/47647/1
authorSoohye Shin <soohye.shin@samsung.com>
Mon, 7 Sep 2015 11:53:52 +0000 (20:53 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Mon, 7 Sep 2015 11:56:40 +0000 (20:56 +0900)
Change-Id: I1818407148469945d53f79ba85f9e9d730d215e5
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
edje/view/photo.edc
include/defs.h
src/view/view_photo.c

index e3953d2..bdf7c10 100644 (file)
@@ -62,7 +62,7 @@ group {
                        }
                }
                part {
-                       name, "pad.list.up";
+                       name, "pad.list";
                        type, RECT;
                        scale, 1;
                        description {
@@ -70,46 +70,44 @@ group {
                                rel1.to, "bg";
                                rel2 {
                                        to, "bg";
-                                       relative, 1.0 0.0;
+                                       relative, 0.0 0.0;
                                }
-                               align, 0.5 0.0;
-                               fixed, 0 1;
-                               min, 0 196;
+                               align, 0.0 0.0;
+                               fixed, 1 1;
+                               min, 62 196;
                                visible, 0;
                        }
                }
                part {
-                       name, "pad.list.down";
-                       type, RECT;
+                       name, PART_PHOTO_LIST;
+                       type, SWALLOW;
                        scale, 1;
                        description {
                                state, "default" 0.0;
                                rel1 {
-                                       to, "bg";
-                                       relative, 0.0 1.0;
+                                       to, "pad.list";
+                                       relative, 1.0 1.0;
                                }
-                               rel2.to, "bg";
-                               fixed, 0 1;
-                               min, 0 148;
-                               align, 0.5 1.0;
-                               visible, 0;
+                               rel2.to, "pad.list";
+                               align, 0.0 0.0;
+                               fixed, 1 1;
+                               min, 1858 612;
                        }
                }
                part {
-                       name, PART_PHOTO_LIST;
+                       name, PART_PHOTO_NO_CONTENT;
                        type, SWALLOW;
                        scale, 1;
                        description {
                                state, "default" 0.0;
-                               rel1 {
-                                       to, "pad.list.up";
-                                       relative, 0.0 1.0;
-                               }
+                               rel1.to, PART_PHOTO_LIST;
                                rel2 {
-                                       to, "pad.list.down";
-                                       relative, 1.0 0.0;
+                                       to, PART_PHOTO_LIST;
+                                       relative, 0.0 1.0;
                                }
-                               fixed, 1 1;
+                               min, 1796 0;
+                               fixed, 1 0;
+                               align, 0.0 0.5;
                        }
                }
        }
@@ -124,8 +122,8 @@ group {
                        scale, 1;
                        description {
                                state, "default" 0.0;
-                               fixed, 1 1;
-                               visible, 0;
+                               min, 1796 612;
+                               color, 229 229 229 255;
                        }
                }
                part {
@@ -137,7 +135,7 @@ group {
                                fixed, 1 1;
                                text {
                                        font, "TizenSans";
-                                       size, 38;
+                                       size, 32;
                                        text, "No content";
                                }
                                color, 0 0 0 178;
index 29cdebf..74d7a1d 100644 (file)
@@ -96,6 +96,7 @@
 #define PART_BAR_ITEM_MASK "part.bar.item.mask"
 #define PART_USER_BAR "part.user.bar"
 #define PART_PHOTO_LIST "part.photo.list"
+#define PART_PHOTO_NO_CONTENT "part.photo.no.content"
 #define PART_PHOTO_VIEWER "part.photo.viewer"
 #define PART_PHOTO_VIEWER_CANCEL "part.photo.viewer.cancel"
 #define PART_PHOTO_VIEWER_DONE "part.photo.viewer.done"
index 30c7cc9..c80235e 100644 (file)
@@ -229,7 +229,7 @@ static void _load_no_content(struct _priv *priv)
        Evas_Object *ly;
 
        ly = utils_add_layout(priv->base, GRP_PHOTO_NO_CONTENT, true,
-                       PART_PHOTO_LIST);
+                       PART_PHOTO_NO_CONTENT);
        if (!ly) {
                _ERR("failed to create layout");
                return;