Support dynamic colors in screen, card, and text field backgrounds

This commit is contained in:
Juha Heinanen
2025-10-14 20:12:27 +03:00
parent 78fa7c8bd6
commit 9f53099d80

View File

@ -44,8 +44,11 @@ fun AppTheme(
}
val customColorsPalette =
if (useDarkTheme) DarkCustomColors
else LightCustomColors
(if (useDarkTheme) DarkCustomColors else LightCustomColors).copy(
background = colorScheme.background,
cardBackground = colorScheme.surfaceVariant,
textFieldBackground = colorScheme.surfaceVariant
)
val view = LocalView.current
if (!view.isInEditMode) {