Move customtheme to xml+smali patch
This commit is contained in:
parent
f08854f5d0
commit
3e0464c796
2 changed files with 63 additions and 0 deletions
20
resources/patches/customtheme/87202.patch
Normal file
20
resources/patches/customtheme/87202.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff -crB from/smali_classes2/com/discord/widgets/tabs/WidgetTabsHost$configureSystemStatusBar$1.smali to/smali_classes2/com/discord/widgets/tabs/WidgetTabsHost$configureSystemStatusBar$1.smali
|
||||
*** from/smali_classes2/com/discord/widgets/tabs/WidgetTabsHost$configureSystemStatusBar$1.smali 2020-12-13 04:52:13.078109887 +0000
|
||||
--- to/smali_classes2/com/discord/widgets/tabs/WidgetTabsHost$configureSystemStatusBar$1.smali 2020-12-13 04:52:26.076186978 +0000
|
||||
***************
|
||||
*** 82,88 ****
|
||||
.line 3
|
||||
iget-object v0, p0, Lcom/discord/widgets/tabs/WidgetTabsHost$configureSystemStatusBar$1;->this$0:Lcom/discord/widgets/tabs/WidgetTabsHost;
|
||||
|
||||
! const v1, 0x7f0602e0
|
||||
|
||||
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
||||
|
||||
--- 82,88 ----
|
||||
.line 3
|
||||
iget-object v0, p0, Lcom/discord/widgets/tabs/WidgetTabsHost$configureSystemStatusBar$1;->this$0:Lcom/discord/widgets/tabs/WidgetTabsHost;
|
||||
|
||||
! const v1, 0x7f060024
|
||||
|
||||
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroidx/fragment/app/Fragment;I)I
|
||||
|
43
resources/xmlpatches/customtheme/87202.xml
Normal file
43
resources/xmlpatches/customtheme/87202.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<diffs>
|
||||
|
||||
<diff file="res/drawable/drawable_circle_black.xml" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<replace sel="shape/solid/@android:color">@android:color/transparent</replace>
|
||||
</diff>
|
||||
|
||||
<diff file="res/drawable/drawable_overlay_channels_active_dark.xml" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<replace sel="layer-list/item/shape/solid/@android:color">@color/primary_500</replace>
|
||||
</diff>
|
||||
|
||||
<diff file="res/layout/widget_chat_input.xml" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<replace sel="LinearLayout/LinearLayout/RelativeLayout/@android:background">@color/primary_600</replace>
|
||||
</diff>
|
||||
|
||||
<diff file="res/values/colors.xml">
|
||||
<replace sel="resources/color[@name='dark_grey_2']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='dark_grey_2_alpha_10']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='design_dark_default_color_background']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='design_dark_default_color_surface']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='grey_unread']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='link']/text()">#ff50f148</replace>
|
||||
<replace sel="resources/color[@name='primary_500']/text()">#ff333333</replace>
|
||||
<replace sel="resources/color[@name='primary_500_alpha_20']/text()">#330f0f0f</replace>
|
||||
<replace sel="resources/color[@name='primary_500_alpha_30']/text()">#4d0f0f0f</replace>
|
||||
<replace sel="resources/color[@name='primary_500_alpha_32']/text()">#510f0f0f</replace>
|
||||
<replace sel="resources/color[@name='primary_500_alpha_60']/text()">#990f0f0f</replace>
|
||||
<replace sel="resources/color[@name='primary_600']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='primary_600_alpha_60']/text()">#99000000</replace>
|
||||
<replace sel="resources/color[@name='primary_630']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='primary_630_alpha_60']/text()">#99000000</replace>
|
||||
<replace sel="resources/color[@name='primary_630_alpha_90']/text()">#e6000000</replace>
|
||||
<replace sel="resources/color[@name='primary_660']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='primary_660_alpha_90']/text()">#e6000000</replace>
|
||||
<replace sel="resources/color[@name='primary_700']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='primary_700_alpha_50']/text()">#80000000</replace>
|
||||
<replace sel="resources/color[@name='primary_700_alpha_60']/text()">#990f0f0f</replace>
|
||||
<replace sel="resources/color[@name='primary_dark_600']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='primary_dark_630']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='primary_dark_700']/text()">#ff000000</replace>
|
||||
<replace sel="resources/color[@name='tooltip_background_dark']/text()">#e6000000</replace>
|
||||
</diff>
|
||||
|
||||
</diffs>
|
Reference in a new issue