diff --git a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingMusicIconMMTPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingMusicIconMMTPatch.kt new file mode 100644 index 000000000..4d5fb71d4 --- /dev/null +++ b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/patch/CustomBrandingMusicIconMMTPatch.kt @@ -0,0 +1,25 @@ +package app.revanced.patches.music.layout.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.* +import app.revanced.patcher.patch.annotations.Patch +import app.revanced.patches.shared.annotation.YouTubeMusicCompatibility +import app.revanced.util.resources.IconHelper.customIconMusic + +@Patch(false) +@Name("custom-branding-music-mmt") +@Description("Changes the YouTube Music launcher icon to your choice (MMT).") +@YouTubeMusicCompatibility +@Version("0.0.1") +class CustomBrandingMusicIconMMTPatch : ResourcePatch { + override fun execute(context: ResourceContext): PatchResult { + + context.customIconMusic("mmt") + + return PatchResultSuccess() + } + +} diff --git a/src/main/resources/music/branding/mmt/launchericon/hdpi/adaptiveproduct_youtube_music_background_color_108.png b/src/main/resources/music/branding/mmt/launchericon/hdpi/adaptiveproduct_youtube_music_background_color_108.png new file mode 100644 index 000000000..995c181bd Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/hdpi/adaptiveproduct_youtube_music_background_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/hdpi/adaptiveproduct_youtube_music_foreground_color_108.png b/src/main/resources/music/branding/mmt/launchericon/hdpi/adaptiveproduct_youtube_music_foreground_color_108.png new file mode 100644 index 000000000..b1d397625 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/hdpi/adaptiveproduct_youtube_music_foreground_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/hdpi/ic_launcher_release.png b/src/main/resources/music/branding/mmt/launchericon/hdpi/ic_launcher_release.png new file mode 100644 index 000000000..dacf9a503 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/hdpi/ic_launcher_release.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/mdpi/adaptiveproduct_youtube_music_background_color_108.png b/src/main/resources/music/branding/mmt/launchericon/mdpi/adaptiveproduct_youtube_music_background_color_108.png new file mode 100644 index 000000000..8466fd13a Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/mdpi/adaptiveproduct_youtube_music_background_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/mdpi/adaptiveproduct_youtube_music_foreground_color_108.png b/src/main/resources/music/branding/mmt/launchericon/mdpi/adaptiveproduct_youtube_music_foreground_color_108.png new file mode 100644 index 000000000..73815c022 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/mdpi/adaptiveproduct_youtube_music_foreground_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/mdpi/ic_launcher_release.png b/src/main/resources/music/branding/mmt/launchericon/mdpi/ic_launcher_release.png new file mode 100644 index 000000000..9e5a233d2 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/mdpi/ic_launcher_release.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xhdpi/adaptiveproduct_youtube_music_background_color_108.png b/src/main/resources/music/branding/mmt/launchericon/xhdpi/adaptiveproduct_youtube_music_background_color_108.png new file mode 100644 index 000000000..3f149b9ab Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xhdpi/adaptiveproduct_youtube_music_background_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xhdpi/adaptiveproduct_youtube_music_foreground_color_108.png b/src/main/resources/music/branding/mmt/launchericon/xhdpi/adaptiveproduct_youtube_music_foreground_color_108.png new file mode 100644 index 000000000..dab0c17a8 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xhdpi/adaptiveproduct_youtube_music_foreground_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xhdpi/ic_launcher_release.png b/src/main/resources/music/branding/mmt/launchericon/xhdpi/ic_launcher_release.png new file mode 100644 index 000000000..46271d05f Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xhdpi/ic_launcher_release.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xxhdpi/adaptiveproduct_youtube_music_background_color_108.png b/src/main/resources/music/branding/mmt/launchericon/xxhdpi/adaptiveproduct_youtube_music_background_color_108.png new file mode 100644 index 000000000..4b09c4031 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xxhdpi/adaptiveproduct_youtube_music_background_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xxhdpi/adaptiveproduct_youtube_music_foreground_color_108.png b/src/main/resources/music/branding/mmt/launchericon/xxhdpi/adaptiveproduct_youtube_music_foreground_color_108.png new file mode 100644 index 000000000..9d1d19a49 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xxhdpi/adaptiveproduct_youtube_music_foreground_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xxhdpi/ic_launcher_release.png b/src/main/resources/music/branding/mmt/launchericon/xxhdpi/ic_launcher_release.png new file mode 100644 index 000000000..607731eda Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xxhdpi/ic_launcher_release.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/adaptiveproduct_youtube_music_background_color_108.png b/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/adaptiveproduct_youtube_music_background_color_108.png new file mode 100644 index 000000000..9a71df711 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/adaptiveproduct_youtube_music_background_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/adaptiveproduct_youtube_music_foreground_color_108.png b/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/adaptiveproduct_youtube_music_foreground_color_108.png new file mode 100644 index 000000000..49a4e07a5 Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/adaptiveproduct_youtube_music_foreground_color_108.png differ diff --git a/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/ic_launcher_release.png b/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/ic_launcher_release.png new file mode 100644 index 000000000..7fd682d7c Binary files /dev/null and b/src/main/resources/music/branding/mmt/launchericon/xxxhdpi/ic_launcher_release.png differ diff --git a/src/main/resources/music/branding/mmt/monochromeicon/drawable/ic_app_icons_themed_youtube_music.xml b/src/main/resources/music/branding/mmt/monochromeicon/drawable/ic_app_icons_themed_youtube_music.xml new file mode 100644 index 000000000..e1fdba50d --- /dev/null +++ b/src/main/resources/music/branding/mmt/monochromeicon/drawable/ic_app_icons_themed_youtube_music.xml @@ -0,0 +1,13 @@ + + + diff --git a/src/main/resources/music/branding/mmt/resource/drawable-hdpi/action_bar_logo.png b/src/main/resources/music/branding/mmt/resource/drawable-hdpi/action_bar_logo.png new file mode 100644 index 000000000..c7b06e5a2 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-hdpi/action_bar_logo.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-hdpi/action_bar_logo_release.png b/src/main/resources/music/branding/mmt/resource/drawable-hdpi/action_bar_logo_release.png new file mode 100644 index 000000000..4d2bdcee4 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-hdpi/action_bar_logo_release.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-hdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-hdpi/record.png new file mode 100644 index 000000000..68e2e652f Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-hdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-large-hdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-large-hdpi/record.png new file mode 100644 index 000000000..ce08eebe4 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-large-hdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-large-mdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-large-mdpi/record.png new file mode 100644 index 000000000..73f640aad Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-large-mdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-large-xhdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-large-xhdpi/record.png new file mode 100644 index 000000000..cbaab35d4 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-large-xhdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-mdpi/action_bar_logo.png b/src/main/resources/music/branding/mmt/resource/drawable-mdpi/action_bar_logo.png new file mode 100644 index 000000000..e64021f03 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-mdpi/action_bar_logo.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-mdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-mdpi/record.png new file mode 100644 index 000000000..59ddfc26b Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-mdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xhdpi/action_bar_logo.png b/src/main/resources/music/branding/mmt/resource/drawable-xhdpi/action_bar_logo.png new file mode 100644 index 000000000..02a484379 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xhdpi/action_bar_logo.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xhdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-xhdpi/record.png new file mode 100644 index 000000000..cdee28db5 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xhdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xlarge-hdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-xlarge-hdpi/record.png new file mode 100644 index 000000000..5297964bd Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xlarge-hdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xlarge-mdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-xlarge-mdpi/record.png new file mode 100644 index 000000000..9e388a6ce Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xlarge-mdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xxhdpi/action_bar_logo.png b/src/main/resources/music/branding/mmt/resource/drawable-xxhdpi/action_bar_logo.png new file mode 100644 index 000000000..167b7d83d Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xxhdpi/action_bar_logo.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xxhdpi/record.png b/src/main/resources/music/branding/mmt/resource/drawable-xxhdpi/record.png new file mode 100644 index 000000000..fffb40d2e Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xxhdpi/record.png differ diff --git a/src/main/resources/music/branding/mmt/resource/drawable-xxxhdpi/action_bar_logo.png b/src/main/resources/music/branding/mmt/resource/drawable-xxxhdpi/action_bar_logo.png new file mode 100644 index 000000000..f20b6aa15 Binary files /dev/null and b/src/main/resources/music/branding/mmt/resource/drawable-xxxhdpi/action_bar_logo.png differ