Skip to content

Commit

Permalink
feat(microg): minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Jul 21, 2023
1 parent 54fbbb0 commit 09d5313
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit 09d5313

Please sign in to comment.