add photo contents layouts 51/43051/2
authorSoohye Shin <soohye.shin@samsung.com>
Tue, 7 Jul 2015 10:33:25 +0000 (19:33 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Tue, 7 Jul 2015 10:40:08 +0000 (19:40 +0900)
- gengrid item edc
- no content edc

Change-Id: Ifd881bc850e2cb327f4bd586660ca4c22b093e9f
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
edje/home-theme.edc
edje/view/photo.edc
edje/widget/gengrid.edc [new file with mode: 0644]
include/defs.h

index bc4bc11..e7ee92e 100644 (file)
@@ -18,4 +18,5 @@
 
 collections {
        #include "widget/label.edc"
+       #include "widget/gengrid.edc"
 }
index d6e8f97..b52550c 100644 (file)
@@ -36,8 +36,8 @@ group {
                        scale, 1;
                        description {
                                state, "default" 0.0;
-                               rel1.to, "title";
-                               rel2.to, "title";
+                               rel1.to, "up";
+                               rel2.to, "up";
                                fixed, 1 1;
                                text {
                                        text, "Select photo";
@@ -54,14 +54,14 @@ group {
                        description {
                                state, "default" 0.0;
                                rel1.relative, 0.0 1.0;
-                               min, 0 148;
+                               min, 0 157;
                                fixed, 0 1;
                                align, 0.5 1.0;
                        }
                }
                part {
-                       name, PART_PHOTO_LIST;
-                       type, SWALLOW;
+                       name, "bg";
+                       type, RECT;
                        scale, 1;
                        description {
                                state, "default" 0.0;
@@ -74,6 +74,49 @@ group {
                                        relative, 1.0 0.0;
                                }
                                fixed, 1 1;
+                               color, 244 244 244 255;
+                       }
+               }
+               part {
+                       name, PART_PHOTO_LIST;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.to, "bg";
+                               rel2.to, "bg";
+                               fixed, 1 1;
+                       }
+               }
+       }
+}
+
+group {
+       name, GRP_PHOTO_NO_CONTENT;
+       parts {
+               part {
+                       name, "bg";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               fixed, 1 1;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "text";
+                       type, TEXT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               fixed, 1 1;
+                               text {
+                                       font, "TizenSans";
+                                       size, 38;
+                                       text, "No content";
+                               }
+                               color, 0 0 0 178;
                        }
                }
        }
diff --git a/edje/widget/gengrid.edc b/edje/widget/gengrid.edc
new file mode 100644 (file)
index 0000000..df207f5
--- /dev/null
@@ -0,0 +1,116 @@
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+group {
+       name, "elm/gengrid/item/gengrid_item/default";
+       data.item, "contents" "elm.swallow.icon";
+       parts {
+               part {
+                       name, "top.pad";
+                       type, SPACER;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel2.relative, 0.0 0.0;
+                               align, 0.0 0.0;
+                               min, 3 3;
+                               fixed, 1 1;
+                       }
+               }
+               part {
+                       name, "bottom.pad";
+                       type, SPACER;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.relative, 1.0 1.0;
+                               align, 1.0 1.0;
+                               min, 3 3;
+                               fixed, 1 1;
+                       }
+               }
+               part {
+                       name, "base";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "top.pad";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "bottom.pad";
+                                       relative, 0.0 0.0;
+                               }
+                               color, 0 119 246 255;
+                               fixed, 1 1;
+                       }
+               }
+               part {
+                       name, "clip";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.to, "base";
+                               rel2.to, "base";
+                               fixed, 1 1;
+                       }
+                       description {
+                               state, "focus" 0.0;
+                               rel1 {
+                                       to, "base";
+                                       relative, 0.5 0.5;
+                               }
+                               rel2 {
+                                       to, "base";
+                                       relative, 0.5 0.5;
+                               }
+                               min, 188 188;
+                               fixed, 1 1;
+                       }
+               }
+               part {
+                       name, "elm.swallow.icon";
+                       type, SWALLOW;
+                       scale, 1;
+                       clip_to, "clip";
+                       description {
+                               state, "default" 0.0;
+                               fixed, 1 1;
+                       }
+               }
+       }
+       programs {
+               program {
+                       name, "sig,focus";
+                       signal, SIG_FOCUS;
+                       source, SRC_PROG;
+                       action, STATE_SET "focus" 0.0;
+                       transition, LINEAR 0.1;
+                       target, "clip";
+               }
+               program {
+                       name, "sig,unfocus";
+                       signal, SIG_UNFOCUS;
+                       source, SRC_PROG;
+                       action, STATE_SET "default" 0.0;
+                       transition, LINEAR 0.1;
+                       target, "clip";
+               }
+       }
+}
index bea2b0e..c1fc975 100644 (file)
@@ -47,6 +47,7 @@
 #define GRP_BAR_ITEM "group.bar.item"
 #define GRP_PHOTO "group.photo"
 #define GRP_PHOTO_VIEWER "group.photo.viewer"
+#define GRP_PHOTO_NO_CONTENT "group.photo.no.content"
 
 #define PART_HOME_MENU_BAR "part.home.menu.bar"
 #define PART_HOME_UP_ARROW "part.home.up.arrow"
 #define STYLE_LABEL_RECENT_TITLE "slide_recent_title"
 #define STYLE_LABEL_RECENT_SUBTITLE "slide_recent_subtitle"
 #define STYLE_INPUT "input.field"
+#define STYLE_GENGRID_ITEM "gengrid_item"
 
 #define COLOR_DEFAULT_R 0
 #define COLOR_DEFAULT_G 119