forked from distok/cutthecord
Implement squareavatars as xml patch
This commit is contained in:
parent
ec47b98061
commit
f709704fce
2 changed files with 15 additions and 0 deletions
9
resources/xmlpatches/squareavatars/87202.xml
Normal file
9
resources/xmlpatches/squareavatars/87202.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<diffs>
|
||||||
|
<diff file="res/values/dimens.xml">
|
||||||
|
<replace sel="/resources/dimen[@name='guild_icon_radius']/text()">0.0dp</replace>
|
||||||
|
</diff>
|
||||||
|
<diff file="res/values/styles.xml">
|
||||||
|
<replace sel="resources/style[@name='Avatar']/item[@name='roundAsCircle']/text()">false</replace>
|
||||||
|
<add pos="after" sel="resources/style[@name='Avatar']/item[@name='roundAsCircle']"><item name="roundedCornerRadius">3dp</item></add>
|
||||||
|
</diff>
|
||||||
|
</diffs>
|
6
resources/xmlpatches/squareavatars/README.md
Normal file
6
resources/xmlpatches/squareavatars/README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
## 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.
|
||||||
|
|
Loading…
Reference in a new issue