ursus
10/14/2023, 2:18 PMCard
I always get the gray one
I don't want to change it globally to a certain color, but do what button does, i.e. tint the ripple based on content color automaticallycah
10/14/2023, 3:14 PMLouis Pullen-Freilich [G]
10/14/2023, 3:34 PMStylianos Gakis
10/16/2023, 1:54 PMmake sure you are also setting content colorWhich the
Surface
composable does for you if you look inside of it, which is why it’s convenient to use for many cases.ursus
10/17/2023, 5:45 PMcontentColor
obviously colors the content texts inside it .. I don't want that, this is what I'm afterStylianos Gakis
10/17/2023, 5:47 PMursus
10/17/2023, 5:48 PMLouis Pullen-Freilich [G]
10/17/2023, 5:48 PMStylianos Gakis
10/17/2023, 5:48 PMursus
10/17/2023, 5:49 PMfun SelectableCard(
modifier: Modifier = Modifier,
selected: Boolean,
onClick: () -> Unit,
content: @Composable () -> Unit
) {
this is interface I had in mindStylianos Gakis
10/17/2023, 5:53 PMursus
10/17/2023, 5:54 PMCompositionLocalProvider(
LocalContentColor provides MaterialTheme.colors.onPrimary
) {
this?