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/resources/old-patches/squareavatars/1216.patch

59 lines
3.2 KiB
Diff

diff --color -crB com.discord-base/res/values/dimens.xml com.discord/res/values/dimens.xml
*** com.discord-base/res/values/dimens.xml 2020-07-31 21:32:16.597315644 +0300
--- com.discord/res/values/dimens.xml 2020-07-31 21:40:51.823291140 +0300
***************
*** 209,215 ****
<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>
--- 209,215 ----
<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 --color -crB com.discord-base/res/values/styles.xml com.discord/res/values/styles.xml
*** com.discord-base/res/values/styles.xml 2020-07-31 21:32:16.760649801 +0300
--- com.discord/res/values/styles.xml 2020-07-31 21:40:51.823291140 +0300
***************
*** 1014,1020 ****
<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>
--- 1014,1021 ----
<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>
Only in com.discord/res/values: styles.xml.orig
diff --color -crB com.discord-base/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali com.discord/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali
*** com.discord-base/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali 2020-07-31 21:32:19.317329371 +0300
--- com.discord/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali 2020-07-31 21:41:19.030100761 +0300
***************
*** 1157,1162 ****
--- 1157,1164 ----
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
Only in com.discord/smali/com/discord/widgets/guilds/list: GuildListViewHolder$GuildViewHolder.smali.orig
Only in com.discord/smali/com/discord/widgets/guilds/list: GuildListViewHolder$GuildViewHolder.smali.rej