fix(Spotify - Custom theme): Override more color resources (#4690)

This commit is contained in:
Nuckyz
2025-04-02 14:14:17 -03:00
committed by GitHub
parent 3c316fa329
commit d7a7a0b982
7 changed files with 222 additions and 62 deletions

View File

@ -0,0 +1,22 @@
package app.revanced.extension.spotify.layout.theme;
import android.graphics.Color;
import app.revanced.extension.shared.Logger;
import app.revanced.extension.shared.Utils;
@SuppressWarnings("unused")
public final class CustomThemePatch {
/**
* Injection point.
*/
public static long getThemeColor(String colorString) {
try {
return Utils.getColorFromString(colorString);
} catch (Exception ex) {
Logger.printException(() -> "Invalid custom color: " + colorString, ex);
return Color.BLACK;
}
}
}