Mark Haehnel
12/10/2019, 1:08 PMMaterialTheme() {
Card(color = +themeColor { secondary }) {
Text("Test")
}
}
On API 29 it looks like it should (First attached image 'API_29.png')
On API 28 the colors don't get applied and thus the foregound text color is broken too. (Second image 'API_28.png')
A little note to the images: Look at the top "tab" bar. The white cards with black text are OK, the ones where the green background is missing are broken.Louis Pullen-Freilich [G]
12/10/2019, 2:32 PMMaterialColors
definition here?Mark Haehnel
12/10/2019, 7:45 PMval lightThemeColors = MaterialColors(
primary = Color.White,
primaryVariant = Color.White,
onPrimary = Color.Black,
secondary = Color(30, 151, 97),
onSecondary = Color.White,
background = Color.White,
onBackground = Color.Black,
surface = Color.White,
onSurface = Color.Black,
error = Color(200, 0, 0),
onError = Color.White
)
Louis Pullen-Freilich [G]
12/10/2019, 8:09 PMMark Haehnel
12/10/2019, 8:39 PMLouis Pullen-Freilich [G]
12/10/2019, 9:30 PMMark Haehnel
12/11/2019, 5:51 AM<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="colorPrimary">#FFFFFF</item>
<item name="colorPrimaryDark">#FFFFFF</item>
<item name="colorAccent">#1E9761</item>
</style>
</resources>
Louis Pullen-Freilich [G]
12/11/2019, 2:14 PMMark Haehnel
12/11/2019, 2:15 PM