diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/etc/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/etc/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt new file mode 100644 index 000000000..0fbd9ae4f --- /dev/null +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/etc/branding/icon/patch/CustomBrandingIconRevancifyRedPatch.kt @@ -0,0 +1,31 @@ +package app.revanced.patches.youtube.layout.etc.branding.icon.patch + +import app.revanced.patcher.annotation.Description +import app.revanced.patcher.annotation.Name +import app.revanced.patcher.annotation.Version +import app.revanced.patcher.data.ResourceContext +import app.revanced.patcher.patch.PatchResult +import app.revanced.patcher.patch.PatchResultSuccess +import app.revanced.patcher.patch.ResourcePatch +import app.revanced.patcher.patch.annotations.DependsOn +import app.revanced.patcher.patch.annotations.Patch +import app.revanced.patches.shared.annotation.YouTubeCompatibility +import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch +import app.revanced.util.resources.IconHelper.customIcon +import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon + +@Patch(false) +@Name("custom-branding-icon-revancify-red") +@Description("Changes the YouTube launcher icon to Revancify Red.") +@DependsOn([SettingsPatch::class]) +@YouTubeCompatibility +@Version("0.0.1") +class CustomBrandingIconRevancifyRedPatch : ResourcePatch { + override fun execute(context: ResourceContext): PatchResult { + + context.customIcon("revancify-red") + context.updatePatchStatusIcon("revancify_red") + + return PatchResultSuccess() + } +} diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..a5e35c4aa Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..046bc0a11 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/ic_launcher.png b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/ic_launcher.png new file mode 100644 index 000000000..98358a9a3 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/ic_launcher_round.png new file mode 100644 index 000000000..98358a9a3 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/hdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..367e2d1a5 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..f42cdbb5c Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/ic_launcher.png b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/ic_launcher.png new file mode 100644 index 000000000..30644e9fb Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/ic_launcher_round.png new file mode 100644 index 000000000..30644e9fb Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/mdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..196398e3e Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..72a4c9fee Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/ic_launcher.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/ic_launcher.png new file mode 100644 index 000000000..bc37d0b5e Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..bc37d0b5e Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xhdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..dfb79d7ad Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..14af95446 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/ic_launcher.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/ic_launcher.png new file mode 100644 index 000000000..bb38e3049 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..bb38e3049 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxhdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..ceec7611e Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..f2ddefc62 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/ic_launcher.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..d0fd091e7 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..d0fd091e7 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/launchericon/xxxhdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/monochromeicon/drawable/adaptive_monochrome_ic_youtube_launcher.xml b/src/main/resources/youtube/branding/revancify-red/monochromeicon/drawable/adaptive_monochrome_ic_youtube_launcher.xml new file mode 100644 index 000000000..d922e6263 --- /dev/null +++ b/src/main/resources/youtube/branding/revancify-red/monochromeicon/drawable/adaptive_monochrome_ic_youtube_launcher.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..d563d394f Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..274fa9931 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..d73594621 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..8a6245171 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/hdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..4a807606a Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..8bf631290 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..7cdc4e27b Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..5ebae74b3 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/mdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..47e768016 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..ac99ffad3 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..671a70722 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..e9854e92c Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xhdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..f24618bb2 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..53afa9266 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..52ddee3ad Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..805c25d49 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxhdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..53afa9266 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..8f7c43c93 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..bc37d0b5e Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..bb38e3049 Binary files /dev/null and b/src/main/resources/youtube/branding/revancify-red/splashicon/xxxhdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/settings/values-v21/strings.xml b/src/main/resources/youtube/settings/values-v21/strings.xml index 6069d8a77..2dd157c1b 100644 --- a/src/main/resources/youtube/settings/values-v21/strings.xml +++ b/src/main/resources/youtube/settings/values-v21/strings.xml @@ -52,6 +52,7 @@ stock custom mmt + revancify / red stock Excluded Included