-
-
Notifications
You must be signed in to change notification settings - Fork 404
feat(Spotify - Custom theme): Add option to use unmodified player background gradient #4741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt
Outdated
Show resolved
Hide resolved
patches/src/main/kotlin/app/revanced/patches/spotify/misc/UnlockPremiumPatch.kt
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@LisoUseInAIKyrios This PR now closes #4740 |
Could also implement That could be another PR but it's related to the changes here (and the player background changes have not reached main yet). |
Will take a look into it |
This PR now closes #4727 |
patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt
Show resolved
Hide resolved
patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt
Show resolved
Hide resolved
Can we add MaterialYou support 👀 |
I don't know if it's within the scope of this PR, but what about #1891? |
I dont want to fix the accent colors right now. It's kinda of minimum importance in my opinion. |
patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt
Show resolved
Hide resolved
patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemePatch.kt
Outdated
Show resolved
Hide resolved
public static final fun addInstructionsAtControlFlowLabel (Lapp/revanced/patcher/util/proxy/mutableTypes/MutableMethod;ILjava/lang/String;)V | ||
public static final fun containsLiteralInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;D)Z | ||
public static final fun containsLiteralInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;F)Z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can soon look into moving helper functions into a separate Gradle module in the patcher repository. The module would be published as a separate maven package and could be used by patches, or other repos that might wanna use them. We could also get rid of all these extension functions we arbitrarily chose to create in the patcher repo and move them to the gradle module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant with |
The current theme patch overrides the gradient color which songs from every song in the player view, the one where you can view song name, artist info, lyrics. This PR adds an option to control that behavior, along with other fixes and refactors. |
# Conflicts: # patches/src/main/kotlin/app/revanced/patches/spotify/layout/theme/CustomThemeBytecodePatch.kt
Anything left todo here? |
Can you test if the voice assistant patches work in the legacy version? If yes then the early return should be moved down |
Besides that, this PR can be merged. More fixes can be added in a future PR if needed. |
This PR doesn't change anything with voice assistant. Voice assistant attributes seems to be present with the legacy app target. |
It doesn't change anything, however the current implementation returns before voice assistant is patched. This can be sneeked inside this PR and fixed. |
Oh that change. I checked and the fingerprint doesn't resolve with the legacy target. |
Ahh I see, seems fine then |
# [5.20.0-dev.2](v5.20.0-dev.1...v5.20.0-dev.2) (2025-04-13) ### Features * **Spotify - Custom theme:** Add option to use unmodified player background gradient ([#4741](#4741)) ([0ee3693](0ee3693))
# [5.20.0](v5.19.1...v5.20.0) (2025-04-15) ### Bug Fixes * **Duolingo - Hide ads:** Support lastest app release ([#4790](#4790)) ([215fccb](215fccb)) * **Spotify - Unlock Spotify Premium:** Remove premium restriction for 'Spotify Connect' ([#4782](#4782)) ([50f5b1a](50f5b1a)) * **Spotify:** Fix login by replacing `Spoof signature` patch with new `Spoof package info` patch ([#4794](#4794)) ([d639151](d639151)) * **YouTube - Remove background playback restrictions:** Restore PiP button functionality after screen is unlocked ([6837348](6837348)) ### Features * Add `Set target SDK version 34` patch (Disable edge-to-edge display) ([#4780](#4780)) ([dcf6178](dcf6178)) * **Spotify - Custom theme:** Add option to use unmodified player background gradient ([#4741](#4741)) ([0ee3693](0ee3693)) * **YouTube - Swipe controls:** Add option to change volume swipe sensitivity (step size) ([#4557](#4557)) ([8957325](8957325))
Adds a patching option to override the player background gradient with the custom background color.