diff options
author | Soohye Shin <soohye.shin@samsung.com> | 2015-06-18 11:00:58 +0900 |
---|---|---|
committer | Soohye Shin <soohye.shin@samsung.com> | 2015-06-18 11:00:58 +0900 |
commit | 983258c7d8a94ed9fcab4e15ccca0d605551762d (patch) | |
tree | 59757b52a204336b1a7478e5fd7483d382a100d7 | |
parent | 1a646ee678cc368478e8d6b9fb3ea0d2d63fe96a (diff) | |
download | air_home-983258c7d8a94ed9fcab4e15ccca0d605551762d.tar.gz air_home-983258c7d8a94ed9fcab4e15ccca0d605551762d.tar.bz2 air_home-983258c7d8a94ed9fcab4e15ccca0d605551762d.zip |
add notification badge in home edc
Change-Id: Idce89816a1b88385b25ea2f823505063650b7b5d
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
-rw-r--r-- | edje/view/home.edc | 49 | ||||
-rw-r--r-- | images/badge_bg.png | bin | 0 -> 15329 bytes | |||
-rw-r--r-- | include/defs.h | 4 |
3 files changed, 53 insertions, 0 deletions
diff --git a/edje/view/home.edc b/edje/view/home.edc index 9fd5e12..326edc0 100644 --- a/edje/view/home.edc +++ b/edje/view/home.edc @@ -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 Binary files differnew file mode 100644 index 0000000..0da3ca2 --- /dev/null +++ b/images/badge_bg.png diff --git a/include/defs.h b/include/defs.h index e932b53..3c7f608 100644 --- a/include/defs.h +++ b/include/defs.h @@ -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__ */ |