From 490e7b3e46a63d56d37a32006461972c77885d61 Mon Sep 17 00:00:00 2001 From: Sathwick Mahadeva Date: Wed, 29 May 2013 15:43:54 +0530 Subject: [PATCH] email.list email.outbox genlist changes to support unread email messages Change-Id: If945ae4527561c1b3f1f9e589616899854cf5a8c --- themes/inc/tizen-hd-inc.edc | 1 + themes/widgets/genlist/genlist_email.edc | 116 ++++++++++++++++++++++++++++++- themes/widgets/genlist/genlist_macro.edc | 2 + 3 files changed, 117 insertions(+), 2 deletions(-) mode change 100644 => 100755 themes/inc/tizen-hd-inc.edc mode change 100644 => 100755 themes/widgets/genlist/genlist_email.edc mode change 100644 => 100755 themes/widgets/genlist/genlist_macro.edc diff --git a/themes/inc/tizen-hd-inc.edc b/themes/inc/tizen-hd-inc.edc old mode 100644 new mode 100755 index 54bdaeb..c92ea8c --- a/themes/inc/tizen-hd-inc.edc +++ b/themes/inc/tizen-hd-inc.edc @@ -248,6 +248,7 @@ #define GENLIST_LIST_CENTERLINE1_COLOR 206 205 202 255 #define GENLIST_SELECT_ALL_BG_COLOR 220 218 211 255 + // Group Index #define GENLIST_GROUPINDEX_LIST_SIZE 32 #define GENLIST_GROUPINDEX_LIST_COLOR 59 115 182 255 diff --git a/themes/widgets/genlist/genlist_email.edc b/themes/widgets/genlist/genlist_email.edc old mode 100644 new mode 100755 index f4face7..24ea72d --- a/themes/widgets/genlist/genlist_email.edc +++ b/themes/widgets/genlist/genlist_email.edc @@ -58,6 +58,9 @@ // 19 130 255 #define GENLIST_EMAIL_MATCH_TAG_COLOR "+ color=#1382FF" +#define GENLIST_LIST_READ_BG_COLOR 223 221 215 255 +#define GENLIST_LIST_UNREAD_BG_COLOR 248 246 239 255 + #define STYLE_TAG \ tag: "br" "\n";\ tag: "ps" "ps";\ @@ -331,14 +334,123 @@ } \ program { name: "go_read_target"; \ action: STATE_SET "read" 0.0; \ + target: "bg"; \ TARGET \ } \ program { name: "go_unread_target"; \ action: STATE_SET "unread" 0.0; \ + target: "bg"; \ TARGET \ } \ } + +#define GENLIST_PART_BG_EMAIL_NORMAL \ + GENLIST_PART_RECT("bg_clip", \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { state: "decorate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "reorder" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "decorate_reorder" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + ) \ + GENLIST_PART_RECT("bg_reorder_clip", \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "reorder" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { state: "decorate_reorder" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "decorate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + description { state: "reorder_flip" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + ) \ + GENLIST_PART_RECT("bg", \ + clip_to: "bg_clip"; \ + description { state: "default" 0.0; \ + color: GENLIST_LIST_BG_COLOR; \ + } \ + description { state: "selected" 0.0; \ + inherit: "default" 0.0; \ + color: GENLIST_LIST_PRESS_COLOR; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: GENLIST_LIST_DIM_COLOR; \ + } \ + description { state: "read" 0.0; \ + inherit: "default" 0.0; \ + color: GENLIST_LIST_READ_BG_COLOR; \ + } \ + description { state: "unread" 0.0; \ + inherit: "default" 0.0; \ + color: GENLIST_LIST_UNREAD_BG_COLOR; \ + } \ + ) \ + GENLIST_PART_SPACER("bg_reorder_left", \ + description { state: "default" 0.0; \ + min: 16 0; \ + max: 16 -1; \ + fixed: 1 0; \ + align: 0 0.5; \ + rel2.relative: 0 1; \ + } \ + ) \ + GENLIST_PART_SPACER("bg_reorder_right", \ + description { state: "default" 0.0; \ + min: 16 0; \ + max: 16 -1; \ + fixed: 1 0; \ + align: 1.0 0.5; \ + rel1.relative: 1 0; \ + } \ + ) \ + GENLIST_PART_IMAGE("bg_reorder", \ + clip_to: "bg_reorder_clip"; \ + GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \ + image { \ + normal: "00_list_group_bg.png"; \ + border: 17 17 8 8; \ + border_scale: 1; \ + } \ + ) \ + description { state: "selected" 0.0; \ + inherit: "default"; \ + image { \ + normal: "00_list_group_bg_press.png"; \ + border: 17 17 8 8; \ + border_scale: 1; \ + } \ + } \ + description { state: "flipped" 0.0; \ + inherit: "default"; \ + visible: 0; \ + } \ + ) + // 2.2.3.5 (Email Style) group { GENLIST_NAME("email.list/default") GENLIST_PROLOG_NORMAL @@ -349,7 +461,7 @@ public readed = 0; } parts { - GENLIST_PART_BG_NORMAL + GENLIST_PART_BG_EMAIL_NORMAL GENLIST_PART_BASE GENLIST_PART_BOTTOM_LINE GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT) @@ -514,7 +626,7 @@ public readed = 0; } parts { - GENLIST_PART_BG_NORMAL + GENLIST_PART_BG_EMAIL_NORMAL GENLIST_PART_BASE GENLIST_PART_BOTTOM_LINE GENLIST_PART_PADDING_LEFT_SIZE(GENLIST_EMAIL_PADDING_SIZE_LEFT) diff --git a/themes/widgets/genlist/genlist_macro.edc b/themes/widgets/genlist/genlist_macro.edc old mode 100644 new mode 100755 index 4e573d5..03b3f8e --- a/themes/widgets/genlist/genlist_macro.edc +++ b/themes/widgets/genlist/genlist_macro.edc @@ -612,6 +612,7 @@ //****************************************************************************// // ****************************** BG Image **********************************// //****************************************************************************// + #define GENLIST_PART_BG_NORMAL \ GENLIST_PART_RECT("bg_clip", \ mouse_events: 0; \ @@ -710,6 +711,7 @@ } \ ) + #define GENLIST_PART_BG_NORMAL_OFF \ GENLIST_PART_RECT("bg_clip", \ mouse_events: 0; \ -- 2.7.4