Improved a few images

This commit is contained in:
Sylvain Berfini 2021-01-21 13:42:44 +01:00
parent d5a8e0f42a
commit 94487278d6
14 changed files with 9 additions and 9 deletions

View file

@ -84,22 +84,22 @@ class ImdnAdapter(
ChatMessage.State.Displayed -> { ChatMessage.State.Displayed -> {
binding.title = R.string.chat_message_imdn_displayed binding.title = R.string.chat_message_imdn_displayed
binding.textColor = R.color.imdn_read_color binding.textColor = R.color.imdn_read_color
binding.icon = R.drawable.message_read binding.icon = R.drawable.chat_read
} }
ChatMessage.State.DeliveredToUser -> { ChatMessage.State.DeliveredToUser -> {
binding.title = R.string.chat_message_imdn_delivered binding.title = R.string.chat_message_imdn_delivered
binding.textColor = R.color.grey_color binding.textColor = R.color.grey_color
binding.icon = R.drawable.message_delivered binding.icon = R.drawable.chat_delivered
} }
ChatMessage.State.Delivered -> { ChatMessage.State.Delivered -> {
binding.title = R.string.chat_message_imdn_sent binding.title = R.string.chat_message_imdn_sent
binding.textColor = R.color.grey_color binding.textColor = R.color.grey_color
binding.icon = R.drawable.message_delivered binding.icon = R.drawable.chat_delivered
} }
ChatMessage.State.NotDelivered -> { ChatMessage.State.NotDelivered -> {
binding.title = R.string.chat_message_imdn_undelivered binding.title = R.string.chat_message_imdn_undelivered
binding.textColor = R.color.red_color binding.textColor = R.color.red_color
binding.icon = R.drawable.message_undelivered binding.icon = R.drawable.chat_error
} }
} }
binding.executePendingBindings() binding.executePendingBindings()

View file

@ -160,9 +160,9 @@ class ChatMessageViewModel(
} }
imdnIcon.value = when (state) { imdnIcon.value = when (state) {
ChatMessage.State.DeliveredToUser -> R.drawable.imdn_received ChatMessage.State.DeliveredToUser -> R.drawable.chat_delivered
ChatMessage.State.Displayed -> R.drawable.imdn_read ChatMessage.State.Displayed -> R.drawable.chat_read
else -> R.drawable.imdn_error else -> R.drawable.chat_error
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -49,7 +49,7 @@
<ImageView <ImageView
android:id="@+id/imdn" android:id="@+id/imdn"
android:visibility="@{viewModel.chatMessage.outgoing ? (viewModel.showImdn ? View.VISIBLE : View.INVISIBLE) : View.INVISIBLE}" android:visibility="@{viewModel.chatMessage.outgoing ? (viewModel.showImdn ? View.VISIBLE : View.INVISIBLE) : View.INVISIBLE}"
android:src="@{viewModel.imdnIcon, default=@drawable/imdn_received}" android:src="@{viewModel.imdnIcon, default=@drawable/chat_delivered}"
android:contentDescription="@string/content_description_delivery_status" android:contentDescription="@string/content_description_delivery_status"
android:layout_width="10dp" android:layout_width="10dp"
android:layout_height="10dp" android:layout_height="10dp"

View file

@ -38,7 +38,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="5dp" android:padding="5dp"
android:contentDescription="@{title}" android:contentDescription="@{title}"
android:src="@{icon, default=@drawable/message_read}" /> android:src="@{icon, default=@drawable/chat_read}" />
</LinearLayout> </LinearLayout>