From 3514039e8a92cc9aa7999ae3544a2cca1fe67369 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 19 Mar 2026 18:58:43 +0100 Subject: [PATCH] feat(Theme): Use dynamic system accents for Material You colors Co-authored-by: ILoveOpenSourceApplications <117499019+iloveopensourceapplications@users.noreply.github.com> --- .../revanced/patches/shared/layout/theme/BaseThemePatch.kt | 5 ++++- .../app/revanced/patches/youtube/layout/theme/ThemePatch.kt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/layout/theme/BaseThemePatch.kt b/patches/src/main/kotlin/app/revanced/patches/shared/layout/theme/BaseThemePatch.kt index 8c720c76e0..f8b14b13d8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/layout/theme/BaseThemePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/layout/theme/BaseThemePatch.kt @@ -62,7 +62,10 @@ internal val darkThemeBackgroundColorOption = stringOption( default = "@android:color/black", values = mapOf( "Pure black" to "@android:color/black", - "Material You" to "@android:color/system_neutral1_900", + "Material You (Neutral)" to "@android:color/system_neutral1_900", + "Material You - Primary" to "@android:color/system_accent1_800", + "Material You - Secondary" to "@android:color/system_accent2_800", + "Material You - Tertiary" to "@android:color/system_accent3_800", "Classic (old YouTube)" to "#212121", "Catppuccin (Mocha)" to "#181825", "Dark pink" to "#290025", diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt index 91479cb8e1..8d5026b17d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemePatch.kt @@ -48,7 +48,10 @@ val themePatch = baseThemePatch( default = "@android:color/white", values = mapOf( "White" to "@android:color/white", - "Material You" to "@android:color/system_neutral1_50", + "Material You (Neutral)" to "@android:color/system_neutral1_100", + "Material You - Primary" to "@android:color/system_accent1_200", + "Material You - Secondary" to "@android:color/system_accent2_200", + "Material You - Tertiary" to "@android:color/system_accent3_200", "Catppuccin (Latte)" to "#E6E9EF", "Light pink" to "#FCCFF3", "Light blue" to "#D1E0FF",