cutthecord/resources/patches/squareavatars/1213.patch

59 lines
3 KiB
Diff
Raw Normal View History

2020-07-31 14:10:18 +00:00
Only in com.discord: build
Only in com.discord: dist
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-30 01:52:29.632994002 +0300
--- com.discord/res/values/dimens.xml 2020-07-31 16:55:00.064324570 +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-30 01:52:29.146324170 +0300
--- com.discord/res/values/styles.xml 2020-07-31 16:56:36.665028155 +0300
2020-07-29 22:57:09 +00:00
***************
*** 1010,1016 ****
<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>
--- 1010,1017 ----
<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>
2020-07-31 14:10:18 +00:00
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-30 01:52:32.536346217 +0300
--- com.discord/smali/com/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder.smali 2020-07-31 17:02:38.907655437 +0300
***************
*** 1166,1171 ****
--- 1166,1173 ----
move-result v9
.line 14
+ const v7, 0x1
+
invoke-direct {p0, v7, v8, v9}, Lcom/discord/widgets/guilds/list/GuildListViewHolder$GuildViewHolder;->configureGuildIconBackground(ZZZ)V
if-eqz v5, :cond_c