From 5847f7b423c310bf7a59b5f75307502ae6eaa9a4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 8 Mar 2022 13:55:19 +0100 Subject: [PATCH] Iterate on badge / unread indicator color (#5332) --- library/ui-styles/src/main/res/values/colors.xml | 6 ++++++ library/ui-styles/src/main/res/values/theme_dark.xml | 3 ++- library/ui-styles/src/main/res/values/theme_light.xml | 3 ++- .../java/im/vector/app/features/home/HomeDetailFragment.kt | 2 +- vector/src/main/res/drawable/bg_unread_notification.xml | 2 +- vector/src/main/res/layout/item_room.xml | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/library/ui-styles/src/main/res/values/colors.xml b/library/ui-styles/src/main/res/values/colors.xml index 770b0018935..6610c0f45d5 100644 --- a/library/ui-styles/src/main/res/values/colors.xml +++ b/library/ui-styles/src/main/res/values/colors.xml @@ -56,6 +56,12 @@ + + + @android:color/white diff --git a/library/ui-styles/src/main/res/values/theme_dark.xml b/library/ui-styles/src/main/res/values/theme_dark.xml index 31e64184bc2..607f0084537 100644 --- a/library/ui-styles/src/main/res/values/theme_dark.xml +++ b/library/ui-styles/src/main/res/values/theme_dark.xml @@ -46,11 +46,12 @@ @color/vctr_presence_indicator_offline_dark - + ?vctr_system ?vctr_content_quinary ?vctr_system ?vctr_system + ?vctr_content_tertiary @color/element_accent_dark diff --git a/library/ui-styles/src/main/res/values/theme_light.xml b/library/ui-styles/src/main/res/values/theme_light.xml index e53bc510da7..efc18b9f324 100644 --- a/library/ui-styles/src/main/res/values/theme_light.xml +++ b/library/ui-styles/src/main/res/values/theme_light.xml @@ -46,11 +46,12 @@ @color/vctr_presence_indicator_offline_light - + ?vctr_system ?vctr_content_quinary ?vctr_system ?vctr_system + ?vctr_content_tertiary @color/element_accent_light diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt index ea03b833ac9..b0527582014 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt @@ -457,7 +457,7 @@ class HomeDetailFragment @Inject constructor( backgroundColor = if (highlight) { ThemeUtils.getColor(requireContext(), R.attr.colorError) } else { - ThemeUtils.getColor(requireContext(), R.attr.vctr_content_secondary) + ThemeUtils.getColor(requireContext(), R.attr.vctr_unread_background) } } diff --git a/vector/src/main/res/drawable/bg_unread_notification.xml b/vector/src/main/res/drawable/bg_unread_notification.xml index 4926f588dae..602778b57cf 100644 --- a/vector/src/main/res/drawable/bg_unread_notification.xml +++ b/vector/src/main/res/drawable/bg_unread_notification.xml @@ -4,5 +4,5 @@ - + diff --git a/vector/src/main/res/layout/item_room.xml b/vector/src/main/res/layout/item_room.xml index 7dc7984b4a1..2b27cb8efe9 100644 --- a/vector/src/main/res/layout/item_room.xml +++ b/vector/src/main/res/layout/item_room.xml @@ -15,7 +15,7 @@ android:id="@+id/roomUnreadIndicator" android:layout_width="4dp" android:layout_height="0dp" - android:background="?vctr_content_secondary" + android:background="?vctr_unread_background" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"