Skip to content

Commit

Permalink
[res] remove color res card_background_*
Browse files Browse the repository at this point in the history
  • Loading branch information
chr56 committed May 7, 2024
1 parent 5596251 commit 8fc390d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/player/phonograph/util/theme/Attr.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ 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
@ColorInt
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
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

<color name="background_heavy_lightdark">@color/md_grey_850</color>
<color name="background_medium_lightdark">@color/md_grey_800</color>
<color name="card_background_lightdark">@color/md_grey_800</color>
<color name="footer_background_lightdark">@color/md_grey_900</color>
<color name="divider_lightdark">@color/divider_dark</color>
<color name="icon_lightdark">@color/secondary_text_dark</color>

<color name="background_heavy_lightblack">@color/md_black_1000</color>
<color name="background_medium_lightblack">@color/md_grey_900</color>
<color name="card_background_lightblack">@color/md_grey_900</color>
<color name="footer_background_lightblack">@color/md_black_1000</color>
<color name="divider_lightblack">@color/divider_black</color>
<color name="icon_lightblack">@color/secondary_text_dark</color>
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

<color name="background_heavy_lightdark">@color/md_grey_50</color>
<color name="background_medium_lightdark">@color/md_grey_50</color>
<color name="card_background_lightdark">@color/md_grey_50</color>
<color name="footer_background_lightdark">@color/md_grey_300</color>
<color name="divider_lightdark">@color/divider_light</color>
<color name="icon_lightdark">@color/secondary_text_light</color>

<color name="background_heavy_lightblack">@color/md_grey_50</color>
<color name="background_medium_lightblack">@color/md_grey_50</color>
<color name="card_background_lightblack">@color/md_grey_50</color>
<color name="footer_background_lightblack">@color/md_grey_300</color>
<color name="divider_lightblack">@color/divider_light</color>
<color name="icon_lightblack">@color/secondary_text_light</color>
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<item name="rectSelectorStrong">@drawable/rect_selector_strong_auto</item>

<item name="md_color_button_text">@color/primary_text_default</item>
<item name="cardBackgroundColor">@color/card_background_lightdark</item>
<item name="colorBackgroundFloating">@color/card_background_lightdark</item>
<item name="cardBackgroundColor">@color/background_medium_lightdark</item>
<item name="colorBackgroundFloating">@color/background_medium_lightdark</item>
<item name="defaultFooterColor">@color/footer_background_lightdark</item>
<item name="dividerColor">@color/divider_lightdark</item>
<item name="iconColor">@color/secondary_text_default</item>
Expand Down Expand Up @@ -80,8 +80,8 @@
<item name="rectSelectorStrong">@drawable/rect_selector_strong_light</item>

<item name="md_color_button_text">@color/primary_text_default_lightmode</item>
<item name="cardBackgroundColor">@color/md_white_1000</item>
<item name="colorBackgroundFloating">@color/md_white_1000</item>
<item name="cardBackgroundColor">@color/material_grey_50</item>
<item name="colorBackgroundFloating">@color/material_grey_50</item>
<item name="defaultFooterColor">@color/md_grey_300</item>
<item name="dividerColor">@color/divider_light</item>
<item name="iconColor">@color/secondary_text_default_lightmode</item>
Expand All @@ -94,8 +94,8 @@
<item name="android:windowBackground">@color/background_heavy_lightblack</item>
<item name="md_background_color">@color/background_medium_lightblack</item>

<item name="cardBackgroundColor">@color/card_background_lightblack</item>
<item name="colorBackgroundFloating">@color/card_background_lightblack</item>
<item name="cardBackgroundColor">@color/background_medium_lightblack</item>
<item name="colorBackgroundFloating">@color/background_medium_lightblack</item>
<item name="defaultFooterColor">@color/footer_background_lightblack</item>
<item name="dividerColor">@color/divider_lightblack</item>
</style>
Expand Down

0 comments on commit 8fc390d

Please sign in to comment.