diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/etc/branding/icon/patch/CustomBrandingIconMMTredPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/etc/branding/icon/patch/CustomBrandingIconMMTredPatch.kt new file mode 100644 index 000000000..6fd28b396 --- /dev/null +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/etc/branding/icon/patch/CustomBrandingIconMMTredPatch.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-mmtred") +@Description("Changes the YouTube launcher icon (MMT Red).") +@DependsOn([SettingsPatch::class]) +@YouTubeCompatibility +@Version("0.0.1") +class CustomBrandingIconMMTredPatch : ResourcePatch { + override fun execute(context: ResourceContext): PatchResult { + + context.customIcon("mmtred") + context.updatePatchStatusIcon("mmtred") + + return PatchResultSuccess() + } +} diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..fb3a5878c Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..76cd36a96 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/ic_launcher.png b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/ic_launcher.png new file mode 100644 index 000000000..c6ab29d43 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/ic_launcher_round.png new file mode 100644 index 000000000..c6ab29d43 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/hdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..0bba584ce Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..45ce791a2 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/ic_launcher.png b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/ic_launcher.png new file mode 100644 index 000000000..e48102439 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/ic_launcher_round.png new file mode 100644 index 000000000..e48102439 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/mdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..7fe2d2ad1 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..4a8d14a16 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/ic_launcher.png b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/ic_launcher.png new file mode 100644 index 000000000..28e18cf30 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..28e18cf30 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xhdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..0669723ff Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..ed06ff380 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/ic_launcher.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/ic_launcher.png new file mode 100644 index 000000000..34ef7e819 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..34ef7e819 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxhdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/adaptiveproduct_youtube_background_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/adaptiveproduct_youtube_background_color_108.png new file mode 100644 index 000000000..e7dcfb0b2 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/adaptiveproduct_youtube_background_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/adaptiveproduct_youtube_foreground_color_108.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/adaptiveproduct_youtube_foreground_color_108.png new file mode 100644 index 000000000..1fc7cb0aa Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/adaptiveproduct_youtube_foreground_color_108.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/ic_launcher.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..021cb91e4 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/ic_launcher.png differ diff --git a/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/ic_launcher_round.png b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..021cb91e4 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/launchericon/xxxhdpi/ic_launcher_round.png differ diff --git a/src/main/resources/youtube/branding/mmtred/monochromeicon/drawable/adaptive_monochrome_ic_youtube_launcher.xml b/src/main/resources/youtube/branding/mmtred/monochromeicon/drawable/adaptive_monochrome_ic_youtube_launcher.xml new file mode 100644 index 000000000..aec9f0686 --- /dev/null +++ b/src/main/resources/youtube/branding/mmtred/monochromeicon/drawable/adaptive_monochrome_ic_youtube_launcher.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..175fdb450 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..7d0f64998 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..779a3ee11 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..cc0bfdff8 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/hdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..34bf5bc58 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..785a72606 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..daa0641d1 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..779a3ee11 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/mdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..7d0f64998 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..ae2672fe9 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..82d90a7c8 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..93f1f1032 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xhdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..5ad611bd6 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..d5bfb0965 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..93f1f1032 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..7c4f0cfd7 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxhdpi/product_logo_youtube_color_36.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_144.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_144.png new file mode 100644 index 000000000..d5bfb0965 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_144.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_192.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_192.png new file mode 100644 index 000000000..83703b24e Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_192.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_24.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_24.png new file mode 100644 index 000000000..252ca1240 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_24.png differ diff --git a/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_36.png b/src/main/resources/youtube/branding/mmtred/splashicon/xxxhdpi/product_logo_youtube_color_36.png new file mode 100644 index 000000000..34bf5bc58 Binary files /dev/null and b/src/main/resources/youtube/branding/mmtred/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 3da0f29aa..43c88c3dd 100644 --- a/src/main/resources/youtube/settings/values-v21/strings.xml +++ b/src/main/resources/youtube/settings/values-v21/strings.xml @@ -15,6 +15,7 @@ afn / blue stock afn / red + mmt / red revancify stock Excluded