From 290fb65595e08680a53ab77f54c21e7c9a380da0 Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Tue, 18 Jan 2011 09:52:43 -0800 Subject: [PATCH] Update widget colours / assets according to spec * Modified font colours for read/un-read emails * Add chip colours when viewing mail from multiple accounts * Add calendar icon if message has an invite attachment * Update background of read/un-read emails bug 3351761 Change-Id: Id59573d25a6988e9e869335f95778aad28b43912 --- res/drawable/widget_conversation_selector.xml | 10 ------ .../widget_read_conversation_selector.xml | 23 +++++++++++++ .../widget_unread_conversation_selector.xml | 23 +++++++++++++ res/layout/widget_list_item.xml | 20 +++++++++-- res/values-xlarge/colors.xml | 7 ---- res/values/colors.xml | 8 ++--- res/values/styles.xml | 6 ++++ src/com/android/email/ResourceHelper.java | 14 ++++++++ .../email/provider/WidgetProvider.java | 34 ++++++++++++++++--- 9 files changed, 118 insertions(+), 27 deletions(-) delete mode 100644 res/drawable/widget_conversation_selector.xml create mode 100644 res/drawable/widget_read_conversation_selector.xml create mode 100644 res/drawable/widget_unread_conversation_selector.xml diff --git a/res/drawable/widget_conversation_selector.xml b/res/drawable/widget_conversation_selector.xml deleted file mode 100644 index 93761725c..000000000 --- a/res/drawable/widget_conversation_selector.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/res/drawable/widget_read_conversation_selector.xml b/res/drawable/widget_read_conversation_selector.xml new file mode 100644 index 000000000..3e2c3f75c --- /dev/null +++ b/res/drawable/widget_read_conversation_selector.xml @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/res/drawable/widget_unread_conversation_selector.xml b/res/drawable/widget_unread_conversation_selector.xml new file mode 100644 index 000000000..d385f1023 --- /dev/null +++ b/res/drawable/widget_unread_conversation_selector.xml @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/res/layout/widget_list_item.xml b/res/layout/widget_list_item.xml index 090a8ad62..70de81638 100644 --- a/res/layout/widget_list_item.xml +++ b/res/layout/widget_list_item.xml @@ -22,13 +22,21 @@ android:paddingLeft="16dip" android:paddingRight="8dip" android:orientation="vertical" - android:background="@drawable/widget_conversation_selector" + android:background="@drawable/widget_unread_conversation_selector" > + + \ No newline at end of file diff --git a/res/values-xlarge/colors.xml b/res/values-xlarge/colors.xml index 6f7ab3b2f..3a36473ad 100644 --- a/res/values-xlarge/colors.xml +++ b/res/values-xlarge/colors.xml @@ -22,11 +22,4 @@ #000000 #666666 - - - #0d0d0d - #666666 - #4d4d4d - #000000 - #666666 diff --git a/res/values/colors.xml b/res/values/colors.xml index 6662af25c..d3082b551 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -56,10 +56,10 @@ #0d0d0d - #666666 - #4d4d4d - #000000 - #666666 + #99ffffff + #b2ffffff + #ff000000 + #ff666666 #deecfa diff --git a/res/values/styles.xml b/res/values/styles.xml index d39db9e5d..72e198a74 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -72,6 +72,12 @@ ?android:attr/textColorSecondary + +