add notification badge in home edc 17/41817/1
authorSoohye Shin <soohye.shin@samsung.com>
Thu, 18 Jun 2015 02:00:58 +0000 (11:00 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Thu, 18 Jun 2015 02:00:58 +0000 (11:00 +0900)
Change-Id: Idce89816a1b88385b25ea2f823505063650b7b5d
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
edje/view/home.edc
images/badge_bg.png [new file with mode: 0644]
include/defs.h

index 9fd5e12..326edc0 100644 (file)
@@ -468,6 +468,55 @@ group {
                                visible, 1;
                        }
                }
+               part {
+                       name, "pad.badge";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 42 15;
+                               rel1.relative, 1.0 0.0;
+                               rel2.relative, 1.0 0.0;
+                               align, 1.0 0.0;
+                               fixed, 1 1;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_HOME_ITEM_BADGE;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 36 36;
+                               rel1 {
+                                       to, "pad.badge";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.badge";
+                                       relative, 0.0 1.0;
+                               }
+                               align, 1.0 0.0;
+                               fixed, 1 1;
+                       }
+               }
+               part {
+                       name, PART_HOME_ITEM_BADGE_COUNT;
+                       type, TEXT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.to, PART_HOME_ITEM_BADGE;
+                               rel2.to, PART_HOME_ITEM_BADGE;
+                               fixed, 1 1;
+                               text {
+                                       size, 24;
+                                       font, "TizenSans";
+                               }
+                               color, 255 255 255 255;
+                       }
+               }
        }
        programs {
                program {
diff --git a/images/badge_bg.png b/images/badge_bg.png
new file mode 100644 (file)
index 0000000..0da3ca2
Binary files /dev/null and b/images/badge_bg.png differ
index e932b53..3c7f608 100644 (file)
@@ -40,6 +40,8 @@
 #define PART_HOME_ITEM_BG "part.home.item.bg"
 #define PART_HOME_ITEM_TITLE "part.home.item.title"
 #define PART_HOME_ITEM_TITLE_FOCUS "part.home.item.focus"
+#define PART_HOME_ITEM_BADGE "part.home.item.badge"
+#define PART_HOME_ITEM_BADGE_COUNT "part.home.item.badge.count"
 #define PART_RECENT_DELETE_ICON "part.recent.delete.icon"
 #define PART_RECENT_CONTENTS "part.recent.contents"
 #define PART_RECENT_NO_CONTENTS "part.recent.no.contents"
@@ -73,4 +75,6 @@
 #define COLOR_DEFAULT_B 224
 #define COLOR_DEFAULT_A 255
 
+#define IMAGE_BADGE IMAGEDIR"/badge_bg.png"
+
 #endif /* __AIR_HOME_DEFS_H__ */