From 09d531382387e649896e92c905b3ac65317c3eea Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sat, 22 Jul 2023 02:19:18 +0900 Subject: [PATCH] feat(microg): minor improvement --- .../branding/icon/patch/CustomBrandingIconMMTPatch.kt | 8 +++++--- .../MaterialYouPatch.kt} | 9 ++++----- .../resources/youtube/settings/xml/revanced_prefs.xml | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) rename src/main/kotlin/app/revanced/patches/microg/layout/materialyou/{MicrogMaterialYouPatch.kt => patch/MaterialYouPatch.kt} (83%) diff --git a/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt b/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt index 2f50750e6e..8efaa4e2f0 100644 --- a/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt +++ b/src/main/kotlin/app/revanced/patches/microg/layout/branding/icon/patch/CustomBrandingIconMMTPatch.kt @@ -4,13 +4,15 @@ 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.PatchResult +import app.revanced.patcher.patch.PatchResultSuccess +import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.microg.utils.annotations.MicroGCompatibility import app.revanced.util.resources.MicroGResourceUtils.copyFiles -@Patch -@Name("custom-branding-microg-mmt") +@Patch(false) +@Name("Custom branding icon MMT") @Description("Changes the MicroG launcher icon to MMT.") @MicroGCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/microg/layout/materialyou/MicrogMaterialYouPatch.kt b/src/main/kotlin/app/revanced/patches/microg/layout/materialyou/patch/MaterialYouPatch.kt similarity index 83% rename from src/main/kotlin/app/revanced/patches/microg/layout/materialyou/MicrogMaterialYouPatch.kt rename to src/main/kotlin/app/revanced/patches/microg/layout/materialyou/patch/MaterialYouPatch.kt index 429703b9df..7358d22eab 100644 --- a/src/main/kotlin/app/revanced/patches/microg/layout/materialyou/MicrogMaterialYouPatch.kt +++ b/src/main/kotlin/app/revanced/patches/microg/layout/materialyou/patch/MaterialYouPatch.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.microg.layout.branding.icon.patch +package app.revanced.patches.microg.layout.materialyou.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name @@ -9,16 +9,15 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.microg.utils.annotations.MicroGCompatibility - import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources @Patch(false) -@Name("microg-materialyou") -@Description("Enables MaterialYou theme for microG for Android 12+") +@Name("MaterialYou") +@Description("Enables MaterialYou theme for Android 12+") @MicroGCompatibility @Version("0.0.1") -class MicrogMaterialYouPatch : ResourcePatch { +class MaterialYouPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { arrayOf( diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index aa310b9eee..61fb79184f 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -281,7 +281,7 @@ - +