use casual text color at sent message links
This commit is contained in:
parent
880dd7bf27
commit
05c6dd7a05
1 changed files with 5 additions and 1 deletions
|
|
@ -191,12 +191,16 @@ class ThreadAdapter(activity: SimpleActivity, var messages: ArrayList<ThreadItem
|
|||
if (message.isReceivedMessage()) {
|
||||
thread_message_sender_photo.beVisible()
|
||||
thread_message_body.setTextColor(textColor)
|
||||
thread_message_body.setLinkTextColor(context.getAdjustedPrimaryColor())
|
||||
SimpleContactsHelper(context).loadContactImage(message.senderPhotoUri, thread_message_sender_photo, message.senderName)
|
||||
} else {
|
||||
thread_message_sender_photo?.beGone()
|
||||
val background = context.getAdjustedPrimaryColor()
|
||||
thread_message_body.background.applyColorFilter(background.adjustAlpha(0.8f))
|
||||
thread_message_body.setTextColor(background.getContrastColor())
|
||||
|
||||
val contrastColor = background.getContrastColor()
|
||||
thread_message_body.setTextColor(contrastColor)
|
||||
thread_message_body.setLinkTextColor(contrastColor)
|
||||
}
|
||||
|
||||
thread_mesage_attachments_holder.removeAllViews()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue