Fix: Match themes' colors

This commit is contained in:
machiav3lli 2022-06-26 01:50:05 +02:00
parent 3a12c90d81
commit d79e5abb9f
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@ val md_theme_light_onError = Color(0xFFFFFFFF)
val md_theme_light_onErrorContainer = Color(0xFF410002)
val md_theme_light_background = Color(0xFFFBFDF8)
val md_theme_light_onBackground = Color(0xFF191C1A)
val md_theme_light_surface = Color(0xFFFBFDF8)
val md_theme_light_surface = Color(0xFFE8F5E9)
val md_theme_light_onSurface = Color(0xFF191C1A)
val md_theme_light_surfaceVariant = Color(0xFFDCE5DB)
val md_theme_light_onSurfaceVariant = Color(0xFF414942)

View File

@ -15,6 +15,7 @@ fun AppTheme(
) {
MaterialTheme(
colorScheme = when {
//dynamicTheme -> dynamicDarkColorScheme(LocalContext.current)
darkTheme && blackTheme -> BlackColors
darkTheme -> DarkColors
else -> LightColors
@ -73,7 +74,7 @@ private val DarkColors = darkColorScheme(
onErrorContainer = md_theme_dark_onErrorContainer,
background = md_theme_dark_background,
onBackground = md_theme_dark_onBackground,
surface = md_theme_dark_surface,
surface = GreyDark,
onSurface = md_theme_dark_onSurface,
surfaceVariant = md_theme_dark_surfaceVariant,
onSurfaceVariant = md_theme_dark_onSurfaceVariant,
@ -102,7 +103,7 @@ private val BlackColors = darkColorScheme(
onErrorContainer = md_theme_dark_onErrorContainer,
background = PitchBlack,
onBackground = md_theme_dark_onBackground,
surface = PitchBlack,
surface = md_theme_dark_surface,
onSurface = md_theme_dark_onSurface,
surfaceVariant = md_theme_dark_surfaceVariant,
onSurfaceVariant = md_theme_dark_onSurfaceVariant,