Support dynamic colors in screen, card, and text field backgrounds
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user