feat(microg): minor improvement

This commit is contained in:
inotia00 2023-07-22 02:19:18 +09:00
parent 54fbbb0f11
commit 09d5313823
3 changed files with 10 additions and 9 deletions

View File

@ -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")

View File

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

View File

@ -281,7 +281,7 @@
<Preference android:title=" " android:selectable="false" android:summary="@string/pref_about_category" />
<PreferenceScreen android:title="@string/revanced_patches_information" android:summary="@string/revanced_patches_information_summary" >
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_tool_used" />
<Preference android:title="revanced-patches" android:selectable="false" android:summary="2.184.31" />
<Preference android:title="revanced-patches" android:selectable="false" android:summary="2.184.3" />
<Preference android:title="revanced-integrations" android:key="revanced-integrations" android:selectable="false"/>
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_ads" />