From 9bf7562d49b019e1c6cdf9fb1327ef5a5c0a1e6e Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 1 Jul 2015 08:13:09 -0700 Subject: [PATCH] Use theme-defined weights instead of ThemeType. // FREEBIE --- res/values/attrs.xml | 5 ++- res/values/themes.xml | 20 +++++++++--- .../securesms/ConversationActivity.java | 7 ++-- .../securesms/ConversationItem.java | 3 +- .../RecipientPreferenceActivity.java | 13 +++----- .../securesms/color/MaterialColor.java | 31 +++++++++++++----- .../securesms/color/MaterialColors.java | 6 ++-- .../securesms/color/ThemeType.java | 32 ------------------- .../securesms/components/AvatarImageView.java | 7 ++-- .../contacts/avatars/ContactColors.java | 25 +++------------ .../notifications/MessageNotifier.java | 5 ++- 11 files changed, 63 insertions(+), 91 deletions(-) delete mode 100644 src/org/thoughtcrime/securesms/color/ThemeType.java diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 6c139548eb..1960c6f0dd 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -1,6 +1,5 @@ - @@ -23,6 +22,10 @@ + + + + diff --git a/res/values/themes.xml b/res/values/themes.xml index 22cd2496b2..392ea2df4a 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -3,7 +3,10 @@