diff --git a/app/src/main/java/com/battlelancer/seriesguide/ui/theme/Color.kt b/app/src/main/java/com/battlelancer/seriesguide/ui/theme/Color.kt index 2f9fe74007..fd7305cb36 100644 --- a/app/src/main/java/com/battlelancer/seriesguide/ui/theme/Color.kt +++ b/app/src/main/java/com/battlelancer/seriesguide/ui/theme/Color.kt @@ -42,10 +42,10 @@ val md_theme_light_scrim = Color(0xFF000000) val surfaceDimLight = Color(0xFFDED8E0) val surfaceBrightLight = Color(0xFFFEF7FF) val surfaceContainerLowestLight = Color(0xFFFFFFFF) -val surfaceContainerLowLight = Color(0xFFF8F1FA) -val surfaceContainerLight = Color(0xFFF2ECF4) -val surfaceContainerHighLight = Color(0xFFEDE6EF) -val surfaceContainerHighestLight = Color(0xFFE7E0E9) +val surfaceContainerLowLight = Color(0xFFE3E0E6) // Buttons, cards +val surfaceContainerLight = Color(0xFFDEDBE3) // App bars +val surfaceContainerHighLight = Color(0xFFDCD9E3) // Dialogs +val surfaceContainerHighestLight = md_theme_light_surfaceVariant // Text input, switch val md_theme_dark_primary = Color(0xFF927bbc) val md_theme_dark_onPrimary = Color(0xFF3D1976) @@ -79,7 +79,7 @@ val md_theme_dark_scrim = Color(0xFF000000) val surfaceDimDark = Color(0xFF151218) val surfaceBrightDark = Color(0xFF3B383F) val surfaceContainerLowestDark = Color(0xFF0F0D13) -val surfaceContainerLowDark = Color(0xFF1D1A21) -val surfaceContainerDark = Color(0xFF211E25) -val surfaceContainerHighDark = Color(0xFF2C292F) -val surfaceContainerHighestDark = Color(0xFF37333A) \ No newline at end of file +val surfaceContainerLowDark = Color(0xFF1F1B26) // Buttons, cards +val surfaceContainerDark = Color(0xFF221E2B) // App bars +val surfaceContainerHighDark = Color(0xFF25202E) // Dialogs +val surfaceContainerHighestDark = md_theme_dark_surfaceVariant // Text input, switch \ No newline at end of file diff --git a/app/src/main/java/com/battlelancer/seriesguide/util/ThemeUtils.kt b/app/src/main/java/com/battlelancer/seriesguide/util/ThemeUtils.kt index 0949b3ea4c..565eff9a76 100644 --- a/app/src/main/java/com/battlelancer/seriesguide/util/ThemeUtils.kt +++ b/app/src/main/java/com/battlelancer/seriesguide/util/ThemeUtils.kt @@ -36,7 +36,6 @@ import com.battlelancer.seriesguide.ui.SeriesGuidePreferences import com.google.android.material.appbar.AppBarLayout import com.google.android.material.color.DynamicColors import com.google.android.material.color.MaterialColors -import com.google.android.material.elevation.SurfaceColors import com.google.android.material.shape.MaterialShapeDrawable import com.uwetrottmann.androidutils.AndroidUtils import com.uwetrottmann.seriesguide.widgets.SlidingTabLayout @@ -190,8 +189,12 @@ object ThemeUtils { // As those are the majority of used devices, use an opaque color with alpha matching // the navigation bar instead. // Color.TRANSPARENT - // Widget.Material3.BottomNavigationView elevation is m3_sys_elevation_level2 - val opaqueNavBarColor = SurfaceColors.SURFACE_2.getColor(context) + // Widget.Material3.BottomNavigationView background is ?attr/colorSurfaceContainer + val opaqueNavBarColor = MaterialColors.getColor( + context, + com.google.android.material.R.attr.colorSurfaceContainer, + Color.BLACK + ) ColorUtils.setAlphaComponent(opaqueNavBarColor, 192) } } diff --git a/app/src/main/res/values/colors_md.xml b/app/src/main/res/values/colors_md.xml index 4f45db1f42..0d416217c5 100644 --- a/app/src/main/res/values/colors_md.xml +++ b/app/src/main/res/values/colors_md.xml @@ -26,10 +26,10 @@ #DED8E0 #FEF7FF #FFFFFF - #F8F1FA - #F2ECF4 - #EDE6EF - #E7E0E9 + #E3E0E6 + #DEDBE3 + #DCD9E3 + @color/md_theme_light_surfaceVariant #3D1976 #54348E @@ -54,10 +54,10 @@ #151218 #3B383F #0F0D13 - #1D1A21 - #211E25 - #2C292F - #37333A + #1F1B26 + #221E2B + #25202E + @color/md_theme_dark_surfaceVariant #6545A0 #BA1B1B