feat(YTmusic): custom-branding-music-mmt
(#9)
add `custom-branding-music-mmt` patch
@ -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()
|
||||
}
|
||||
|
||||
}
|
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 9.5 KiB |
@ -0,0 +1,13 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:name="vector"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:name="path"
|
||||
android:pathData="M 34.6 65.9 L 34.6 42.2 C 34.6 39.6 36.4 38.8 38.4 40.3 L 54.2 51.5 C 56.3 52.9 56.3 55.3 54.2 56.8 L 38.5 68 C 36.2 69.4 34.6 68.5 34.6 65.9 Z M 58.8 68.6 C 54.8 68.6 51.1 67 48.6 64.3 L 55.3 59.5 C 56.3 60.1 57.5 60.6 59 60.6 C 62.7 60.6 65.7 57.6 65.7 53.9 C 65.7 50.2 62.7 47.2 59 47.2 C 57.7 47.2 56.4 47.5 55.3 48.3 L 48.6 43.5 C 51.2 40.9 54.8 39.2 58.8 39.2 C 66.8 39.2 73.4 45.8 73.4 53.8 C 73.4 62.1 67 68.6 58.8 68.6 Z M 57.4 54.1 C 57.4 53.3 58 52.5 59 52.5 C 59.8 52.5 60.6 53.1 60.6 54.1 C 60.6 54.9 60 55.7 59 55.7 C 58 55.7 57.4 54.9 57.4 54.1 Z"
|
||||
android:fillColor="#000"
|
||||
android:strokeWidth="1"/>
|
||||
</vector>
|
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 8.6 KiB |