Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/components/conversation
Nik Clayton 4169dc34c0
Composite semi-transparent avatars over a solid background (#3874)
Avatars that are semi-transparent are a problem when viewing a thread,
as the line that connects different statuses in the same thread is drawn
underneath the avatar and is visible.

Fix this with a CompositeWithOpaqueBackground Glide transformation that:

1. Extracts the alpha channel from the avatar image
2. Converts the alpha to a 1bpp mask
3. Draws that mask on a new bitmap, with the appropriate background
colour
4. Draws the original bitmap on top of that

So any partially transparent areas of the original image are drawn over
a solid background colour, so anything drawn under them will not appear.
2023-08-08 23:09:59 +02:00
..
ConversationAdapter.kt Fix conversations (#2556) 2022-05-30 19:06:14 +02:00
ConversationEntity.kt Migrate "room" from "kapt" to "ksp" (#3777) 2023-06-29 18:37:46 +02:00
ConversationLoadStateAdapter.kt Fix conversations (#2556) 2022-05-30 19:06:14 +02:00
ConversationViewData.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
ConversationViewHolder.java Composite semi-transparent avatars over a solid background (#3874) 2023-08-08 23:09:59 +02:00
ConversationsFragment.kt Simplify repeated code that shows errors (#3762) 2023-06-19 23:49:20 +02:00
ConversationsRemoteMediator.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
ConversationsViewModel.kt Remove Rx from EventHub and TimelineCases (#3446) 2023-03-18 10:11:47 +01:00