feat(custom-branding-icon-afn-red): change icon path

This commit is contained in:
inotia00
2023-05-03 18:20:16 +09:00
parent 2a55033fd5
commit 21e4b56845
43 changed files with 4 additions and 7 deletions

View File

@ -16,15 +16,15 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
@Patch @Patch
@Name("custom-branding-icon-afn-red") @Name("custom-branding-icon-afn-red")
@Description("Changes the YouTube launcher icon (Afn / Red).") @Description("Changes the YouTube launcher icon to Afn Red.")
@DependsOn([SettingsPatch::class]) @DependsOn([SettingsPatch::class])
@YouTubeCompatibility @YouTubeCompatibility
@Version("0.0.1") @Version("0.0.1")
class CustomBrandingIconRedPatch : ResourcePatch { class CustomBrandingIconRedPatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult { override fun execute(context: ResourceContext): PatchResult {
context.customIcon("red") context.customIcon("afn-red")
context.updatePatchStatusIcon("red") context.updatePatchStatusIcon("afn_red")
return PatchResultSuccess() return PatchResultSuccess()
} }

View File

@ -47,12 +47,9 @@
<string name="revanced_hide_subscriptions_button_summary_on">@string/revanced_hide_shorts_player_subscriptions_button_summary_on</string> <string name="revanced_hide_subscriptions_button_summary_on">@string/revanced_hide_shorts_player_subscriptions_button_summary_on</string>
<string name="revanced_hide_subscriptions_button_title">@string/revanced_hide_shorts_player_subscriptions_button_title</string> <string name="revanced_hide_subscriptions_button_title">@string/revanced_hide_shorts_player_subscriptions_button_title</string>
<string name="revanced_whitelisting_speed_button">@string/camera_speed_button_label</string> <string name="revanced_icons_afn_red">afn / red</string>
<string name="revanced_icons_blue">afn / blue</string>
<string name="revanced_icons_default">stock</string> <string name="revanced_icons_default">stock</string>
<string name="revanced_icons_custom">custom</string> <string name="revanced_icons_custom">custom</string>
<string name="revanced_icons_red">afn / red</string>
<string name="revanced_icons_mmt">mmt</string> <string name="revanced_icons_mmt">mmt</string>
<string name="revanced_icons_revancify">revancify</string> <string name="revanced_icons_revancify">revancify</string>
<string name="revanced_labels_default">stock</string> <string name="revanced_labels_default">stock</string>