feat(YTmusic): custom-branding-music-mmt (#9)

add `custom-branding-music-mmt` patch
This commit is contained in:
KAZI MMT
2023-03-06 09:01:43 +06:00
committed by GitHub
parent 9db5d85353
commit 1753a427f4
32 changed files with 38 additions and 0 deletions

View File

@ -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()
}
}