Rick Regan
11/11/2021, 3:40 PMMaterialTheme.colors
instead. What is the recommended way to declare additional colors that are sensitive to theme changes?
(References in 🧵.)Rick Regan
11/11/2021, 3:41 PMMaterialTheme
composable via MaterialTheme.colors
and not the values defined in Colors.kt
in your UI. This will allow you to accept dynamic colors and easily switch between light and dark themes."annsofi
11/11/2021, 3:43 PMRick Regan
11/11/2021, 3:48 PMLouis Pullen-Freilich [G]
11/11/2021, 5:26 PMRick Regan
11/11/2021, 6:13 PMColton Idle
11/11/2021, 8:32 PM