Compare commits

...

3 commits

Author SHA1 Message Date
c10a876d49
experiments: on new tabbed view, don't close keyboard when mentioning 2020-03-27 13:08:16 +03:00
bcdde1a700
customtheme: ensure that top bar is black on new tabbed view 2020-03-27 13:07:50 +03:00
031c035ed4
New patch: hqavatars
Fetches avatars as 256x256 instead of 128x128
2020-03-27 13:07:02 +03:00
6 changed files with 77 additions and 314 deletions

View file

@ -49,7 +49,7 @@ Video demonstration: https://www.youtube.com/watch?v=NMRPsAgqtWQ
![Developer options tab](https://elixi.re/i/z0oakgla.png)
![Pure evil setting](https://elixi.re/i/f1e7t1y0.png)
- hqavatars: Uses 256x256 variants of avatars instead of 128x128.
- **litecord**: Changes the server the app connects to, and specifically tries to connect to a Litecord server. [Litecord is a FOSS re-implementation of Discord's backend.](https://wildcard.elixi.re/i/l3lxhd3a.png)

View file

@ -1,312 +1,21 @@
diff -crB com.discord-1078-base/res/drawable/drawable_overlay_channels_active_dark.xml com.discord-1078/res/drawable/drawable_overlay_channels_active_dark.xml
*** com.discord-1078-base/res/drawable/drawable_overlay_channels_active_dark.xml 2020-03-26 10:35:49.432207526 +0300
--- com.discord-1078/res/drawable/drawable_overlay_channels_active_dark.xml 2020-03-26 10:56:16.487906159 +0300
***************
*** 3,9 ****
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:left="8.0dip" android:right="8.0dip">
<shape android:shape="rectangle">
! <solid android:color="#ff42464d" />
<corners android:radius="4.0dip" />
</shape>
</item>
--- 3,9 ----
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:left="8.0dip" android:right="8.0dip">
<shape android:shape="rectangle">
! <solid android:color="@color/primary_500" />
<corners android:radius="4.0dip" />
</shape>
</item>
diff -crB com.discord-1078-base/res/values/colors.xml com.discord-1078/res/values/colors.xml
*** com.discord-1078-base/res/values/colors.xml 2020-03-26 10:35:50.862214823 +0300
--- com.discord-1078/res/values/colors.xml 2020-03-26 10:56:16.487906159 +0300
--- com.discord-1078/res/values/colors.xml 2020-03-27 12:34:45.263135150 +0300
***************
*** 103,112 ****
<color name="common_google_signin_btn_text_light_disabled">#1f000000</color>
<color name="common_google_signin_btn_text_light_focused">#90000000</color>
<color name="common_google_signin_btn_text_light_pressed">#de000000</color>
! <color name="dark_grey_2">#ff36393e</color>
! <color name="dark_grey_2_alpha_10">#ff303337</color>
<color name="design_bottom_navigation_shadow_color">#14000000</color>
! <color name="design_dark_default_color_background">#ff121212</color>
<color name="design_dark_default_color_error">#ffcf6679</color>
<color name="design_dark_default_color_on_background">#ffffffff</color>
<color name="design_dark_default_color_on_error">#ff000000</color>
--- 103,112 ----
<color name="common_google_signin_btn_text_light_disabled">#1f000000</color>
<color name="common_google_signin_btn_text_light_focused">#90000000</color>
<color name="common_google_signin_btn_text_light_pressed">#de000000</color>
! <color name="dark_grey_2">#ff000000</color>
! <color name="dark_grey_2_alpha_10">#ff000000</color>
<color name="design_bottom_navigation_shadow_color">#14000000</color>
! <color name="design_dark_default_color_background">#ff000000</color>
<color name="design_dark_default_color_error">#ffcf6679</color>
<color name="design_dark_default_color_on_background">#ffffffff</color>
<color name="design_dark_default_color_on_error">#ff000000</color>
***************
*** 118,124 ****
<color name="design_dark_default_color_primary_variant">#ff3700b3</color>
<color name="design_dark_default_color_secondary">#ff03dac6</color>
<color name="design_dark_default_color_secondary_variant">#ff03dac6</color>
! <color name="design_dark_default_color_surface">#ff121212</color>
<color name="design_default_color_background">#ffffffff</color>
<color name="design_default_color_error">#ffb00020</color>
<color name="design_default_color_on_background">#ff000000</color>
--- 118,124 ----
<color name="design_dark_default_color_primary_variant">#ff3700b3</color>
<color name="design_dark_default_color_secondary">#ff03dac6</color>
<color name="design_dark_default_color_secondary_variant">#ff03dac6</color>
! <color name="design_dark_default_color_surface">#ff000000</color>
<color name="design_default_color_background">#ffffffff</color>
<color name="design_default_color_error">#ffb00020</color>
<color name="design_default_color_on_background">#ff000000</color>
***************
*** 161,168 ****
<color name="grey_3_alpha_30">#4d737f8d</color>
<color name="grey_4">#ff949494</color>
<color name="grey_6_alpha_05">#0d4f545c</color>
! <color name="grey_account">#ff282b30</color>
! <color name="grey_unread">#ff8a8e94</color>
<color name="highlighted_text_material_dark">#6680cbc4</color>
<color name="highlighted_text_material_light">#66009688</color>
<color name="hypesquad_house_1">#ff9c84ef</color>
--- 161,168 ----
<color name="grey_3_alpha_30">#4d737f8d</color>
<color name="grey_4">#ff949494</color>
<color name="grey_6_alpha_05">#0d4f545c</color>
! <color name="grey_account">#ff000000</color>
! <color name="grey_unread">#ff000000</color>
<color name="highlighted_text_material_dark">#6680cbc4</color>
<color name="highlighted_text_material_light">#66009688</color>
<color name="hypesquad_house_1">#ff9c84ef</color>
***************
*** 172,178 ****
<color name="hypesquad_house_3">#ff45ddc0</color>
<color name="hypesquad_house_3_500">#ff45ddc0</color>
<color name="league_of_legends">#ff021f25</color>
! <color name="link">#ff00b0f4</color>
<color name="link_100">#fff2fbfe</color>
<color name="link_130">#ffe8f8fe</color>
<color name="link_160">#ffdaf4fd</color>
--- 172,178 ----
<color name="hypesquad_house_3">#ff45ddc0</color>
<color name="hypesquad_house_3_500">#ff45ddc0</color>
<color name="league_of_legends">#ff021f25</color>
! <color name="link">#ff50f148</color>
<color name="link_100">#fff2fbfe</color>
<color name="link_130">#ffe8f8fe</color>
<color name="link_160">#ffdaf4fd</color>
***************
*** 260,279 ****
<color name="primary_400">#ff72767d</color>
<color name="primary_400_alpha_30">#4d72767d</color>
<color name="primary_400_alpha_60">#9972767d</color>
! <color name="primary_500">#ff4f545c</color>
! <color name="primary_500_alpha_20">#334f545c</color>
! <color name="primary_500_alpha_30">#4d4f545c</color>
! <color name="primary_500_alpha_32">#514f545c</color>
! <color name="primary_500_alpha_60">#994f545c</color>
<color name="primary_560">#ff40444b</color>
! <color name="primary_600">#ff36393f</color>
! <color name="primary_600_alpha_60">#9936393f</color>
! <color name="primary_630">#ff2f3136</color>
! <color name="primary_630_alpha_60">#992f3136</color>
! <color name="primary_630_alpha_90">#e62f3136</color>
<color name="primary_660">#ff292b2f</color>
! <color name="primary_700">#ff202225</color>
! <color name="primary_700_alpha_60">#99202225</color>
*** 271,277 ****
<color name="primary_630">#ff2f3136</color>
<color name="primary_630_alpha_60">#992f3136</color>
<color name="primary_630_alpha_90">#e62f3136</color>
! <color name="primary_660">#ff292b2f</color>
<color name="primary_700">#ff202225</color>
<color name="primary_700_alpha_60">#99202225</color>
<color name="primary_800">#ff18191c</color>
<color name="primary_800_alpha_60">#9918191c</color>
<color name="primary_800_alpha_90">#e618191c</color>
--- 260,279 ----
<color name="primary_400">#ff72767d</color>
<color name="primary_400_alpha_30">#4d72767d</color>
<color name="primary_400_alpha_60">#9972767d</color>
! <color name="primary_500">#ff333333</color>
! <color name="primary_500_alpha_20">#330f0f0f</color>
! <color name="primary_500_alpha_30">#4d0f0f0f</color>
! <color name="primary_500_alpha_32">#510f0f0f</color>
! <color name="primary_500_alpha_60">#990f0f0f</color>
<color name="primary_560">#ff40444b</color>
! <color name="primary_600">#ff000000</color>
! <color name="primary_600_alpha_60">#99000000</color>
! <color name="primary_630">#ff000000</color>
! <color name="primary_630_alpha_60">#99000000</color>
! <color name="primary_630_alpha_90">#e6000000</color>
<color name="primary_660">#ff292b2f</color>
! <color name="primary_700">#ff000000</color>
! <color name="primary_700_alpha_60">#990f0f0f</color>
--- 271,277 ----
<color name="primary_630">#ff2f3136</color>
<color name="primary_630_alpha_60">#992f3136</color>
<color name="primary_630_alpha_90">#e62f3136</color>
! <color name="primary_660">#ff000000</color>
<color name="primary_700">#ff202225</color>
<color name="primary_700_alpha_60">#99202225</color>
<color name="primary_800">#ff18191c</color>
<color name="primary_800_alpha_60">#9918191c</color>
<color name="primary_800_alpha_90">#e618191c</color>
***************
*** 296,305 ****
<color name="primary_dark_500">#ff4f545c</color>
<color name="primary_dark_530">#ff484c54</color>
<color name="primary_dark_560">#ff40444b</color>
! <color name="primary_dark_600">#ff36393f</color>
! <color name="primary_dark_630">#ff2f3136</color>
<color name="primary_dark_660">#ff292b2f</color>
! <color name="primary_dark_700">#ff202225</color>
<color name="primary_dark_730">#ff1e1f22</color>
<color name="primary_dark_760">#ff1b1d20</color>
<color name="primary_dark_800">#ff18191c</color>
--- 296,305 ----
<color name="primary_dark_500">#ff4f545c</color>
<color name="primary_dark_530">#ff484c54</color>
<color name="primary_dark_560">#ff40444b</color>
! <color name="primary_dark_600">#ff000000</color>
! <color name="primary_dark_630">#ff000000</color>
<color name="primary_dark_660">#ff292b2f</color>
! <color name="primary_dark_700">#ff000000</color>
<color name="primary_dark_730">#ff1e1f22</color>
<color name="primary_dark_760">#ff1b1d20</color>
<color name="primary_dark_800">#ff18191c</color>
***************
*** 344,352 ****
<color name="primary_text_default_material_light">#de000000</color>
<color name="primary_text_disabled_material_dark">#4dffffff</color>
<color name="primary_text_disabled_material_light">#39000000</color>
! <color name="purple_brand">#ff738bd7</color>
! <color name="purple_brand_alpha_10">#1a738bd7</color>
! <color name="purple_brand_dark">#ff697ec4</color>
<color name="purple_brand_hint">#ffc9d2f0</color>
<color name="purple_brand_notification">#ff5161ff</color>
<color name="reaction_background_me_dark">#4d5c6a9e</color>
--- 344,352 ----
<color name="primary_text_default_material_light">#de000000</color>
<color name="primary_text_disabled_material_dark">#4dffffff</color>
<color name="primary_text_disabled_material_light">#39000000</color>
! <color name="purple_brand">#ff9c4249</color>
! <color name="purple_brand_alpha_10">#1a9c4249</color>
! <color name="purple_brand_dark">#ff000000</color>
<color name="purple_brand_hint">#ffc9d2f0</color>
<color name="purple_brand_notification">#ff5161ff</color>
<color name="reaction_background_me_dark">#4d5c6a9e</color>
***************
*** 485,491 ****
<color name="switch_thumb_disabled_material_light">#ffbdbdbd</color>
<color name="switch_thumb_normal_material_dark">#ffbdbdbd</color>
<color name="switch_thumb_normal_material_light">#fff1f1f1</color>
! <color name="tooltip_background_dark">#e6616161</color>
<color name="tooltip_background_light">#e6ffffff</color>
<color name="transparent">@android:color/transparent</color>
<color name="twitch">#ff593695</color>
--- 485,491 ----
<color name="switch_thumb_disabled_material_light">#ffbdbdbd</color>
<color name="switch_thumb_normal_material_dark">#ffbdbdbd</color>
<color name="switch_thumb_normal_material_light">#fff1f1f1</color>
! <color name="tooltip_background_dark">#e6000000</color>
<color name="tooltip_background_light">#e6ffffff</color>
<color name="transparent">@android:color/transparent</color>
<color name="twitch">#ff593695</color>
Only in com.discord-1078/res/values: colors.xml.orig
diff -crB com.discord-1078-base/res/values/styles.xml com.discord-1078/res/values/styles.xml
*** com.discord-1078-base/res/values/styles.xml 2020-03-26 10:35:50.715547408 +0300
--- com.discord-1078/res/values/styles.xml 2020-03-26 10:56:47.018076742 +0300
***************
*** 395,401 ****
<item name="tabTextColor">@color/white_alpha_40</item>
<item name="theme_backspace_icon">@drawable/ic_backspace_white_24dp</item>
<item name="theme_chat_block_quote_divider">@color/primary_500</item>
! <item name="theme_chat_blocked_bg">#ff34373c</item>
<item name="theme_chat_blocked_text">@color/grey_unread</item>
<item name="theme_chat_code">@color/primary_630</item>
<item name="theme_chat_codeblock_border">@color/grey_account</item>
--- 395,401 ----
<item name="tabTextColor">@color/white_alpha_40</item>
<item name="theme_backspace_icon">@drawable/ic_backspace_white_24dp</item>
<item name="theme_chat_block_quote_divider">@color/primary_500</item>
! <item name="theme_chat_blocked_bg">@color/primary_500</item>
<item name="theme_chat_blocked_text">@color/grey_unread</item>
<item name="theme_chat_code">@color/primary_630</item>
<item name="theme_chat_codeblock_border">@color/grey_account</item>
***************
*** 407,419 ****
<item name="theme_chat_input_button_tint_colors">@color/chat_input_button_tint_colors_dark</item>
<item name="theme_chat_input_content_tab_bg">@drawable/drawable_rect_rounded_dark</item>
<item name="theme_chat_input_divider">@color/dark_grey_2_alpha_10</item>
! <item name="theme_chat_input_edit">#ff3e4145</item>
<item name="theme_chat_input_photo_selection_icon">@drawable/ic_img_selected_dark_theme</item>
<item name="theme_chat_loading_spinner_color">@color/white</item>
! <item name="theme_chat_mentioned_me">#1afaa61a</item>
<item name="theme_chat_reaction_background">@drawable/drawable_bg_reaction_dark</item>
<item name="theme_chat_reaction_text_color">@drawable/drawable_reaction_text_color_dark</item>
! <item name="theme_chat_spoiler_bg">@color/primary_700</item>
<item name="theme_chat_spoiler_bg_visible">@color/white_alpha_10</item>
<item name="theme_chat_spoiler_inapp_bg">@color/primary_600</item>
<item name="theme_emoji_icon_activity">@drawable/ic_emoji_activity_dark</item>
--- 407,419 ----
<item name="theme_chat_input_button_tint_colors">@color/chat_input_button_tint_colors_dark</item>
<item name="theme_chat_input_content_tab_bg">@drawable/drawable_rect_rounded_dark</item>
<item name="theme_chat_input_divider">@color/dark_grey_2_alpha_10</item>
! <item name="theme_chat_input_edit">@color/primary_600</item>
<item name="theme_chat_input_photo_selection_icon">@drawable/ic_img_selected_dark_theme</item>
<item name="theme_chat_loading_spinner_color">@color/white</item>
! <item name="theme_chat_mentioned_me">@color/purple_brand_alpha_10</item>
<item name="theme_chat_reaction_background">@drawable/drawable_bg_reaction_dark</item>
<item name="theme_chat_reaction_text_color">@drawable/drawable_reaction_text_color_dark</item>
! <item name="theme_chat_spoiler_bg">@color/primary_500</item>
<item name="theme_chat_spoiler_bg_visible">@color/white_alpha_10</item>
<item name="theme_chat_spoiler_inapp_bg">@color/primary_600</item>
<item name="theme_emoji_icon_activity">@drawable/ic_emoji_activity_dark</item>
***************
*** 835,841 ****
<item name="colorControlActivated">@color/brand_500</item>
<item name="colorControlNormal">@color/primary_100</item>
<item name="colorPrimary">@color/primary_600</item>
! <item name="colorPrimaryDark">#ff2b2e31</item>
</style>
<style name="AppTheme.Dark.Evil" parent="@style/AppTheme.Dark">
<item name="colorAccent">@color/brand_600</item>
--- 835,841 ----
<item name="colorControlActivated">@color/brand_500</item>
<item name="colorControlNormal">@color/primary_100</item>
<item name="colorPrimary">@color/primary_600</item>
! <item name="colorPrimaryDark">@color/primary_630</item>
</style>
<style name="AppTheme.Dark.Evil" parent="@style/AppTheme.Dark">
<item name="colorAccent">@color/brand_600</item>
***************
*** 865,871 ****
<item name="colorControlActivated">@color/brand_500</item>
<item name="colorControlNormal">@color/primary_100</item>
<item name="colorPrimary">@color/primary_600</item>
! <item name="colorPrimaryDark">#ff2b2e31</item>
</style>
<style name="AppTheme.Dark.Notice.PositiveRed" parent="@style/AppTheme.Dark.Notice">
<item name="buttonBarPositiveButtonStyle">@style/UiKit.Material.Button.Red.Fit</item>
--- 865,871 ----
<item name="colorControlActivated">@color/brand_500</item>
<item name="colorControlNormal">@color/primary_100</item>
<item name="colorPrimary">@color/primary_600</item>
! <item name="colorPrimaryDark">@color/primary_630</item>
</style>
<style name="AppTheme.Dark.Notice.PositiveRed" parent="@style/AppTheme.Dark.Notice">
<item name="buttonBarPositiveButtonStyle">@style/UiKit.Material.Button.Red.Fit</item>
Only in com.discord-1078/res/values: styles.xml.orig
Only in com.discord-1078/res/values: styles.xml.rej
diff -crB com.discord-1078-base/smali/com/discord/app/AppActivity$d.smali com.discord-1078/smali/com/discord/app/AppActivity$d.smali
*** com.discord-1078-base/smali/com/discord/app/AppActivity$d.smali 2020-03-26 10:35:54.445566444 +0300
--- com.discord-1078/smali/com/discord/app/AppActivity$d.smali 2020-03-26 10:57:09.298201226 +0300
***************
*** 115,121 ****
.line 7
iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
! const v1, 0x7f060245
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->setStatusBarColorResourceId(Landroid/app/Activity;I)V
--- 115,121 ----
.line 7
iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;
! const v1, 0x7f060022
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->setStatusBarColorResourceId(Landroid/app/Activity;I)V
Only in com.discord-1078/smali/com/discord/app: AppActivity$d.smali.orig
Only in com.discord-1078/smali/com/discord/app: AppActivity$d.smali.rej

View file

@ -110,6 +110,8 @@ Self note: Top bar color is set by `setStatusBarColorResourceId`
#### Value reference
These are mostly outdated.
- primary_100 -> button/title color (Friends, User Settings, your name on bottom on sidebar, channel name)
- primary_300 -> entry color (names on direct messages), also used on dtag on small user profile
- primary_400 -> label color (Direct Messages, "online", your discrim on bottom of sidebar, note field, @/# on channel name bar)

View file

@ -1,8 +1,8 @@
Only in com.discord-1078: build
Only in com.discord-1078: dist
Binary files com.discord-1078-base/build/apk/classes.dex and com.discord-1078/build/apk/classes.dex differ
Binary files com.discord-1078-base/dist/com.discord-1078.apk and com.discord-1078/dist/com.discord-1078.apk differ
diff -crB com.discord-1078-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali com.discord-1078/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali
*** com.discord-1078-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2020-03-26 10:35:54.852235186 +0300
--- com.discord-1078/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2020-03-26 16:43:49.579249481 +0300
--- com.discord-1078/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2020-03-27 12:53:46.243461585 +0300
***************
*** 80,110 ****
@ -46,7 +46,7 @@ diff -crB com.discord-1078-base/smali/com/discord/stores/StoreExperiments$getExp
.end method
diff -crB com.discord-1078-base/smali/com/discord/stores/StoreExperiments.smali com.discord-1078/smali/com/discord/stores/StoreExperiments.smali
*** com.discord-1078-base/smali/com/discord/stores/StoreExperiments.smali 2020-03-26 10:35:54.862235237 +0300
--- com.discord-1078/smali/com/discord/stores/StoreExperiments.smali 2020-03-26 16:43:49.579249481 +0300
--- com.discord-1078/smali/com/discord/stores/StoreExperiments.smali 2020-03-27 12:53:46.243461585 +0300
***************
*** 1318,1375 ****
.end method
@ -119,9 +119,31 @@ diff -crB com.discord-1078-base/smali/com/discord/stores/StoreExperiments.smali
.end method
.method public final isInitialized()Lrx/Observable;
diff -crB com.discord-1078-base/smali/com/discord/widgets/chat/input/WidgetChatInputSend.smali com.discord-1078/smali/com/discord/widgets/chat/input/WidgetChatInputSend.smali
*** com.discord-1078-base/smali/com/discord/widgets/chat/input/WidgetChatInputSend.smali 2020-03-26 10:35:55.708906224 +0300
--- com.discord-1078/smali/com/discord/widgets/chat/input/WidgetChatInputSend.smali 2020-03-27 13:03:37.667100509 +0300
***************
*** 321,327 ****
if-eqz p3, :cond_4
.line 8
! invoke-virtual {p3, p1}, Lcom/discord/app/AppActivity;->showKeyboard(Landroid/view/View;)V
goto :goto_1
--- 321,329 ----
if-eqz p3, :cond_4
.line 8
! # Without this line commented out, tapping on someone's avatar to mention them causes the keyboard to toggle
! # Why? Because showKeyboard and hideKeyboard have the same function.
! # invoke-virtual {p3, p1}, Lcom/discord/app/AppActivity;->showKeyboard(Landroid/view/View;)V
goto :goto_1
diff -crB com.discord-1078-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali com.discord-1078/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali
*** com.discord-1078-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2020-03-26 10:35:56.282242483 +0300
--- com.discord-1078/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2020-03-26 16:43:49.579249481 +0300
--- com.discord-1078/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2020-03-27 12:53:46.243461585 +0300
***************
*** 87,97 ****
@ -145,7 +167,7 @@ diff -crB com.discord-1078-base/smali/com/discord/widgets/settings/WidgetSetting
diff -crB com.discord-1078-base/smali/com/discord/widgets/tabs/TabsFeatureFlag$fetchExperiment$2.smali com.discord-1078/smali/com/discord/widgets/tabs/TabsFeatureFlag$fetchExperiment$2.smali
*** com.discord-1078-base/smali/com/discord/widgets/tabs/TabsFeatureFlag$fetchExperiment$2.smali 2020-03-26 10:35:56.478910154 +0300
--- com.discord-1078/smali/com/discord/widgets/tabs/TabsFeatureFlag$fetchExperiment$2.smali 2020-03-26 16:43:49.579249481 +0300
--- com.discord-1078/smali/com/discord/widgets/tabs/TabsFeatureFlag$fetchExperiment$2.smali 2020-03-27 12:53:46.243461585 +0300
***************
*** 74,82 ****
move-result-object v0
@ -167,7 +189,7 @@ diff -crB com.discord-1078-base/smali/com/discord/widgets/tabs/TabsFeatureFlag$f
diff -crB com.discord-1078-base/smali/com/discord/widgets/tabs/TabsFeatureFlag.smali com.discord-1078/smali/com/discord/widgets/tabs/TabsFeatureFlag.smali
*** com.discord-1078-base/smali/com/discord/widgets/tabs/TabsFeatureFlag.smali 2020-03-26 10:35:56.482243505 +0300
--- com.discord-1078/smali/com/discord/widgets/tabs/TabsFeatureFlag.smali 2020-03-26 16:52:13.155313808 +0300
--- com.discord-1078/smali/com/discord/widgets/tabs/TabsFeatureFlag.smali 2020-03-27 12:53:46.243461585 +0300
***************
*** 74,80 ****
.line 2

View file

@ -0,0 +1,23 @@
Only in com.discord-1078: build
Only in com.discord-1078: dist
diff -crB com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali
*** com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali 2020-03-26 10:35:55.202236972 +0300
--- com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali 2020-03-27 12:03:29.601718099 +0300
***************
*** 1355,1360 ****
--- 1355,1368 ----
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+ # Set avatar image size to 256
+
+ const-string v0, "?size=256"
+
+ invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+
+ const-string v0, "https://cdn.discordapp.com/avatars/"
+
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0

View file

@ -0,0 +1,7 @@
## DisTok CutTheCord: HQ Avatars
Changes avatars from 128x128 to 256x256 variants.
#### Available and tested on:
- 16-alpha4