1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 13:24:46 +01:00
Yuito-app-android/app
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
..
schemas/com.keylesspalace.tusky.db.AppDatabase Cache locked state of connected accounts (#3790) 2023-07-27 00:09:26 +02:00
src Composite semi-transparent avatars over a solid background (#3874) 2023-08-08 23:09:59 +02:00
build.gradle Add newLintBaseline task (#3925) 2023-08-07 19:30:21 +02:00
getGitSha.gradle
lint-baseline.xml Officially rename error elephant to errorphant (#3922) 2023-08-05 15:39:07 +02:00
lint.xml Use lint version 8.1.0 to fix erroneous warning about forEach (#3903) 2023-07-30 21:45:43 +02:00
proguard-rules.pro Remove shrinker rules for okhttp (#3560) 2023-04-24 12:08:03 +02:00