From 8fc390d4bc90ad57b24bb215e193b74737460338 Mon Sep 17 00:00:00 2001 From: chr56 Date: Tue, 7 May 2024 12:36:43 +0800 Subject: [PATCH] [res] remove color res `card_background_*` --- .../main/java/player/phonograph/util/theme/Attr.kt | 4 ++-- app/src/main/res/values-night/colors.xml | 2 -- app/src/main/res/values/colors.xml | 2 -- app/src/main/res/values/themes.xml | 12 ++++++------ 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/player/phonograph/util/theme/Attr.kt b/app/src/main/java/player/phonograph/util/theme/Attr.kt index aac355a14..cbbc39461 100644 --- a/app/src/main/java/player/phonograph/util/theme/Attr.kt +++ b/app/src/main/java/player/phonograph/util/theme/Attr.kt @@ -41,7 +41,7 @@ fun themeDividerColor(context: Context) = fun themeCardBackgroundColor(context: Context) = context.resolveColor( com.google.android.material.R.attr.cardBackgroundColor, - context.getColor(R.color.card_background_lightblack) + context.getColor(R.color.background_medium_lightblack) ) @CheckResult @@ -49,7 +49,7 @@ fun themeCardBackgroundColor(context: Context) = fun themeFloatingBackgroundColor(context: Context) = context.resolveColor( com.google.android.material.R.attr.colorBackgroundFloating, - context.getColor(R.color.card_background_lightblack) + context.getColor(R.color.background_medium_lightblack) ) @ColorInt diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index f3c46521a..31cfdb676 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -11,14 +11,12 @@ @color/md_grey_850 @color/md_grey_800 - @color/md_grey_800 @color/md_grey_900 @color/divider_dark @color/secondary_text_dark @color/md_black_1000 @color/md_grey_900 - @color/md_grey_900 @color/md_black_1000 @color/divider_black @color/secondary_text_dark diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index a784d264c..3b7f83f6a 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -11,14 +11,12 @@ @color/md_grey_50 @color/md_grey_50 - @color/md_grey_50 @color/md_grey_300 @color/divider_light @color/secondary_text_light @color/md_grey_50 @color/md_grey_50 - @color/md_grey_50 @color/md_grey_300 @color/divider_light @color/secondary_text_light diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 46a784b20..e21992346 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -20,8 +20,8 @@ @drawable/rect_selector_strong_auto @color/primary_text_default - @color/card_background_lightdark - @color/card_background_lightdark + @color/background_medium_lightdark + @color/background_medium_lightdark @color/footer_background_lightdark @color/divider_lightdark @color/secondary_text_default @@ -80,8 +80,8 @@ @drawable/rect_selector_strong_light @color/primary_text_default_lightmode - @color/md_white_1000 - @color/md_white_1000 + @color/material_grey_50 + @color/material_grey_50 @color/md_grey_300 @color/divider_light @color/secondary_text_default_lightmode @@ -94,8 +94,8 @@ @color/background_heavy_lightblack @color/background_medium_lightblack - @color/card_background_lightblack - @color/card_background_lightblack + @color/background_medium_lightblack + @color/background_medium_lightblack @color/footer_background_lightblack @color/divider_lightblack