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

This commit is contained in:
inotia00 2023-05-03 18:23:57 +09:00
parent 21e4b56845
commit 6eae7c0fcb
42 changed files with 5 additions and 4 deletions

View File

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

View File

@ -47,6 +47,7 @@
<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_icons_afn_blue">afn / blue</string>
<string name="revanced_icons_afn_red">afn / red</string> <string name="revanced_icons_afn_red">afn / red</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>