From 4164ed3486330add8ff158f5b6765fa26587154d Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Wed, 24 Apr 2024 01:04:51 +0400 Subject: [PATCH] fix(YouTube - Settings): Use same background color for about screen if Theme patch is not included --- .../app/revanced/integrations/youtube/ThemeHelper.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/ThemeHelper.java b/app/src/main/java/app/revanced/integrations/youtube/ThemeHelper.java index 0cc8061c70..c9f7536b52 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/ThemeHelper.java +++ b/app/src/main/java/app/revanced/integrations/youtube/ThemeHelper.java @@ -16,6 +16,7 @@ public class ThemeHelper { /** * Injection point. */ + @SuppressWarnings("unused") public static void setTheme(Enum value) { final int newOrdinalValue = value.ordinal(); if (themeValue != newOrdinalValue) { @@ -40,12 +41,12 @@ public static void setActivityTheme(Activity activity) { */ private static String darkThemeResourceName() { // Value is changed by Theme patch, if included. - return "@android:color/black"; + return "@color/yt_black3"; } /** * @return The dark theme color as specified by the Theme patch (if included), - * or the Android color of black. + * or the dark mode background color unpatched YT uses. */ public static int getDarkThemeColor() { if (darkThemeColor == null) { @@ -59,12 +60,12 @@ public static int getDarkThemeColor() { */ private static String lightThemeResourceName() { // Value is changed by Theme patch, if included. - return "@android:color/white"; + return "@color/yt_white1"; } /** * @return The light theme color as specified by the Theme patch (if included), - * or the Android color of white. + * or the non dark mode background color unpatched YT uses. */ public static int getLightThemeColor() { if (lightThemeColor == null) {