This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/patches/squareavatars/1306.patch

56 lines
2.8 KiB
Diff
Raw Normal View History

2020-11-05 15:14:59 +00:00
diff -crB from/res/values/dimens.xml to/res/values/dimens.xml
*** from/res/values/dimens.xml 2020-10-27 21:11:42.286834957 +0000
--- to/res/values/dimens.xml 2020-10-27 21:11:55.828925585 +0000
***************
*** 223,229 ****
<dimen name="folder_guild_outer_margin">6.0dip</dimen>
<dimen name="folder_guild_size">16.0dip</dimen>
<dimen name="grid_item_padding">4.0dip</dimen>
! <dimen name="guild_icon_radius">12.0dip</dimen>
<dimen name="guild_item_size">54.0dip</dimen>
<dimen name="guild_item_spacing">6.0dip</dimen>
<dimen name="guild_list_size">72.0dip</dimen>
--- 223,229 ----
<dimen name="folder_guild_outer_margin">6.0dip</dimen>
<dimen name="folder_guild_size">16.0dip</dimen>
<dimen name="grid_item_padding">4.0dip</dimen>
! <dimen name="guild_icon_radius">0.0dip</dimen>
<dimen name="guild_item_size">54.0dip</dimen>
<dimen name="guild_item_spacing">6.0dip</dimen>
<dimen name="guild_list_size">72.0dip</dimen>
diff -crB from/res/values/styles.xml to/res/values/styles.xml
*** from/res/values/styles.xml 2020-10-27 21:11:41.842831983 +0000
--- to/res/values/styles.xml 2020-10-27 21:11:55.830925599 +0000
***************
*** 986,992 ****
<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>
--- 986,993 ----
<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>
diff -crB from/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali to/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali
*** from/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali 2020-10-27 21:11:45.288855065 +0000
--- to/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali 2020-10-27 21:11:55.830925599 +0000
***************
*** 1141,1146 ****
--- 1141,1148 ----
move-result v10
.line 14
+ const v8, 0x1
+
invoke-direct {p0, v8, v9, v10}, Lcom/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder;->configureGuildIconBackground(ZZZ)V
if-eqz v5, :cond_c