squareavatars: add patch

This commit is contained in:
ave 2019-01-28 16:54:26 +03:00
parent 7d47f603a0
commit 575d4037cf
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,21 @@
*** com.discord-835-base/res/values/styles.xml 2019-01-25 10:57:34.429248557 +0300
--- com.discord-835/res/values/styles.xml 2019-01-28 16:51:28.771000850 +0300
***************
*** 809,815 ****
<item name="actualImageScaleType">fitCenter</item>
<item name="placeholderImage">@drawable/asset_default_avatar_32dp</item>
<item name="placeholderImageScaleType">fitCenter</item>
! <item name="roundAsCircle">true</item>
</style>
<style name="Avatar.Chat" parent="@style/Avatar.Large">
<item name="android:layout_width">@dimen/avatar_size_chat</item>
--- 809,816 ----
<item name="actualImageScaleType">fitCenter</item>
<item name="placeholderImage">@drawable/asset_default_avatar_32dp</item>
<item name="placeholderImageScaleType">fitCenter</item>
! <item name="roundAsCircle">false</item>
! <item name="roundedCornerRadius">3dp</item>
</style>
<style name="Avatar.Chat" parent="@style/Avatar.Large">
<item name="android:layout_width">@dimen/avatar_size_chat</item>

View file

@ -0,0 +1,9 @@
## DisTok CutTheCord: Square Avatars Patch
This patch turns the circle avatars to their full square versions, letting you see the whole image.
A very small amount of rounding is applied to make it look a little better.
#### Available and tested on:
- 8.3.5g