Support dynamic colors in screen, card, and text field backgrounds
This commit is contained in:
@@ -44,8 +44,11 @@ fun AppTheme(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val customColorsPalette =
|
val customColorsPalette =
|
||||||
if (useDarkTheme) DarkCustomColors
|
(if (useDarkTheme) DarkCustomColors else LightCustomColors).copy(
|
||||||
else LightCustomColors
|
background = colorScheme.background,
|
||||||
|
cardBackground = colorScheme.surfaceVariant,
|
||||||
|
textFieldBackground = colorScheme.surfaceVariant
|
||||||
|
)
|
||||||
|
|
||||||
val view = LocalView.current
|
val view = LocalView.current
|
||||||
if (!view.isInEditMode) {
|
if (!view.isInEditMode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user