wip: music

This commit is contained in:
drobotk 2026-03-13 13:05:04 +01:00
parent 7fe7ce437c
commit b435564fd4
No known key found for this signature in database
GPG key ID: D53DB3B14C514056
4 changed files with 20 additions and 4 deletions

View file

@ -4,7 +4,6 @@ import app.revanced.patcher.extensions.addInstructions
import app.revanced.patcher.extensions.getInstruction
import app.revanced.patcher.extensions.wideLiteral
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.patches.all.misc.resources.addResources
import app.revanced.patches.music.misc.settings.PreferenceScreen
import app.revanced.patches.shared.layout.branding.header.changeHeaderPatch
import app.revanced.patches.shared.misc.mapping.ResourceType
@ -20,7 +19,11 @@ private val targetResourceDirectoryNames = mapOf(
)
private val variants = arrayOf("dark")
private val logoResourceNames = arrayOf("revanced_header_dark")
private val logoResourceNames = arrayOf(
"revanced_header_minimal",
"revanced_header_rounded",
)
private val headerDrawableNames = arrayOf(
"action_bar_logo_ringo2",

View file

@ -48,7 +48,7 @@ val changeMiniplayerColorPatch = bytecodePatch(
)
apply {
addResources("music", "layout.miniplayercolor.changeMiniplayerColor")
addResources("music", "layout.miniplayer.changeMiniplayerColor")
PreferenceScreen.PLAYER.addPreferences(
SwitchPreference("revanced_music_change_miniplayer_color"),