Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01f2a368 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '5453-update_message_bubbles' into 'main'

Fix message bubbles

See merge request !63
parents dff11419 ca8add78
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ class Colors @Inject constructor(
        val pref = prefs.theme(recipient?.id ?: 0)
        val color = when {
            recipient == null || !prefs.autoColor.get() || pref.isSet -> pref.get()
            else -> generateColor(recipient)
            else -> context.getColor(R.color.tools_theme)
        }
        return Theme(color, this)
    }
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ class MessagesAdapter @Inject constructor(
            holder.avatar.setRecipient(contactCache[message.address])
            holder.avatar.setVisible(!canGroup(message, next), View.INVISIBLE)

            holder.body.setTextColor(theme.textPrimary)
            holder.body.setTextColor(context.resources.getColor(R.color.backgroundDark))
            holder.body.setBackgroundTint(theme.theme)
        }

+1 −2
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ class ConversationsAdapter @Inject constructor(
            view.snippet.maxLines = 5

            view.unread.isVisible = true
            view.unread.setTint(context.getColor(R.color.tools_theme))
            view.unread.setTint(context.getColor(R.color.unread_dot))

            view.date.setTypeface(view.date.typeface, Typeface.BOLD)
            view.date.setTextColor(textColorPrimary)
@@ -122,7 +122,6 @@ class ConversationsAdapter @Inject constructor(
            else -> conversation.snippet
        }
        holder.pinned.isVisible = conversation.pinned
        holder.unread.setTint(theme)
    }

    override fun getItemId(position: Int): Long {
+1 −0
Original line number Diff line number Diff line
@@ -335,4 +335,5 @@
        <item>#263238</item>
    </array>

    <color name="unread_dot">#44B04C</color>
</resources>